forked from theNestruo/msx-msxlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmsxlib.makefile
More file actions
181 lines (142 loc) · 2.9 KB
/
msxlib.makefile
File metadata and controls
181 lines (142 loc) · 2.9 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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
#
# paths and file lists
#
SRCS_MSXLIB=\
lib\page0.asm \
lib\page0_end.asm \
lib\rom-default.asm \
lib\rom_end.asm \
lib\ram.asm \
lib\ram_end.asm \
lib\msx\symbols.asm \
lib\msx\cartridge.asm \
lib\msx\hook.asm \
lib\msx\ram.asm \
lib\msx\io\input.asm \
lib\msx\io\keyboard.asm \
lib\msx\io\print.asm \
lib\msx\io\sprites.asm \
lib\msx\io\timing.asm \
lib\msx\io\vram.asm \
lib\msx\io\replayer_pt3.asm \
lib\msx\io\replayer_wyz.asm \
lib\msx\etc\fade.asm \
lib\msx\etc\msx2_palette.asm \
lib\msx\etc\vpokes.asm \
lib\msx\etc\spriteables.asm \
lib\msx\etc\attract_print.asm \
lib\msx\etc\ram.asm \
lib\asm\asm.asm \
lib\game\tiles.asm \
lib\game\player.asm \
lib\game\enemy.asm \
lib\game\bullet.asm \
lib\game\collision.asm \
lib\game\ram.asm \
lib\game\platformer\platformer_player.asm \
lib\game\platformer\platformer_enemy.asm \
lib\game\etc\password.asm \
lib\game\etc\ram.asm \
lib\unpack\unpack_zx0.asm \
lib\unpack\unpack_zx1.asm \
lib\unpack\unpack_zx7.asm \
lib\unpack\ram.asm
SRCS_LIBEXT=\
libext\ayFX-replayer\ayFX-ROM.tniasm.asm \
libext\ayFX-replayer\ayFX-RAM.tniasm.asm \
libext\pletter05c\pletter05c-unpackRam.tniasm.asm \
libext\pt3\PT3-ROM.tniasm.asm \
libext\pt3\PT3-RAM.tniasm.asm \
libext\wyzplayer\WYZPROPLAY47cMSX.ASM \
libext\wyzplayer\WYZPROPLAY47c_RAM.tniasm.ASM \
libext\ZX0\z80\dzx0_standard.asm \
libext\ZX1\z80\dzx1_standard.asm \
libext\zx7\dzx7_standard.tniasm.asm
#
# phony targets
#
clean:
$(REMOVE) $(ROM)
$(REMOVE) $(SYM) tniasm.sym tniasm.tmp
compile: $(ROM)
test: $(ROM)
$(EMULATOR) $<
debug: $(ROM) $(SYMS)
$(DEBUGGER) $<
#
# GFXs, SPRs, and BINs targets
#
# -lh by default because packing usally produces smaller binaries
%.pcx.chr %.pcx.clr: %.pcx
$(PCX2MSX) -lh $<
# -lh by default because packing usally produces smaller binaries
%.png.chr %.png.clr: %.png
$(PNG2MSX) -lh $<
%.pcx.spr: %.pcx
$(PCX2SPR) $<
%.png.spr: %.png
$(PNG2SPR) $<
%.tmx.bin: %.tmx
$(TMX2BIN) $< $@
#
# Compressed targets
#
# Pletter 0.5c1
%.bin.plet5: %.bin
$(PACK_PLET5) $<
%.chr.plet5: %.chr
$(PACK_PLET5) $<
%.clr.plet5: %.clr
$(PACK_PLET5) $<
%.nam.plet5: %.nam
$(PACK_PLET5) $<
%.spr.plet5: %.spr
$(PACK_PLET5) $<
# ZX0 v2.0
%.bin.zx0: %.bin
$(REMOVE) $@
$(PACK_ZX0) $<
%.chr.zx0: %.chr
$(REMOVE) $@
$(PACK_ZX0) $<
%.clr.zx0: %.clr
$(REMOVE) $@
$(PACK_ZX0) $<
%.nam.zx0: %.nam
$(REMOVE) $@
$(PACK_ZX0) $<
%.spr.zx0: %.spr
$(REMOVE) $@
$(PACK_ZX0) $<
# ZX1
%.bin.zx1: %.bin
$(REMOVE) $@
$(PACK_ZX1) $<
%.chr.zx1: %.chr
$(REMOVE) $@
$(PACK_ZX1) $<
%.clr.zx1: %.clr
$(REMOVE) $@
$(PACK_ZX1) $<
%.nam.zx1: %.nam
$(REMOVE) $@
$(PACK_ZX1) $<
%.spr.zx1: %.spr
$(REMOVE) $@
$(PACK_ZX1) $<
# ZX7
%.bin.zx7: %.bin
$(REMOVE) $@
$(PACK_ZX7) $<
%.chr.zx7: %.chr
$(REMOVE) $@
$(PACK_ZX7) $<
%.clr.zx7: %.clr
$(REMOVE) $@
$(PACK_ZX7) $<
%.nam.zx7: %.nam
$(REMOVE) $@
$(PACK_ZX7) $<
%.spr.zx7: %.spr
$(REMOVE) $@
$(PACK_ZX7) $<