PCmake 1.02 KB
#!smake
# PCǥץ Makefile

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

APPDIR	  = spritemonkeyEX

TEXTFILES = Makefile Tile_Rect.h Cont.h Task.h Dma.h FrameBuffer.h RcpRdp.h spec \
            main.c dram_stack.c \
            tile_rect.c task.c rcprdp.c framebuffer.c dma.c \
            cont.c game.c static.c cfb.c rsp_cfb.c dk.c dk7.c road.c l2_tv.c

BINFILES  =

SUBDIRS	  = 

ERASELINE = 'install'
ENDLINE   = 'dummy'
LDIRTV	  = 

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/static\.o/static\.sgi/g' spec ; \
#	mv static.o static.sgi ; \
#	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)