Commit 1d0a1cab authored by Erik Faye-Lund's avatar Erik Faye-Lund
Browse files

makefile: make sure we set mcpu and mtune correctly

parent 24b3966a
...@@ -69,10 +69,11 @@ MKDIR = mkdir -p ...@@ -69,10 +69,11 @@ MKDIR = mkdir -p
ifeq ($(TARGET), arm-gba) ifeq ($(TARGET), arm-gba)
TARGET_CPPFLAGS = -I$(DEVKITARM)/include -DTARGET_GBA TARGET_CPPFLAGS = -I$(DEVKITARM)/include -DTARGET_GBA
TARGET_CFLAGS = -mthumb-interwork -mlong-calls TARGET_COMMON = -mcpu=arm7tdmi -mtune=arm7tdmi -mthumb-interwork
TARGET_CXXFLAGS = -mthumb-interwork -mlong-calls TARGET_CFLAGS = $(TARGET_COMMON) -mlong-calls
TARGET_LDFLAGS = -mthumb-interwork -Wl,--gc-section TARGET_CXXFLAGS = $(TARGET_COMMON) -mlong-calls
TARGET_ASFLAGS = -mthumb-interwork TARGET_LDFLAGS = $(TARGET_COMMON) -Wl,--gc-section
TARGET_ASFLAGS = $(TARGET_COMMON)
endif endif
CPPFLAGS = CPPFLAGS =
......
...@@ -28,10 +28,11 @@ AS = $(PREFIX)as ...@@ -28,10 +28,11 @@ AS = $(PREFIX)as
AR = $(PREFIX)ar AR = $(PREFIX)ar
CPPFLAGS = -I$(DEVKITARM)/include -I$(LIBGBA)/include -I$(PIMPMOBILE)/include CPPFLAGS = -I$(DEVKITARM)/include -I$(LIBGBA)/include -I$(PIMPMOBILE)/include
CFLAGS = -mthumb-interwork -mlong-calls TARGET_COMMON = -mcpu=arm7tdmi -mtune=arm7tdmi -mthumb-interwork
CXXFLAGS = -mthumb-interwork -mlong-calls -fconserve-space -fno-rtti -fno-exceptions CFLAGS = $(TARGET_COMMON) -mlong-calls
LDFLAGS = -mthumb-interwork -Wl,--gc-section CXXFLAGS = $(TARGET_COMMON) -mlong-calls -fconserve-space -fno-rtti -fno-exceptions
ASFLAGS = -mthumb-interwork LDFLAGS = $(TARGET_COMMON) -Wl,--gc-section
ASFLAGS = $(TARGET_COMMON)
LDLIBS = -L$(PIMPMOBILE)/lib -lpimp_gba -L$(LIBGBA)/lib -lgba LDLIBS = -L$(PIMPMOBILE)/lib -lpimp_gba -L$(LIBGBA)/lib -lgba
TARGET_ARCH = -specs=gba.specs TARGET_ARCH = -specs=gba.specs
CONVERTER = $(PIMPMOBILE)/bin/pimpconv$(EXE_EXT) CONVERTER = $(PIMPMOBILE)/bin/pimpconv$(EXE_EXT)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment