PCmake
1.88 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
40
41
42
43
44
45
46
47
48
49
50
51
#!smake
# PCǥץ Makefile
include $(ROOT)/usr/include/make/PRdefs
APPDIR = mipmap
TEXTFILES = Makefile boot.c boot.h cfb.c controller.c controller.h \
font.c font.h font_ext.h game.c game.h gfxinit.c gfxstatic.c \
RGBA16brick.h RGBA16brickHMM.h RGBA16brickMM.h \
RGBA16chainlink.h RGBA16chainlinkHMM.h RGBA16chainlinkMM.h \
RGBA16checker.h RGBA16checkerHMM.h RGBA16checkerMM.h \
RGBA16molecule.h RGBA16moleculeHMM.h RGBA16moleculeMM.h \
RGBA16mymip.h RGBA16mymipHMM.h RGBA16mymipMM.h rsp_cfb.c \
spec static.h texture.c texture.h zbuffer.c dram_stack.c
BINFILES = brick.rgb brick0.rgb brick1.rgb brick2.rgb brick3.rgb \
brick4.rgb brick5.rgb \
chainlink.rgb chainlink0.rgb chainlink1.rgb chainlink2.rgb \
chainlink3.rgb chainlink4.rgb checker.rgba checker0.rgb \
checker0.rgba checker1.rgb checker2.rgb checker3.rgb \
checker4.rgb checker5.rgb \
molecule.rgba molecule0.rgba molecule1.rgba molecule2.rgba \
molecule3.rgba molecule4.rgba molecule5.rgba mymip.rgb \
mymip0.rgb mymip1.rgb mymip2.rgb mymip3.rgb mymip4.rgb
SUBDIRS = '\$\(TEXHFILES\)'
ERASELINE = 'install', 'gtxstatic\.o'
ENDLINE = '\.\/RGBA16molecule\.h'
LDIRTV = '\$\(TEXHFILES\)'
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
perl -i -pe 's/L2_TV.rgba5551//;s/L2_TV.ppm//;s/rgb2u64//;unless(/BGFILES/){s/L2_TV.c//}else{s/L2_TV.c/l2_tv.c/}' $(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)