projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added exe transform support. Made the strip explicit. Change to help cross compiling
[fw/sdcc]
/
Makefile
diff --git
a/Makefile
b/Makefile
index bf177067b2941d0192e34d058a8dd4110298c032..06df59a909f10143208dfaa7de3d384951918fa1 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-2,21
+2,26
@@
#
#
#
#
+CFLAGS+=-g
+
SHELL = /bin/sh
AUTOCONF = autoconf
PRJDIR = .
SHELL = /bin/sh
AUTOCONF = autoconf
PRJDIR = .
+srcdir = .
+include $(srcdir)/Makefile.common
+
SDCC_MISC = debugger/mcs51 sim/ucsim
SDCC_LIBS = support/cpp
SDCC_ASLINK = as/mcs51 as link
SDCC_MISC = debugger/mcs51 sim/ucsim
SDCC_LIBS = support/cpp
SDCC_ASLINK = as/mcs51 as link
+SDCC_PACKIHX = packihx
-PKGS =
$(SDCC_MISC) $(SDCC_LIBS) $(SDCC_ASLINK
) \
-
src
device/include device/lib
+PKGS =
src $(SDCC_ASLINK) $(SDCC_PACKIHX) $(SDCC_MISC
) \
+
$(SDCC_LIBS)
device/include device/lib
PKGS_TINI = $(SDCC_LIBS) $(SDCC_ASLINK) \
PKGS_TINI = $(SDCC_LIBS) $(SDCC_ASLINK) \
- src device/include
-PORTS = mcs51 z80
-
-srcdir = .
+ src device/include $(SDCC_PACKIHX)
+PORTS = $(shell cat ports.build)
+ALLPORTS = $(shell cat ports.all)
# Compiling entire program or any subproject
# ------------------------------------------
# Compiling entire program or any subproject
# ------------------------------------------
@@
-25,11
+30,6
@@
all: checkconf sdcc
tini: checkconf sdcc-tini
sdcc-libs:
tini: checkconf sdcc-tini
sdcc-libs:
-ifeq ($(CROSS_LIBGC),1)
- $(MAKE) -C support/gc -f Makefile.cross
-else
- $(MAKE) -C support/gc
-endif
for lib in $(SDCC_LIBS); do $(MAKE) -C $$lib; done
sdcc-cc: sdcc-libs
for lib in $(SDCC_LIBS); do $(MAKE) -C $$lib; done
sdcc-cc: sdcc-libs
@@
-41,6
+41,9
@@
sdcc-aslink:
sdcc-misc:
for misc in $(SDCC_MISC); do $(MAKE) -C $$misc; done
sdcc-misc:
for misc in $(SDCC_MISC); do $(MAKE) -C $$misc; done
+sdcc-packihx:
+ $(MAKE) -C $(SDCC_PACKIHX)
+
sdcc-device:
$(MAKE) -C device/include
$(MAKE) -C device/lib
sdcc-device:
$(MAKE) -C device/include
$(MAKE) -C device/lib
@@
-49,10
+52,10
@@
sdcc-device-tini:
$(MAKE) -C device/include
$(MAKE) -C device/lib modelDS390
$(MAKE) -C device/include
$(MAKE) -C device/lib modelDS390
-sdcc: sdcc-cc sdcc-aslink sdcc-misc sdcc-device
+sdcc: sdcc-cc sdcc-aslink sdcc-misc sdcc-device
sdcc-packihx
$(MAKE) -f main.mk all
$(MAKE) -f main.mk all
-sdcc-tini: sdcc-cc sdcc-aslink sdcc-device-tini
+sdcc-tini: sdcc-cc sdcc-aslink sdcc-device-tini
sdcc-packihx
$(MAKE) -f main.mk all
# Some interesting sub rules
$(MAKE) -f main.mk all
# Some interesting sub rules