PCmake 1.25 KB
#!smake
# PCǥץ Makefile

include $(ROOT)/usr/include/make/PRdefs

APPDIR	= gtdemo

TEXTFILES = Makefile README cfb.c char_data.h character.c character.h \
	    controller.c controller.h floor.c gtdemo.c gtdemo.h punch.c \
	    punch.h punchtable.c punchtable.h rdp_output.c \
	    rdp_output_len.c spec static.c timer.c timer.h turbo.c \
	    turbo.h walk.c walk.h walktable.c walktable.h zbuffer.c

BINFILES  = punchtable walktable

SUBDIRS	  = 

ERASELINE = 'install', 'gtdemo.o', '\# These must', 'punch\.o', 'static\.o', '\$\(OBJECTS\)'
ENDLINE   = '\# Header'
LDIRTV	  = 'walktable.+$'

FILES	  = $(TEXTFILES) $(BINFILES)

default:
	$(INSTALL) -m 666 -F /PR/apps.pc/$(APPDIR) $(FILES)
	perl $(ROOT)/PR/apps.released/mkPCmake.pl Makefile.src > \
		$(ROOT)/PR/apps.pc/$(APPDIR)/Makefile
	perl -i -pe 's/L2_TV.rgba5551//;s/L2_TV.ppm//;s/rgb2u64//;unless(/BGFILES/){s/L2_TV.c//}else{s/L2_TV.c/l2_tv.c/}' $(ROOT)/PR/apps.pc/$(APPDIR)/Makefile ; \
#	( \
#	cd $(ROOT)/PR/apps.pc/$(APPDIR) ; \
#	for i in $(TEXTFILES) ; do ( \
#		to_dos $$i /tmp/__pctmp ; \
#	        euctosjis /tmp/__pctmp > $$i ;  \
#	        rm -f /tmp/__pctmp )\
#	done ; \
#	)	
	cp $(ROOT)/PR/apps.released/__elfcom.c $(ROOT)/PR/apps.pc/$(APPDIR)

clean clobber:
	rm -rf $(ROOT)/PR/apps.pc/$(APPDIR)