File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 41
41
# Standard object files generated during build process
42
42
* .o
43
43
44
+ # Dependency files generated during build process
45
+ * .dep
46
+
44
47
# Cache directories created by Autoconf tools
45
48
autom4te.cache /
46
49
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ test: all
111
111
112
112
clean:
113
113
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
114
- find . -name \*.lo -o -name \*.o | xargs rm -f
114
+ find . -name \*.lo -o -name \*.o -o -name \*.dep | xargs rm -f
115
115
find . -name \*.la -o -name \*.a | xargs rm -f
116
116
find . -name \*.so | xargs rm -f
117
117
find . -name .libs -a -type d|xargs rm -rf
@@ -156,9 +156,5 @@ prof-use:
156
156
fi; \
157
157
fi;
158
158
159
- # As we don't track includes, this is just a heuristic
160
- %.c: %_arginfo.h
161
- @touch $@
162
-
163
159
.PHONY: all clean install distclean test prof-gen prof-clean prof-use
164
160
.NOEXPORT:
Original file line number Diff line number Diff line change @@ -257,8 +257,12 @@ dnl Choose the right compiler/flags/etc. for the source-file.
257
257
*.cpp|*.cc|*.cxx[ )] ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta $3 -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
258
258
esac
259
259
260
+ dnl Generate Makefiles with dependencies
261
+ ac_comp="$ac_comp -MMD -MF $ac_bdir$ac_obj.dep -MT $ac_bdir[ $] ac_obj.lo"
262
+
260
263
dnl Create a rule for the object/source combo.
261
264
cat >>Makefile.objects<<EOF
265
+ -include $ac_bdir[ $] ac_obj.dep
262
266
$ac_bdir[ $] ac_obj.lo: $ac_srcdir[ $] ac_src
263
267
$ac_comp
264
268
EOF
You can’t perform that action at this time.
0 commit comments