From af68ac1e1bb77fd821e042d2c8ea9a159c970d20 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Sun, 28 May 2023 09:27:03 +0200 Subject: Fix bug for pattern chaining --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ead3e48..7eb4b11 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ INC_FLAGS := $(addprefix -I,$(INC_DIRS)) INC_FLAGS += -I$(LIBGBA_SRC) # Output library names and executables. -TARGET := STEPPER-v1.3 +TARGET := STEPPER-v1.4-dev ELF := $(BUILD_DIR)/$(TARGET).elf BIN := $(BUILD_DIR)/$(TARGET).gba @@ -37,7 +37,7 @@ OBJCOPY := $(DEVKITBIN)/arm-none-eabi-objcopy ARCH := -mthumb -mthumb-interwork SPECS := -specs=gba.specs CONFIG := -CFLAGS := -Wall -Wextra -pedantic -Wno-incompatible-pointer-types +CFLAGS := -Wall -Wextra -Wdouble-promotion -pedantic -Wno-incompatible-pointer-types -Wconversion -Wno-sign-conversion CFLAGS += -fno-strict-aliasing CFLAGS += -mcpu=arm7tdmi -mtune=arm7tdmi $(ARCH) CFLAGS += $(INC_FLAGS) @@ -45,13 +45,14 @@ CFLAGS += $(CONFIG) LDFLAGS := $(ARCH) $(SPECS) LDLIBS := $(LIBGBA) RELEASE_CFLAGS := -DNDEBUG -O2 -DEBUG_CFLAGS := -DDEBUG -O2 -g +DEBUG_CFLAGS := -DDEBUG -O2 -g3 -Wno-unused-parameter -Wno-unused-function .PHONY: clean run # Setup debug/release builds. # make clean && make DEBUG=0 # make clean && make DEBUG=1 +# TODO: make a new debugging mode with extra options (sanitizers, etc.) DEBUG ?= 0 ifeq ($(DEBUG), 1) CFLAGS += $(DEBUG_CFLAGS) -- cgit v1.2.1