Author: jgg
Date: 2001-05-29 05:11:03 GMT
Support for GCC3s new .d output location
# makedep program that can be called after compiling, that's illistrated
# by the DEPFLAG case.
# Compile rules are expected to call this macro after calling the compiler
# makedep program that can be called after compiling, that's illistrated
# by the DEPFLAG case.
# Compile rules are expected to call this macro after calling the compiler
+ifdef GCC3DEP
+DFILE = $(DEP)/$(basename $(@F)).d
+else
+DFILE = $(basename $(@F)).d
+endif
ifdef INLINEDEPFLAG
define DoDep
ifdef INLINEDEPFLAG
define DoDep
- sed -e "1s/.*:/$(subst /,\\/,$@):/" $(basename $(@F)).d > $(DEP)/$(@F).d
+ sed -e "1s/.*:/$(subst /,\\/,$@):/" $(DFILE) > $(DEP)/$(@F).d
+ #sed -e "1s/.*:/$(subst /,\\/,$@):/" $(DEP)/$(basename $(@F)).d > $(DEP)/$(@F).d
-rm -f $(basename $(@F)).d
endef
else
-rm -f $(basename $(@F)).d
endef
else
RANLIB:=@RANLIB@
# Dep generation - this only works for gnu stuff
RANLIB:=@RANLIB@
# Dep generation - this only works for gnu stuff
INLINEDEPFLAG = -MD
# Debian doc stuff
INLINEDEPFLAG = -MD
# Debian doc stuff