diff options
author | Juan J. Martinez <jjm@usebox.net> | 2021-01-25 15:57:10 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2021-01-25 15:57:10 +0000 |
commit | f2e34f162af326aace8ca6d9d0ca26e1159b3706 (patch) | |
tree | afcea0dee7cba7ec9d514fa56c6107b35af28dde /game | |
parent | 6b884b930a9e1b7016f4e1a8967466cb9536ce45 (diff) | |
download | ubox-msx-lib-f2e34f162af326aace8ca6d9d0ca26e1159b3706.tar.gz ubox-msx-lib-f2e34f162af326aace8ca6d9d0ca26e1159b3706.zip |
Reviewed makefiles
Diffstat (limited to 'game')
-rw-r--r-- | game/data/Makefile | 4 | ||||
-rw-r--r-- | game/src/Makefile | 30 |
2 files changed, 17 insertions, 17 deletions
diff --git a/game/data/Makefile b/game/data/Makefile index 22d26c2..70f7f6d 100644 --- a/game/data/Makefile +++ b/game/data/Makefile @@ -1,5 +1,5 @@ -OUTPUT=../generated -GENERATED=$(OUTPUT)/tiles.h $(OUTPUT)/player.h $(OUTPUT)/enemy.h $(OUTPUT)/map.h +OUTPUT := ../generated +GENERATED := $(OUTPUT)/tiles.h $(OUTPUT)/player.h $(OUTPUT)/enemy.h $(OUTPUT)/map.h all: $(GENERATED) diff --git a/game/src/Makefile b/game/src/Makefile index f05d1fa..6ac7a0a 100644 --- a/game/src/Makefile +++ b/game/src/Makefile @@ -1,22 +1,22 @@ -TARGET = game +TARGET := game -CODE = 0x4000 +CODE := 0x4000 # leaves 222 bytes for AKM player buffer -DATA = 0xc0de +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) -LIBS = -lubox -lspman -lmplayer -lap - -CC = sdcc -AS = sdasz80 -AR = sdcclib -CFLAGS = -mz80 --Werror -I../../include -I../generated --fsigned-char --std-sdcc99 --opt-code-speed -LDFLAGS = -L../../lib -L. --no-std-crt0 --fomit-frame-pointer +ROM_MAX := 8000 + +OUTPUT := ../build +OBJS := $(patsubst %.c,$(OUTPUT)/%.rel,$(wildcard *.c)) $(OUTPUT)/akm.rel +UBOX_LIBS := $(wildcard ../../lib/*.lib) +LIBS := -lubox -lspman -lmplayer -lap + +CC := sdcc +AS := sdasz80 +AR := sdcclib +CFLAGS := -mz80 --Werror -I../../include -I../generated --fsigned-char --std-sdcc99 --opt-code-speed +LDFLAGS := -L../../lib -L. --no-std-crt0 --fomit-frame-pointer all: $(OUTPUT)/$(TARGET).rom @../../tools/chksize 8000 4000 $(OUTPUT)/$(TARGET).map |