aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2023-05-28 09:27:03 +0200
committerBad Diode <bd@badd10de.dev>2023-05-28 09:27:03 +0200
commitaf68ac1e1bb77fd821e042d2c8ea9a159c970d20 (patch)
treedbe9ed56d0a846c1c79db3c39e9e6f9655be6821 /Makefile
parentaa3db2f8c3af8163a707a87cd946c2a30070ced4 (diff)
downloadstepper-af68ac1e1bb77fd821e042d2c8ea9a159c970d20.tar.gz
stepper-af68ac1e1bb77fd821e042d2c8ea9a159c970d20.zip
Fix bug for pattern chaining
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ead3e48..7eb4b11 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ INC_FLAGS := $(addprefix -I,$(INC_DIRS))
27INC_FLAGS += -I$(LIBGBA_SRC) 27INC_FLAGS += -I$(LIBGBA_SRC)
28 28
29# Output library names and executables. 29# Output library names and executables.
30TARGET := STEPPER-v1.3 30TARGET := STEPPER-v1.4-dev
31ELF := $(BUILD_DIR)/$(TARGET).elf 31ELF := $(BUILD_DIR)/$(TARGET).elf
32BIN := $(BUILD_DIR)/$(TARGET).gba 32BIN := $(BUILD_DIR)/$(TARGET).gba
33 33
@@ -37,7 +37,7 @@ OBJCOPY := $(DEVKITBIN)/arm-none-eabi-objcopy
37ARCH := -mthumb -mthumb-interwork 37ARCH := -mthumb -mthumb-interwork
38SPECS := -specs=gba.specs 38SPECS := -specs=gba.specs
39CONFIG := 39CONFIG :=
40CFLAGS := -Wall -Wextra -pedantic -Wno-incompatible-pointer-types 40CFLAGS := -Wall -Wextra -Wdouble-promotion -pedantic -Wno-incompatible-pointer-types -Wconversion -Wno-sign-conversion
41CFLAGS += -fno-strict-aliasing 41CFLAGS += -fno-strict-aliasing
42CFLAGS += -mcpu=arm7tdmi -mtune=arm7tdmi $(ARCH) 42CFLAGS += -mcpu=arm7tdmi -mtune=arm7tdmi $(ARCH)
43CFLAGS += $(INC_FLAGS) 43CFLAGS += $(INC_FLAGS)
@@ -45,13 +45,14 @@ CFLAGS += $(CONFIG)
45LDFLAGS := $(ARCH) $(SPECS) 45LDFLAGS := $(ARCH) $(SPECS)
46LDLIBS := $(LIBGBA) 46LDLIBS := $(LIBGBA)
47RELEASE_CFLAGS := -DNDEBUG -O2 47RELEASE_CFLAGS := -DNDEBUG -O2
48DEBUG_CFLAGS := -DDEBUG -O2 -g 48DEBUG_CFLAGS := -DDEBUG -O2 -g3 -Wno-unused-parameter -Wno-unused-function
49 49
50.PHONY: clean run 50.PHONY: clean run
51 51
52# Setup debug/release builds. 52# Setup debug/release builds.
53# make clean && make <target> DEBUG=0 53# make clean && make <target> DEBUG=0
54# make clean && make <target> DEBUG=1 54# make clean && make <target> DEBUG=1
55# TODO: make a new debugging mode with extra options (sanitizers, etc.)
55DEBUG ?= 0 56DEBUG ?= 0
56ifeq ($(DEBUG), 1) 57ifeq ($(DEBUG), 1)
57 CFLAGS += $(DEBUG_CFLAGS) 58 CFLAGS += $(DEBUG_CFLAGS)