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
ifeq ($(TARGET), arm-gba)
TARGET_CPPFLAGS = -I$(DEVKITARM)/include -DTARGET_GBA
TARGET_CFLAGS = -mthumb-interwork -mlong-calls
TARGET_CXXFLAGS = -mthumb-interwork -mlong-calls
TARGET_LDFLAGS = -mthumb-interwork -Wl,--gc-section
TARGET_ASFLAGS = -mthumb-interwork
TARGET_COMMON = -mcpu=arm7tdmi -mtune=arm7tdmi -mthumb-interwork
TARGET_CFLAGS = $(TARGET_COMMON) -mlong-calls
TARGET_CXXFLAGS = $(TARGET_COMMON) -mlong-calls
TARGET_LDFLAGS = $(TARGET_COMMON) -Wl,--gc-section
TARGET_ASFLAGS = $(TARGET_COMMON)
endif
CPPFLAGS =
......
......@@ -28,10 +28,11 @@ AS = $(PREFIX)as
AR = $(PREFIX)ar
CPPFLAGS = -I$(DEVKITARM)/include -I$(LIBGBA)/include -I$(PIMPMOBILE)/include
CFLAGS = -mthumb-interwork -mlong-calls
CXXFLAGS = -mthumb-interwork -mlong-calls -fconserve-space -fno-rtti -fno-exceptions
LDFLAGS = -mthumb-interwork -Wl,--gc-section
ASFLAGS = -mthumb-interwork
TARGET_COMMON = -mcpu=arm7tdmi -mtune=arm7tdmi -mthumb-interwork
CFLAGS = $(TARGET_COMMON) -mlong-calls
CXXFLAGS = $(TARGET_COMMON) -mlong-calls -fconserve-space -fno-rtti -fno-exceptions
LDFLAGS = $(TARGET_COMMON) -Wl,--gc-section
ASFLAGS = $(TARGET_COMMON)
LDLIBS = -L$(PIMPMOBILE)/lib -lpimp_gba -L$(LIBGBA)/lib -lgba
TARGET_ARCH = -specs=gba.specs
CONVERTER = $(PIMPMOBILE)/bin/pimpconv$(EXE_EXT)
......
Markdown is supported
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