From 9c984aa67d2bd607032ba7fa911c77f9bbf87d4c Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 16 Jan 2022 21:21:16 +0000 Subject: Fixed compilation flags CFLAGS was used in LDFLAGS. --- game/src/Makefile | 4 ++-- src/spman/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/game/src/Makefile b/game/src/Makefile index bd8f3ff..967ed15 100644 --- a/game/src/Makefile +++ b/game/src/Makefile @@ -16,8 +16,8 @@ CC := sdcc AS := sdasz80 AR := sdcclib CHKSIZE := ../../tools/chksize -CFLAGS := -mz80 --Werror -I../../include -I../generated --fsigned-char --std-sdcc99 --opt-code-speed $(EXTRA_CFLAGS) -LDFLAGS := -L../../lib -L. --no-std-crt0 --fomit-frame-pointer +CFLAGS := -mz80 --Werror -I../../include -I../generated --fsigned-char --std-sdcc99 --opt-code-speed --fomit-frame-pointer $(EXTRA_CFLAGS) +LDFLAGS := -L../../lib -L. --no-std-crt0 default: $(error Please use the Makefile from root directory) diff --git a/src/spman/Makefile b/src/spman/Makefile index be9effd..db8bcdc 100644 --- a/src/spman/Makefile +++ b/src/spman/Makefile @@ -5,7 +5,7 @@ include ../../config.env CC := sdcc AR := sdar -CFLAGS := -mz80 --Werror -I../../include --fsigned-char --std-sdcc99 --opt-code-speed $(EXTRA_CFLAGS) +CFLAGS := -mz80 --Werror -I../../include --fsigned-char --std-sdcc99 --opt-code-speed --fno-omit-frame-pointer $(EXTRA_CFLAGS) SOURCES := $(wildcard *.c) OBJS := $(patsubst %.c,%.rel,$(SOURCES)) -- cgit v1.2.3