diff options
author | Juan J. Martinez <jjm@usebox.net> | 2021-10-02 20:31:11 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2021-10-02 20:31:13 +0100 |
commit | 2d4ddb1820122cd8e7d42185f2ea80330c63d4f6 (patch) | |
tree | 0b82a0c52f9df85961265365b8c5e4e949b5e83c /game | |
parent | 5763dc7aa0b0fc44d9776f582b692d086f8b5b6d (diff) | |
download | ubox-msx-lib-2d4ddb1820122cd8e7d42185f2ea80330c63d4f6.tar.gz ubox-msx-lib-2d4ddb1820122cd8e7d42185f2ea80330c63d4f6.zip |
Introduced config.env
One config to rule the whole build system and the tests.
Diffstat (limited to 'game')
-rw-r--r-- | game/src/Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/game/src/Makefile b/game/src/Makefile index 6ac7a0a..e42313d 100644 --- a/game/src/Makefile +++ b/game/src/Makefile @@ -1,12 +1,11 @@ TARGET := game +include ../../config.env + CODE := 0x4000 # leaves 222 bytes for AKM player buffer DATA := 0xc0de -# HEX, will fill with 0 -ROM_MAX := 8000 - OUTPUT := ../build OBJS := $(patsubst %.c,$(OUTPUT)/%.rel,$(wildcard *.c)) $(OUTPUT)/akm.rel UBOX_LIBS := $(wildcard ../../lib/*.lib) @@ -19,7 +18,7 @@ CFLAGS := -mz80 --Werror -I../../include -I../generated --fsigned-char --std-sdc LDFLAGS := -L../../lib -L. --no-std-crt0 --fomit-frame-pointer all: $(OUTPUT)/$(TARGET).rom - @../../tools/chksize 8000 4000 $(OUTPUT)/$(TARGET).map + @../../tools/chksize $(ROM_MAX) 4000 $(OUTPUT)/$(TARGET).map @cp ../bin/$(TARGET).rom ../../bin openmsx: all |