From f2e34f162af326aace8ca6d9d0ca26e1159b3706 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 25 Jan 2021 15:57:10 +0000 Subject: Reviewed makefiles --- game/src/Makefile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'game/src') 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 -- cgit v1.2.3