diff options
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,7 @@ | |||
4 | # Path to the development kit (devkitARM) and the GBA library. | 4 | # Path to the development kit (devkitARM) and the GBA library. |
5 | DEVKITPRO := /opt/devkitpro | 5 | DEVKITPRO := /opt/devkitpro |
6 | DEVKITARM := /opt/devkitpro/devkitARM | 6 | DEVKITARM := /opt/devkitpro/devkitARM |
7 | PATH := $(DEVKITARM)/bin:$(PATH) | 7 | DEVKITBIN := $(DEVKITARM)/bin |
8 | LIBGBA_DIR := $(DEVKITPRO)/libgba | 8 | LIBGBA_DIR := $(DEVKITPRO)/libgba |
9 | LIBGBA_SRC := /opt/devkitpro/libgba/include/ | 9 | LIBGBA_SRC := /opt/devkitpro/libgba/include/ |
10 | LIBGBA := $(LIBGBA_DIR)/lib/libgba.a | 10 | LIBGBA := $(LIBGBA_DIR)/lib/libgba.a |
@@ -28,8 +28,8 @@ ELF := $(BUILD_DIR)/$(TARGET).elf | |||
28 | BIN := $(BUILD_DIR)/$(TARGET).gba | 28 | BIN := $(BUILD_DIR)/$(TARGET).gba |
29 | 29 | ||
30 | # Compiler and linker configuration. | 30 | # Compiler and linker configuration. |
31 | CC := arm-none-eabi-gcc | 31 | CC := $(DEVKITBIN)/arm-none-eabi-gcc |
32 | OBJCOPY := arm-none-eabi-objcopy | 32 | OBJCOPY := $(DEVKITBIN)/arm-none-eabi-objcopy |
33 | ARCH := -mthumb -mthumb-interwork | 33 | ARCH := -mthumb -mthumb-interwork |
34 | SPECS := -specs=gba.specs | 34 | SPECS := -specs=gba.specs |
35 | CFLAGS := -Wall -Wextra -pedantic -fno-strict-aliasing -Wno-incompatible-pointer-types | 35 | CFLAGS := -Wall -Wextra -pedantic -fno-strict-aliasing -Wno-incompatible-pointer-types |