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