forked from snesrev/zelda3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmkfile
83 lines (68 loc) · 1.25 KB
/
mkfile
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
</$objtype/mkfile
CFLAGS=-Fp -I/sys/include/npe -I/sys/include/npe/SDL2 -D__plan9__ -D__${objtype}__ -I .
BIN=/$objtype/bin/games
TARG=zelda3
OFILES=\
apu.$O \
cart.$O \
cpu.$O \
dma.$O \
dsp.$O \
input.$O \
ppu.$O \
snes.$O \
snes_other.$O \
spc.$O \
tracing.$O \
ancilla.$O \
attract.$O \
audio.$O \
config.$O \
dungeon.$O \
ending.$O \
# glsl_shader.$O \
hud.$O \
load_gfx.$O \
main.$O \
messaging.$O \
misc.$O \
nmi.$O \
# opengl.$O \
overlord.$O \
overworld.$O \
player.$O \
player_oam.$O \
poly.$O \
select_file.$O \
spc_player.$O \
sprite.$O \
sprite_main.$O \
tagalong.$O \
tile_detect.$O \
util.$O \
zelda_cpu_infra.$O \
zelda_rtl.$O \
default:V: $O.out
all:V: $O.out
$O.out: $OFILES $LIB
$LD $LDFLAGS -o $target $prereq
%.$O: $HFILES # don't combine with following %.$O rules
%.$O: snes/%.c
$CC $CFLAGS $prereq
%.$O: src/%.c
$CC $CFLAGS $prereq
%.$O: %.c
$CC $CFLAGS $stem.c
install:V: $BIN/$TARG
$BIN/$TARG: $O.out
cp $prereq $BIN/$TARG
installall:V:
for(objtype in $CPUS)
mk install
allall:V:
for(objtype in $CPUS)
mk all
nuke:V:
rm -f *.[$OS] [$OS].out y.tab.? lex.yy.c y.debug y.output *.acid $TARG $CLEANFILES
clean:V:
rm -f *.[$OS] [$OS].out y.tab.? lex.yy.c y.debug y.output $TARG $CLEANFILES