* src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 4 Jul 2006 07:29:55 +0000 (07:29 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 4 Jul 2006 07:29:55 +0000 (07:29 +0000)
  src/port.mk,
  src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
  src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
  src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
  reverted changes from 2006-07-03
* Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4263 4a8a32a2-be11-0410-ad9d-d568d2c75423

15 files changed:
ChangeLog
Makefile.common.in
configure
configure.in
src/Makefile.in
src/ds390/Makefile.in
src/ds400/Makefile.in
src/hc08/Makefile.in
src/mcs51/Makefile.in
src/pic/Makefile.in
src/pic16/Makefile.in
src/port.mk [new file with mode: 0644]
src/port.mk.in [deleted file]
src/xa51/Makefile.in
src/z80/Makefile.in

index 60e2bc8d46cdaedbdc3188726b7f074532f46b3c..f3b8d87aeaaa783ed952b66c6370d0998193d60d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2006-07-04 Borut Razem <borut.razem AT siol.net>
+
+       * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
+         src/port.mk,
+         src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
+         src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
+         src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
+         reverted changes from 2006-07-03
+       * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
+
 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
 
        * support/regression/valdiag/tests/switch.c,
@@ -11,7 +21,7 @@
        * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
          defined CPPFLAGS
        * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
-       * src/avr/Makefile.in, rc/ds390/Makefile.in, src/ds400/Makefile.in,
+       * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
          src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
          src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
          include ../port.mk
index 5f73360c682764904a39372c9be38a3b7f16b8cc..343c8ad4828611c8a77e9fb34a2f875f2e6e63ab 100644 (file)
@@ -59,7 +59,7 @@ transform       = @program_transform_name@
 # Flags
 
 DEFS           += $(subs -DHAVE_CONFIG_H,,@DEFS@)
-CPPFLAGS       += $(INCLUDEFLAGS) -I. -I$(top_builddir) -I$(srcdir)/$(SLIB) -I$(srcdir)
+CPPFLAGS       += @CPPFLAGS@ $(INCLUDEFLAGS) -I. -I$(top_builddir) -I$(srcdir)/$(SLIB) -I$(srcdir)
 CFLAGS         += -Wall @CFLAGS@
 LDFLAGS        += @LDFLAGS@
 M_OR_MM         = @M_OR_MM@
index b4e337d47636652d568fe4dc861e31b80d9f79bb..3076501cd1ced04361cada854813a87d24182d10 100755 (executable)
--- a/configure
+++ b/configure
@@ -7932,7 +7932,7 @@ fi
 test $OPT_DISABLE_DEVICE_LIB = 0 &&           ac_config_files="$ac_config_files device/lib/Makefile"
 
 
-                                                                                                    ac_config_files="$ac_config_files main.mk:main_in.mk src/Makefile src/port.mk:src/port.mk.in device/include/Makefile support/librarian/Makefile support/makebin/Makefile support/regression/Makefile support/valdiag/Makefile Makefile Makefile.common:Makefile.common.in"
+                                                                                          ac_config_files="$ac_config_files main.mk:main_in.mk src/Makefile device/include/Makefile support/librarian/Makefile support/makebin/Makefile support/regression/Makefile support/valdiag/Makefile Makefile Makefile.common:Makefile.common.in"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -8489,7 +8489,6 @@ do
   "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
   "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
-  "src/port.mk" ) CONFIG_FILES="$CONFIG_FILES src/port.mk:src/port.mk.in" ;;
   "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
   "support/librarian/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/librarian/Makefile" ;;
   "support/makebin/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/makebin/Makefile" ;;
index d1e44932141b12ab18d03bdee415bf042e20a748..993a35204feb3739c8980cb9012c4207786296da 100755 (executable)
@@ -685,7 +685,6 @@ test $OPT_DISABLE_DEVICE_LIB = 0 && AC_CONFIG_FILES([device/lib/Makefile])
 
 AC_CONFIG_FILES([main.mk:main_in.mk
 src/Makefile
-src/port.mk:src/port.mk.in
 device/include/Makefile
 support/librarian/Makefile
 support/makebin/Makefile
index 723642616dc78baf786bc1007bf7def0b29642d5..6084aa72a803b4c1e0ee41e5a5fd9d8ad3eea36c 100644 (file)
@@ -18,7 +18,7 @@ PORT_LIBS     = $(PORTS:%=%/port.a)
 LIBS           = -lm @LIBS@
 
 #CFLAGS          += -Werror
-CPPFLAGS       += -I$(srcdir) @CPPFLAGS@
+CPPFLAGS       += -I$(srcdir)
 
 ifdef SDCC_SUB_VERSION
 CFLAGS         += -DSDCC_SUB_VERSION_STR=\"$(SDCC_SUB_VERSION)\"
index a0a932b745aa387a48824594f1298c3e99b4e09c..dfb8a524581543c82d7697b019281c9027cde211 100644 (file)
@@ -4,4 +4,4 @@ top_builddir = @top_builddir@
 top_srcdir   = @top_srcdir@
 
 # Make all in this directory
-include ../port.mk
+include $(srcdir)/../port.mk
index a0a932b745aa387a48824594f1298c3e99b4e09c..dfb8a524581543c82d7697b019281c9027cde211 100644 (file)
@@ -4,4 +4,4 @@ top_builddir = @top_builddir@
 top_srcdir   = @top_srcdir@
 
 # Make all in this directory
-include ../port.mk
+include $(srcdir)/../port.mk
index a0a932b745aa387a48824594f1298c3e99b4e09c..dfb8a524581543c82d7697b019281c9027cde211 100644 (file)
@@ -4,4 +4,4 @@ top_builddir = @top_builddir@
 top_srcdir   = @top_srcdir@
 
 # Make all in this directory
-include ../port.mk
+include $(srcdir)/../port.mk
index a0a932b745aa387a48824594f1298c3e99b4e09c..dfb8a524581543c82d7697b019281c9027cde211 100644 (file)
@@ -4,4 +4,4 @@ top_builddir = @top_builddir@
 top_srcdir   = @top_srcdir@
 
 # Make all in this directory
-include ../port.mk
+include $(srcdir)/../port.mk
index 743a93328a9ea8528400e73b6a14c8217d30968a..8f8d493fe0b4d3fa82fb4da92a96cac389b8b3e4 100644 (file)
@@ -6,4 +6,4 @@ top_srcdir   = @top_srcdir@
 # Make all in this directory
 PORT   = pic
 
-include ../port.mk
+include $(srcdir)/../port.mk
index a0a932b745aa387a48824594f1298c3e99b4e09c..dfb8a524581543c82d7697b019281c9027cde211 100644 (file)
@@ -4,4 +4,4 @@ top_builddir = @top_builddir@
 top_srcdir   = @top_srcdir@
 
 # Make all in this directory
-include ../port.mk
+include $(srcdir)/../port.mk
diff --git a/src/port.mk b/src/port.mk
new file mode 100644 (file)
index 0000000..466a2ea
--- /dev/null
@@ -0,0 +1,49 @@
+# Common Makefile for all ports.
+# Input: SOURCES - list of C files included in the project
+#        SPECIAL - list of special files that should be included in dependencies
+#        PEEPRULES - list of all peephole rules (.rul) derrived files
+#        PREBUILD - list of special files to build before deps.
+
+# Ports are always located in sdcc/src/<portname>
+
+# Output
+LIB = port.a
+# Include the sdcc/src directory
+INCLUDEFLAGS = -I$(srcdir)/.. -I..
+
+# If the sources aren't specified, assume all in this directory.
+ifndef SOURCES
+SOURCES = $(notdir $(wildcard $(srcdir)/*.c))
+endif
+
+# If the peephole rules aren't specified, assume all.
+ifndef PEEPRULES
+PEEPDEFS = $(notdir $(wildcard $(srcdir)/*.def))
+PEEPRULES = $(PEEPDEFS:.def=.rul)
+endif
+
+PREBUILD += $(PEEPRULES)
+
+all: $(PREBUILD) dep $(LIB)
+
+include $(top_builddir)Makefile.common
+
+$(LIB): $(OBJ)
+       rm -f $(LIB)
+       $(AR) r $(LIB) $(OBJ)
+       $(RANLIB) $(LIB)
+
+%.rul: %.def
+       $(AWK) -f $(srcdir)/../SDCCpeeph.awk $< > $@
+
+dep: Makefile.dep
+
+Makefile.dep: $(PREBUILD) Makefile $(SOURCES) $(SPECIAL)
+       $(CPP) $(CPPFLAGS) $(M_OR_MM) $(filter %.c,$^) >Makefile.dep
+
+# don't include Makefile.dep for the listed targets:
+ifeq "$(findstring $(MAKECMDGOALS),clean distclean)" ""
+  include Makefile.dep
+endif
+
+include $(srcdir)/../port-clean.mk
diff --git a/src/port.mk.in b/src/port.mk.in
deleted file mode 100644 (file)
index cc97e09..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-# Common Makefile for all ports.
-# Input: SOURCES - list of C files included in the project
-#        SPECIAL - list of special files that should be included in dependencies
-#        PEEPRULES - list of all peephole rules (.rul) derrived files
-#        PREBUILD - list of special files to build before deps.
-
-# Ports are always located in sdcc/src/<portname>
-
-CPPFLAGS += @CPPFLAGS@
-
-# Output
-LIB = port.a
-# Include the sdcc/src directory
-INCLUDEFLAGS = -I$(srcdir)/.. -I..
-
-# If the sources aren't specified, assume all in this directory.
-ifndef SOURCES
-SOURCES = $(notdir $(wildcard $(srcdir)/*.c))
-endif
-
-# If the peephole rules aren't specified, assume all.
-ifndef PEEPRULES
-PEEPDEFS = $(notdir $(wildcard $(srcdir)/*.def))
-PEEPRULES = $(PEEPDEFS:.def=.rul)
-endif
-
-PREBUILD += $(PEEPRULES)
-
-all: $(PREBUILD) dep $(LIB)
-
-include $(top_builddir)Makefile.common
-
-$(LIB): $(OBJ)
-       rm -f $(LIB)
-       $(AR) r $(LIB) $(OBJ)
-       $(RANLIB) $(LIB)
-
-%.rul: %.def
-       $(AWK) -f $(srcdir)/../SDCCpeeph.awk $< > $@
-
-dep: Makefile.dep
-
-Makefile.dep: $(PREBUILD) Makefile $(SOURCES) $(SPECIAL)
-       $(CPP) $(CPPFLAGS) $(M_OR_MM) $(filter %.c,$^) >Makefile.dep
-
-# don't include Makefile.dep for the listed targets:
-ifeq "$(findstring $(MAKECMDGOALS),clean distclean)" ""
-  include Makefile.dep
-endif
-
-include $(srcdir)/../port-clean.mk
index a0a932b745aa387a48824594f1298c3e99b4e09c..dfb8a524581543c82d7697b019281c9027cde211 100644 (file)
@@ -4,4 +4,4 @@ top_builddir = @top_builddir@
 top_srcdir   = @top_srcdir@
 
 # Make all in this directory
-include ../port.mk
+include $(srcdir)/../port.mk
index a0a932b745aa387a48824594f1298c3e99b4e09c..dfb8a524581543c82d7697b019281c9027cde211 100644 (file)
@@ -4,4 +4,4 @@ top_builddir = @top_builddir@
 top_srcdir   = @top_srcdir@
 
 # Make all in this directory
-include ../port.mk
+include $(srcdir)/../port.mk