diff options
author | Bad Diode <bd@badd10de.dev> | 2023-05-28 09:27:03 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2023-05-28 09:27:03 +0200 |
commit | af68ac1e1bb77fd821e042d2c8ea9a159c970d20 (patch) | |
tree | dbe9ed56d0a846c1c79db3c39e9e6f9655be6821 /Makefile | |
parent | aa3db2f8c3af8163a707a87cd946c2a30070ced4 (diff) | |
download | stepper-af68ac1e1bb77fd821e042d2c8ea9a159c970d20.tar.gz stepper-af68ac1e1bb77fd821e042d2c8ea9a159c970d20.zip |
Fix bug for pattern chaining
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -27,7 +27,7 @@ INC_FLAGS := $(addprefix -I,$(INC_DIRS)) | |||
27 | INC_FLAGS += -I$(LIBGBA_SRC) | 27 | INC_FLAGS += -I$(LIBGBA_SRC) |
28 | 28 | ||
29 | # Output library names and executables. | 29 | # Output library names and executables. |
30 | TARGET := STEPPER-v1.3 | 30 | TARGET := STEPPER-v1.4-dev |
31 | ELF := $(BUILD_DIR)/$(TARGET).elf | 31 | ELF := $(BUILD_DIR)/$(TARGET).elf |
32 | BIN := $(BUILD_DIR)/$(TARGET).gba | 32 | BIN := $(BUILD_DIR)/$(TARGET).gba |
33 | 33 | ||
@@ -37,7 +37,7 @@ OBJCOPY := $(DEVKITBIN)/arm-none-eabi-objcopy | |||
37 | ARCH := -mthumb -mthumb-interwork | 37 | ARCH := -mthumb -mthumb-interwork |
38 | SPECS := -specs=gba.specs | 38 | SPECS := -specs=gba.specs |
39 | CONFIG := | 39 | CONFIG := |
40 | CFLAGS := -Wall -Wextra -pedantic -Wno-incompatible-pointer-types | 40 | CFLAGS := -Wall -Wextra -Wdouble-promotion -pedantic -Wno-incompatible-pointer-types -Wconversion -Wno-sign-conversion |
41 | CFLAGS += -fno-strict-aliasing | 41 | CFLAGS += -fno-strict-aliasing |
42 | CFLAGS += -mcpu=arm7tdmi -mtune=arm7tdmi $(ARCH) | 42 | CFLAGS += -mcpu=arm7tdmi -mtune=arm7tdmi $(ARCH) |
43 | CFLAGS += $(INC_FLAGS) | 43 | CFLAGS += $(INC_FLAGS) |
@@ -45,13 +45,14 @@ CFLAGS += $(CONFIG) | |||
45 | LDFLAGS := $(ARCH) $(SPECS) | 45 | LDFLAGS := $(ARCH) $(SPECS) |
46 | LDLIBS := $(LIBGBA) | 46 | LDLIBS := $(LIBGBA) |
47 | RELEASE_CFLAGS := -DNDEBUG -O2 | 47 | RELEASE_CFLAGS := -DNDEBUG -O2 |
48 | DEBUG_CFLAGS := -DDEBUG -O2 -g | 48 | DEBUG_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.) | ||
55 | DEBUG ?= 0 | 56 | DEBUG ?= 0 |
56 | ifeq ($(DEBUG), 1) | 57 | ifeq ($(DEBUG), 1) |
57 | CFLAGS += $(DEBUG_CFLAGS) | 58 | CFLAGS += $(DEBUG_CFLAGS) |