-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (27 loc) · 1.49 KB
/
Makefile
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
PRJNAME := chicken_crossing
OBJS := data.rel actor.rel chicken_crossing.rel
all: $(PRJNAME).sms
data.c: data/* data/sprites_tiles.psgcompr data/background_tiles.psgcompr data/title_tiles.psgcompr \
data/player_1_score.psg data/player_2_score.psg data/player_3_score.psg data/player_4_score.psg
folder2c data data
data/sprites_tiles.psgcompr: data/img/sprites.png
BMP2Tile.exe data/img/sprites.png -noremovedupes -8x16 -palsms -fullpalette -savetiles data/sprites_tiles.psgcompr -savepalette data/sprites_palette.bin
data/background_tiles.psgcompr: data/img/background.png
BMP2Tile.exe data/img/background.png -palsms -fullpalette -savetiles data/background_tiles.psgcompr -savetilemap data/background_tilemap.bin -savepalette data/background_palette.bin
data/title_tiles.psgcompr: data/img/title.png
BMP2Tile.exe data/img/title.png -palsms -fullpalette -savetiles data/title_tiles.psgcompr -savetilemap data/title_tilemap.bin -savepalette data/title_palette.bin
data/%.psg: data/deflemask/%.vgm
vgm2psg $< $@ 23
data/%.path: data/path/%.spline.json
node tool/convert_splines.js $< $@
data/%.bin: data/map/%.tmx
node tool/convert_map.js $< $@
%.vgm: %.wav
psgtalk -r 512 -u 1 -m vgm $<
%.rel : %.c
sdcc -c -mz80 --peep-file lib/peep-rules.txt $<
$(PRJNAME).sms: $(OBJS)
sdcc -o $(PRJNAME).ihx -mz80 --no-std-crt0 --data-loc 0xC000 lib/crt0_sms.rel $(OBJS) SMSlib.lib lib/PSGlib.rel
ihx2sms $(PRJNAME).ihx $(PRJNAME).sms
clean:
rm *.sms *.sav *.asm *.sym *.rel *.noi *.map *.lst *.lk *.ihx data.*