summaryrefslogtreecommitdiff
path: root/makefiles/gmake/depend.mk
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2011-12-24 14:48:55 +0100
committerAndreas Baumann <abaumann@yahoo.com>2011-12-24 14:48:55 +0100
commit8cedf21f247829a8b73dd93ae33951ef1bf4d261 (patch)
tree90bc2eff2a3174bf5c83ec31afe5179e5422e85d /makefiles/gmake/depend.mk
parent2d948f085ae999fc0f15a0286f668431840a5b37 (diff)
downloadwolfbones-8cedf21f247829a8b73dd93ae33951ef1bf4d261.tar.gz
wolfbones-8cedf21f247829a8b73dd93ae33951ef1bf4d261.tar.bz2
allowing CFLAGS and LDFLAGS to be passed to make, internally using ALL_ flags
Diffstat (limited to 'makefiles/gmake/depend.mk')
-rw-r--r--makefiles/gmake/depend.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/makefiles/gmake/depend.mk b/makefiles/gmake/depend.mk
index 22eaa41..500ad91 100644
--- a/makefiles/gmake/depend.mk
+++ b/makefiles/gmake/depend.mk
@@ -16,7 +16,7 @@ ifeq "$(COMPILER)" "gcc"
%.d : %.c
@echo Generating dependencies for $<
- @$(CC) -DMAKE_DEPENDENCIES -MM -MT $(@:.d=.o) $(CFLAGS) $< | \
+ @$(CC) -DMAKE_DEPENDENCIES -MM -MT $(@:.d=.o) $(ALL_CFLAGS) $< | \
sed "s,\($*\.o\)[ :]*\(.*\),$@ : $$\(wildcard \2\)\&\&\&\1 : \2,g" | tr -s '&' "\n" > $@
endif
@@ -33,7 +33,7 @@ ifeq "$(COMPILER)" "icc"
%.d : %.c
@echo Generating dependencies for $<
- @$(CC) -DMAKE_DEPENDENCIES -MM -MT $(@:.d=.o) $(CFLAGS) $< | \
+ @$(CC) -DMAKE_DEPENDENCIES -MM -MT $(@:.d=.o) $(ALL_CFLAGS) $< | \
sed "s,\($*\.o\)[ :]*\(.*\),$@ : $$\(wildcard \2\)\&\&\&\1 : \2,g" | tr -s '&' "\n" > $@
endif
@@ -42,7 +42,7 @@ ifeq "$(COMPILER)" "spro"
%.d : %.c
@echo Generating dependencies for $<
- @$(CC) -DMAKE_DEPENDENCIES -xM1 $(CFLAGS) $< > $@
+ @$(CC) -DMAKE_DEPENDENCIES -xM1 $(ALL_CFLAGS) $< > $@
endif
@@ -51,7 +51,7 @@ ifeq "$(COMPILER)" "pcc"
# FIXME: platform in path of compiler include files, mmh, how to fix?
%.d : %.c
@echo Generating dependencies for $<
- @$(CC) -DMAKE_DEPENDENCIES $(CFLAGS) -M $< > $@
+ @$(CC) -DMAKE_DEPENDENCIES $(ALL_CFLAGS) -M $< > $@
endif