summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 46564cc..fbd5fe3 100644
--- a/Makefile
+++ b/Makefile
@@ -18,17 +18,17 @@ WATCH_SRC := $(wildcard $(SRC_DIR)/*.c)
18WATCH_SRC += $(wildcard $(SRC_DIR)/*.h) 18WATCH_SRC += $(wildcard $(SRC_DIR)/*.h)
19 19
20# Output library names and executables. 20# Output library names and executables.
21BIN_NAME := template 21TARGET := first
22BUILD_DIR := build 22BUILD_DIR := build
23ELF := $(BUILD_DIR)/$(BIN_NAME).elf 23ELF := $(BUILD_DIR)/$(TARGET).elf
24BIN := $(BUILD_DIR)/$(BIN_NAME).gba 24BIN := $(BUILD_DIR)/$(TARGET).gba
25 25
26# Compiler and linker configuration. 26# Compiler and linker configuration.
27CC := arm-none-eabi-gcc 27CC := arm-none-eabi-gcc
28OBJCOPY := arm-none-eabi-objcopy 28OBJCOPY := arm-none-eabi-objcopy
29ARCH := -mthumb -mthumb-interwork 29ARCH := -mthumb -mthumb-interwork
30SPECS := -specs=gba.specs 30SPECS := -specs=gba.specs
31CFLAGS := -g -Wall -Wextra -pedantic 31CFLAGS := -g -Wall -Wextra -pedantic -fno-strict-aliasing
32CFLAGS += -mcpu=arm7tdmi -mtune=arm7tdmi $(ARCH) 32CFLAGS += -mcpu=arm7tdmi -mtune=arm7tdmi $(ARCH)
33CFLAGS += -I$(LIBGBA_SRC) 33CFLAGS += -I$(LIBGBA_SRC)
34LDFLAGS := $(ARCH) $(SPECS) 34LDFLAGS := $(ARCH) $(SPECS)