summaryrefslogtreecommitdiff
path: root/nuttx/configs/z80sim/pashello/Make.defs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-13 22:04:47 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-13 22:04:47 +0000
commitbf8d0c68312793631ed4ade1541ec36168b3722b (patch)
treeb7b479778114a18c40f6fc2b874664cc61f7241a /nuttx/configs/z80sim/pashello/Make.defs
parent4f2e6ddbe763fd020cf82c5e1e555cba8cb7246a (diff)
downloadpx4-nuttx-bf8d0c68312793631ed4ade1541ec36168b3722b.tar.gz
px4-nuttx-bf8d0c68312793631ed4ade1541ec36168b3722b.tar.bz2
px4-nuttx-bf8d0c68312793631ed4ade1541ec36168b3722b.zip
Fixes for z80 compilation with SDCC toolchain. There are still a few header file and linker issues
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5149 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/z80sim/pashello/Make.defs')
-rw-r--r--nuttx/configs/z80sim/pashello/Make.defs37
1 files changed, 24 insertions, 13 deletions
diff --git a/nuttx/configs/z80sim/pashello/Make.defs b/nuttx/configs/z80sim/pashello/Make.defs
index b1f2b62cb..0617b8d8a 100644
--- a/nuttx/configs/z80sim/pashello/Make.defs
+++ b/nuttx/configs/z80sim/pashello/Make.defs
@@ -36,27 +36,38 @@
include ${TOPDIR}/.config
include ${TOPDIR}/tools/Config.mk
-ifeq ("${CONFIG_DEBUG_SYMBOLS}","y")
+CROSSDEV =
+CC = sdcc
+CPP = sdcpp
+AR = sdcclib -a
+
+ifeq ($(CONFIG_SDCC_OLD),y)
+
+LD = link-z80
+AS = as-z80
+ARCHCPUFLAGS = -mz80 --stack-auto --int-long-reent --float-reent
+
+else
+
+LD = sdldz80
+AS = sdasz80
+ARCHCPUFLAGS = -mz80
+
+endif
+
+ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
ARCHOPTIMIZATION = --debug
else
ARCHOPTIMIZATION =
endif
-ARCHCPUFLAGS = -mz80 --stack-auto --int-long-reent --float-reent
-ARCHPICFLAGS =
-ARCHWARNINGS =
+ARCHPICFLAGS =
+ARCHWARNINGS =
ARCHDEFINES =
-ARCHINCLUDES = -I. -I$(TOPDIR)/include
-
-CROSSDEV =
-CC = sdcc
-CPP = sdcpp
-LD = link-z80
-AS = as-z80
-AR = sdcclib -a
+ARCHINCLUDES = -I. -I$(TOPDIR)/include
CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) \
- $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES)
+ $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES)
CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES)
ASFLAGS = -x -a -l -o -s