-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile.bitboy_arm
More file actions
35 lines (26 loc) · 1.08 KB
/
Copy pathMakefile.bitboy_arm
File metadata and controls
35 lines (26 loc) · 1.08 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
# Standard Makefile for bitbox
NAME= bitboy
GAME_C_FILES= bitbox_lcd.c bitbox_emu.c bitbox_sys.c\
refresh.c lcdc.c cpu.c mem.c hw.c sound.c rtc.c\
roms.c menu.c tilemaps.c
# all those have been eliminated
# events.c save.c \
# rccmds.c rckeys.c rcvars.c rcfile.c exports.c \
# split.c path.c debug.c \
# gnuboy options + added bitboy options to simplify further
GAME_C_OPTS += -DNO_NOISE15 -DNO_PALETTE -DGNUBOY_NO_MINIZIP -DGNUBOY_NO_PRINTF -DGNUBOY_NO_SCREENSHOT -DNODEBUG -DGNUBOY_NOSAVELOAD
GAME_C_OPTS += -DBITBOY_FIXEDRAM=4 -DBITBOY_NOCGB -DIS_LITTLE_ENDIAN
# this is done because many elements are not used
GAME_C_OPTS += -Wno-unused-variable -Wno-unused-function
GAME_C_OPTS += -DNOTITLE
# standard makefile
include $(BITBOX)/kernel/bitbox.mk
# package roms in c file, parsing name, size & other characteristics to populate menu
roms.c: roms/
python scripts/mk_rom.py roms/* > roms.c
# menu tilemap from tiled files
tilemaps.c: *.tmx
python scripts/mk_tilemaps.py tilemaps $<
# roms to include in th .bin Do not redistribute if not freeware !
clean::
rm -f tilemaps.c roms.c