PCmake 1.3 KB
#!smake
# PCǥץ Makefile

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

APPDIR	  = ddspgame

TEXTFILES = Makefile cfb.c cont.c cont.h \
	    dd.c dd_checksum.c dd_core.c dd_func.c dram_stack.c err.c \
	    font.c font.h \
	    hdd.h hdd_internal.h heap.c herr.h hscr.h htry.h \
	    kbuffer.c main.c main.h messages.c n64mdisk.cfg \
	    pics.c rsp_cfb.c \
	    sp_ball.h sp_lit.h spec spgame.c static.c \
	    sysassigned.h test_64dd.c try.c \
	    command.jp README.jp funcs.jp \
	    Texture/ball_bms.h Texture/lit_imgs.h \
	    Texture/ball_imgs.h Texture/lit_bms.h

BINFILES  = Texture/L2_TV.rgb Texture/ball.rgba

SUBDIRS	  = Texture

ERASELINE = 'install', 'LCDEFS \+\= \-DEUC_CODE'
ENDLINE   = 'spgame\.o'
LDIRTV	  = '\$\(TEXHFILES\)', '\$\(SPRITES\)'

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) ; \
#	perl -i -pe 's/\\\\/\\/g;' messages.c ; \
#	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)