PCmake 1.14 KB
#!smake
# PCǥץ Makefile

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

APPDIR	= topgun

TEXTFILES = Makefile av8b.c av8b.h cfb.c dram_stack.c dynamic.c \
	    ground.c ground.h init.c rdp_output.c \
	    sky.h spec spec_em static.c topgun.c topgun.h tree.h zbuffer.c

BINFILES  = Textures/clouds.rgb Textures/terrain.rgb \
	    Textures/camo2.int.attr Textures/decal.inta \
	    Textures/decal.inta.attr Textures/harrier_num.rgba \
	    Textures/harrier_num.rgba.attr Textures/stree1.rgba \
	    Textures/camo2.int Models/av8b.flt

SUBDIRS	  = 

ERASELINE = 'install'
ENDLINE   = 'av8b\.c'
LDIRTV	  = '\$\(TEXHFILES\)', 'av8b\.c', 'av8b\.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)