PCmake
1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!smake
# PCǥץ Makefile
include $(ROOT)/usr/include/make/PRdefs
APPDIR = spgame
TEXTFILES = Makefile cfb.c dynamic.c font.c font.h font_ext.h \
main.c main.h pics.c rsp_cfb.c sp_ball.h sp_lit.h spec \
spgame.c static.c dram_stack.c \
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'
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) ; \
# 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)