-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
31 lines (21 loc) · 987 Bytes
/
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
NAME = jumper
GAME_C_FILES = main.c intro.c level.c sounds.c jumper3.c bitbox_icon.c
GAME_C_FILES += sdk/lib/blitter/blitter.c sdk/lib/blitter/blitter_tmap.c sdk/lib/blitter/blitter_sprites.c sdk/lib/sampler/sampler.c
GAME_BINARY_FILES = jumper3.tmap intro_tmap.tmap cote.tmap jumper3.tset intro_tmap.tset cote.tset piece.spr bonh.spr cursor.spr
include sdk/kernel/bitbox.mk
main.c: jumper3.tmap intro_tmap.tmap cote.tmap piece.spr bonh.spr cursor.spr
%.tset %.tmap %.c %.h: %.tmx
python tmx.py $< > $*.h
piece.spr : piece/p_?.png
python sdk/lib/blitter/scripts/couples_encode.py $@ $^
bonh.spr : bonh/b_??.png
python sdk/lib/blitter/scripts/couples_encode.py $@ $(sort $^)
cursor.spr : cursor.png
python sdk/lib/blitter/scripts/couples_encode.py $@ $^
sounds.c: sounds/*.wav mk_sounds.py
python mk_sounds.py $< > $@
bitbox_icon.c: icon.png
python sdk/kernel/mk_ico.py $^ > $@
clean::
rm -f *.tset *.tmap *.spr
rm -f jumper3.[ch] intro_tmap.[ch] cote.[ch] bitbox_icon.c