sdk/Build System: Took out extra inclusion of LDFLAGS; Moved $(CPPFLAGS) and -D_DEBUG...
authorJerome St-Louis <jerome@ecere.com>
Wed, 7 Nov 2012 14:18:33 +0000 (09:18 -0500)
committerJerome St-Louis <jerome@ecere.com>
Wed, 7 Nov 2012 14:18:33 +0000 (09:18 -0500)
20 files changed:
compiler/bootstrap/ecc/Makefile
compiler/bootstrap/ecere/Makefile
compiler/bootstrap/ecp/Makefile
compiler/bootstrap/ecs/Makefile
compiler/bootstrap/libec/Makefile
compiler/ecc/Makefile
compiler/ecp/Makefile
compiler/ecs/Makefile
compiler/libec/Makefile
crossplatform.mk
deps/libungif-4.1.1/Makefile
documentor/Makefile
ear/cmd/Makefile
ear/extract/Makefile
ecere/Makefile
eda/libeda/Makefile
epj2make/Makefile
ide/Makefile
ide/src/project/Project.ec
ide/src/project/ProjectNode.ec

index 2453e5c..e904a26 100644 (file)
@@ -88,7 +88,6 @@ ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT) \
         -L../ecere/obj/bootstrap.$(PLATFORM) \
         -L../libec/obj/bootstrap.$(PLATFORM)
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index 01984fa..7622a67 100644 (file)
@@ -118,7 +118,6 @@ CECFLAGS += -cpp $(_CPP)
 
 ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT)
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index 721706f..4a2dd61 100644 (file)
@@ -88,7 +88,6 @@ ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT) \
         -L../ecere/obj/bootstrap.$(PLATFORM) \
         -L../libec/obj/bootstrap.$(PLATFORM)
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index a5b0ad0..c45f23f 100644 (file)
@@ -88,7 +88,6 @@ ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT) \
         -L../ecere/obj/bootstrap.$(PLATFORM) \
         -L../libec/obj/bootstrap.$(PLATFORM)
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index e07a106..72d529f 100644 (file)
@@ -108,7 +108,6 @@ CECFLAGS += -cpp $(_CPP)
 
 ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT)
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index 2793c8e..8c6c1e7 100755 (executable)
@@ -90,7 +90,6 @@ ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT) \
         -L../../obj/$(PLATFORM)/bin \
         -L../../obj/$(PLATFORM)/lib
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index 1145cf3..7b15812 100755 (executable)
@@ -90,7 +90,6 @@ ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT) \
         -L../../obj/$(PLATFORM)/bin \
         -L../../obj/$(PLATFORM)/lib
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index f6643c8..ada9fd8 100755 (executable)
@@ -90,7 +90,6 @@ ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT) \
         -L../../obj/$(PLATFORM)/bin \
         -L../../obj/$(PLATFORM)/lib
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index 0be1f06..3cd765a 100755 (executable)
@@ -124,7 +124,6 @@ ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT) \
         -L../../obj/$(PLATFORM)/bin \
         -L../../obj/$(PLATFORM)/lib
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index 053311f..baa7453 100755 (executable)
@@ -197,6 +197,11 @@ _L = $(if $(filter $(1),$(EXCLUDED_LIBS)),,-l$(1))
 # DEBIAN
 ifdef DEBIAN_PACKAGE
 OFLAGS += $(LDFLAGS)
+CFLAGS += $(CPPFLAGS)
+endif
+
+ifdef DEBUG
+CFLAGS += -D_DEBUG
 endif
 
 # COMMON LIBRARIES DETECTION
index df355cb..05337b2 100755 (executable)
@@ -70,7 +70,6 @@ CECFLAGS += -cpp $(_CPP)
 
 ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT)
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index 446785e..17b7cdf 100755 (executable)
@@ -98,7 +98,6 @@ ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT) \
         -L../obj/$(PLATFORM)/bin \
         -L../obj/$(PLATFORM)/lib
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index bca99e6..52836ac 100755 (executable)
@@ -91,7 +91,6 @@ ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT) \
         -L../../obj/$(PLATFORM)/bin \
         -L../../obj/$(PLATFORM)/lib
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index 702c4f6..e13131b 100755 (executable)
@@ -172,7 +172,6 @@ ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT) \
         -L../../ecere/obj/vanilla.$(PLATFORM) \
         -L../../deps/zlib/obj/release.$(PLATFORM)
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index efc9103..8aef6cb 100755 (executable)
@@ -502,7 +502,6 @@ CECFLAGS += -cpp $(_CPP)
 
 ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT)
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index a42ee46..9ae621a 100755 (executable)
@@ -117,7 +117,6 @@ ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT) \
         -L../../obj/$(PLATFORM)/bin \
         -L../../obj/$(PLATFORM)/lib
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index a4efa68..3caed53 100755 (executable)
@@ -104,7 +104,6 @@ ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT) \
         -L../obj/$(PLATFORM)/bin \
         -L../obj/$(PLATFORM)/lib
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index eef23de..43f7059 100755 (executable)
@@ -226,7 +226,6 @@ ifndef STATIC_LIBRARY_TARGET
 OFLAGS += $(FORCE_32_BIT) \
         -L../obj/$(PLATFORM)/bin \
         -L../obj/$(PLATFORM)/lib
-OFLAGS += $(LDFLAGS)
 endif
 
 # TARGETS
index 3159e7f..9778dbc 100755 (executable)
@@ -2536,7 +2536,6 @@ private:
          if(options && options.libraryDirs)
             OutputListOption(f, "L", options.libraryDirs, lineEach, true);
          f.Puts("\n");
-         f.Puts("OFLAGS += $(LDFLAGS)\n");
          f.Puts("endif\n");
          f.Puts("\n");
 
index 9e6bb29..35d498c 100755 (executable)
@@ -2127,7 +2127,8 @@ private:
                if(!isGreater)
                {
                   // absolutely common stuff outside of platform only, stuff that can't be changed by platform
-                  cflags.concatf(" \\\n\t $(if $(DEBIAN_PACKAGE),$(CPPFLAGS),) $(if $(DEBUG), -D_DEBUG,)");
+                 // This would normally go in crossplatform.mk (or compiler.cf if compiler-specific)
+                  // cflags.concatf(" \\\n\t $(if $(DEBIAN_PACKAGE),$(CPPFLAGS),) $(if $(DEBUG), -D_DEBUG,)");
                }
 
                for(platform = (Platform)1; platform < Platform::enumSize; platform++)