Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
pimpmobile
Commits
1d0a1cab
Commit
1d0a1cab
authored
Sep 20, 2016
by
Erik Faye-Lund
Browse files
makefile: make sure we set mcpu and mtune correctly
parent
24b3966a
Changes
2
Show whitespace changes
Inline
Side-by-side
Makefile
View file @
1d0a1cab
...
...
@@ -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
=
...
...
examples/Makefile
View file @
1d0a1cab
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment