PCmake 1000 Bytes
#!smake
# PCǥץ Makefile

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

APPDIR	= voice

TEXTFILES = Makefile.install README.jp action.c action.h asci.c cfb.c \
	    graph.c graph.h kfont.c main.c mes.h nu64sys.c \
	    nu64sys.h siproc.c siproc.h spec thread.h mes.c

BINFILES  = message.c

SUBDIRS	  = 

ERASELINE = 'install'
ENDLINE   = 'This is dummy'
LDIRTV	  = 

FILES	  = $(TEXTFILES) $(BINFILES)

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

clean clobber:
	rm -rf $(ROOT)/PR/apps.pc/$(APPDIR)