mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-23 22:40:38 +01:00
depend.mk, rules.mk: Fix dependency checking
Fix dependency checking, create seperate depfiles for every object file.
This commit is contained in:
parent
87f4f09458
commit
5447b4cdb4
2 changed files with 23 additions and 8 deletions
|
|
@ -187,12 +187,16 @@ endif
|
|||
#depend.mk: $(SRC_ALL_CPP)
|
||||
# > $@ && makedepend -f depend.mk -- $(CPPFLAGS) $(DEPEND_CPPFLAGS) -- $(SRC_ALL_CPP) 2>&1 | sed '/non-portable whitespace/ d'
|
||||
|
||||
depend.mk: $(filter-out %.h, $(SRC_ALL_CPP) $(PREREQ_DONE))
|
||||
> $@ && if [ "$(wildcard *.cpp *.c)" ]; then \
|
||||
gcc -M $(CPPFLAGS) $(DEPEND_CPPFLAGS) $(filter-out %.h,$(SRC_ALL_CPP)) -o $@; \
|
||||
fi
|
||||
#depend.mk: $(filter-out %.h, $(SRC_ALL_CPP) $(PREREQ_DONE))
|
||||
# > $@ && if [ "$(wildcard *.cpp *.c)" ]; then \
|
||||
# gcc -M $(CPPFLAGS) $(DEPEND_CPPFLAGS) $(filter-out %.h,$(SRC_ALL_CPP)) -o $@; \
|
||||
# fi
|
||||
|
||||
depend: depend.mk
|
||||
.%.o.dep.mk: %.cpp
|
||||
gcc -M $(CPPFLAGS) $(DEPEND_CPPFLAGS) $< -o $@
|
||||
|
||||
.%.o.dep.mk: %.c
|
||||
gcc -M $(CPPFLAGS) $(DEPEND_CPPFLAGS) $< -o $@
|
||||
|
||||
checkroot:
|
||||
@if [ "$(CHECK_ROOT)" = true -o "$(CHECK_ROOT)" = TRUE ] ; then \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue