mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-25 17:00:45 +08:00
[svn-r3778] Purpose:
Update Description: Changed the way .depend and Dependencies files were being generated. Instead of gathering all files which are ``#included'', we only pick out the ones which are local to us. Solution: Changed -M flag to -MM and changed #include <hdf5_files.h> to #include "hdf5_files.h" in the source code. Platforms tested: Linux
This commit is contained in:
parent
576213d960
commit
8bbacc3ae3
@ -39,16 +39,16 @@ $(srcdir)/Dependencies: .depend
|
||||
echo Building dependencies for $$dep; \
|
||||
obj=`basename $$dep .c`.lo; \
|
||||
sed '\%^'"$$obj"':%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@; \
|
||||
$(TRACE) $$dep; \
|
||||
$(CC) -M -MG $(CPPFLAGS) $$dep 2>/dev/null | \
|
||||
sed 's% $(srcdir)/% $$(srcdir)/%g' | \
|
||||
sed 's% $(top_srcdir)/% $$(top_srcdir)/%g' | \
|
||||
$(TRACE) $$dep; \
|
||||
$(CC) -MM -MG $(CPPFLAGS) $$dep 2>/dev/null | \
|
||||
sed 's% $(srcdir)/% $$(srcdir)/%g' | \
|
||||
sed 's% $(top_srcdir)/% $$(top_srcdir)/%g' | \
|
||||
sed 's% $(top_builddir)/% $$(top_builddir)/%g' | \
|
||||
sed 's/\.o/.lo/' >>$@; \
|
||||
;; \
|
||||
esac; \
|
||||
fi; \
|
||||
done;
|
||||
done
|
||||
|
||||
-include .depend
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user