PCmake 921 Bytes
#!smake
# PCǥץ Makefile

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

APPDIR	= bumpmap

TEXTFILES = Makefile README bumpmap.c bumpmap.h cfb.c obj_dls.h obj_real.h \
	  obj_texs.h obj_verts.h rsp_cfb.c spec static.c zbuf.c dram_stack.c

BINFILES  =

SUBDIRS	  = texlit

ERASELINE = 'install', 'static\.c', '\$\(COMMONTARGS\)', '\# use'
ENDLINE   = '\$\(OBJHFILES\)'
LDIRTV	  = '\$\(OBJHFILES\)'

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)