aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ds/arm7/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/ds/arm7/Makefile')
-rw-r--r--backends/platform/ds/arm7/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/backends/platform/ds/arm7/Makefile b/backends/platform/ds/arm7/Makefile
index d0498b069b..600842e812 100644
--- a/backends/platform/ds/arm7/Makefile
+++ b/backends/platform/ds/arm7/Makefile
@@ -12,6 +12,9 @@ TARGET := arm7
BUILD := build
SOURCES := gfx source data
INCLUDES := include build
+
+# Enable support for debugger (must be the same as in the arm9 makefile)
+USE_DEBUGGER = 1
#---------------------------------------------------------------------------------
# options for code generation
@@ -27,6 +30,11 @@ CFLAGS := -g -Wall -O2\
CFLAGS += $(INCLUDE) -DARM7
+ifdef USE_DEBUGGER
+ CFLAGS += -DUSE_DEBUGGER
+endif
+
+
CXXFLAGS := $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS := -g $(ARCH)
LDFLAGS := -g $(ARCH) -mno-fpu
@@ -49,6 +57,10 @@ PREFIX := arm-eabi-
# any extra libraries we wish to link with the project
#---------------------------------------------------------------------------------
LIBS := -lnds7
+
+ifdef USE_DEBUGGER
+ LIBS += -ldswifi7
+endif
#---------------------------------------------------------------------------------