forked from robogeek42/wolf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
34 lines (25 loc) · 869 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
32
33
34
# ----------------------------
# Makefile Options
# ----------------------------
NAME = wolf
DESCRIPTION = "Wolf3D demo"
COMPRESSED = NO
LDHAS_ARG_PROCESSING = 1
CFLAGS = -Wall -Wextra -Oz
CXXFLAGS = -Wall -Wextra -Oz
# Heap size to 384k allowing a 64k program
INIT_LOC = 040000
BSSHEAP_LOW = 050000
BSSHEAP_HIGH = 0AFFFF
# ----------------------------
include $(shell cedev-config --makefile)
check: bin/$(NAME).bin
@FILE_SIZE=$(shell stat -L -c %s bin/wolf.bin)
@if [ $(shell stat -L -c %s $<) -gt 65535 ]; then echo "WARNING !! Executable is greater than 64k!"; fi;
install: bin/$(NAME).bin
srec_cat bin/$(NAME).bin -binary -offset 0x40000 -o bin/$(NAME).hex -intel
cp bin/$(NAME).bin $(NAME)
#rsync -rvu ./ ~/agon/sdcard_sync/cc/wolf
run: install
cd ~/agon/fab-agon-emulator ;\
./fab-agon-emulator --firmware console8 --vdp src/vdp/vdp_console8.so