PCmake 1.17 KB
#!smake
# PCǥץ Makefile

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

APPDIR	= chrome

TEXTFILES = Makefile cfb.c dump.c dump.h letters.c letters.h mahogany.h \
	    metallic.h smroad.h sp_gameday.h spec static.c u64_tri.h \
	    u64_vtx.h zbuffer.c dram_stack.c\
	    Texture/gameday_bms.h Texture/metallic.h Texture/gameday_imgs.h

BINFILES  = Texture/metallic.rgb Texture/mahogany.rgb Texture/smroad.rgb \
	    Texture/gameday.rgb Texture/chrome_bline.rgb \
	    Texture/metallic_red.rgb Texture/saturn53.rgb

SUBDIRS	  = Texture

ERASELINE = 'install', '# This must', '\$\(OBJECTS\)'
ENDLINE   = 'letters.o'
LDIRTV	  = '\$\(TEXHFILES\)', '\.\/Texture\/gameday\*\.h'

FILES	  = $(TEXTFILES) $(BINFILES)

default:
	$(INSTALL) -m 666 -F /PR/apps.pc/$(APPDIR) $(FILES)
	perl $(ROOT)/PR/apps.released/mkPCmake.pl Makefile > \
		$(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)