-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
28 lines (20 loc) · 842 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
NAME=alterego
GAME_C_FILES = $(NAME).c maps_data.c song.c icon.c
GAME_C_FILES += sdk/lib/blitter/blitter.c sdk/lib/blitter/blitter_tmap.c sdk/lib/blitter/blitter_sprites.c \
sdk/lib/chiptune/chiptune.c sdk/lib/chiptune/player.c sdk/lib/chiptune/chiptune.c
# this will fail first time
SPRITES := alter alter_gum falling gum player skull
GAME_BINARY_FILES := $(SPRITES:%=maps_%.spr) maps.tset maps.tmap
DEFINES += VGA_MODE=320 VGA_BPP=8
include sdk/kernel/bitbox.mk
.DELETE_ON_ERROR:
$(NAME).c: maps.h
song.c: alter.song
python sdk/lib/chiptune/song2C.py $^ > $@
maps.h maps.tset maps.tmap maps_data.c $(SPRITES:%=maps_%.spr): maps.tmx
@mkdir -p $(dir $@)
python sdk/lib/blitter/scripts/tmx.py -maxs $^ > $*.h
icon.c: icon.png
python sdk/kernel/mk_ico.py $^ > $@
clean::
rm -rf *.spr *.tmap *.tset maps.h maps_data.c song.c icon.c