summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-14 19:09:23 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-03-14 19:09:23 +0100
commit4349e4e00487c70277824c87d0f0b92e822f052b (patch)
treee9cba8de204a456abdb9de161bb60c4415b08617
parent9a6677d5d2f1f76efd44326f9301b102b72b9636 (diff)
downloadwolfbones-4349e4e00487c70277824c87d0f0b92e822f052b.tar.gz
wolfbones-4349e4e00487c70277824c87d0f0b92e822f052b.tar.bz2
fixed dependencies of pcc, fixed setting of NLS platform flag
-rw-r--r--makefiles/gmake/depend.mk9
-rw-r--r--makefiles/gmake/platform.mk4
2 files changed, 12 insertions, 1 deletions
diff --git a/makefiles/gmake/depend.mk b/makefiles/gmake/depend.mk
index 1230f89..8b22c2e 100644
--- a/makefiles/gmake/depend.mk
+++ b/makefiles/gmake/depend.mk
@@ -59,6 +59,15 @@ ifeq "$(COMPILER)" "spro"
@$(CCPP) -DMAKE_DEPENDENCIES -xM1 $(CCPPFLAGS) $< > $@
endif
+ifeq "$(COMPILER)" "pcc"
+
+# FIXME: platform in path of compiler include files, mmh, how to fix?
+%.d : %.c
+ @echo Generating dependencies for $<
+ @makedepend -DMAKE_DEPENDENCIES $(PLATFORM_COMPILE_FLAGS) $(INCLUDE_DIRS) -I/usr/lib/pcc/i686-pc-linux-gnu/0.9.9/include -f - $< > $@
+
+endif
+
-include $(OBJS:.o=.d)
-include $(CPP_OBJS:.o=.d)
-include $(BIN_OBJS:.o=.d)
diff --git a/makefiles/gmake/platform.mk b/makefiles/gmake/platform.mk
index ab1d46c..0dd3be3 100644
--- a/makefiles/gmake/platform.mk
+++ b/makefiles/gmake/platform.mk
@@ -108,7 +108,9 @@ LDFLAGS_LT =
LIBS_LT = -lintl
endif
+PLATFORM_COMPILE_FLAGS += $(INCLUDE_FLAGS_LT)
+
endif
PLATFORM_COMPILE_FLAGS += \
- -DENABLE_NLS=$(ENABLE_NLS) $(INCLUDE_FLAGS_LT)
+ -DENABLE_NLS=$(ENABLE_NLS)