From: Tom Tromey Date: Wed, 22 Nov 1995 04:26:46 +0000 (+0000) Subject: Initial revision X-Git-Tag: Release-0-25~236 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1adea969296fed2772e6b98c74cc2a6976663a8a;p=thirdparty%2Fautomake.git Initial revision --- diff --git a/depend.am b/depend.am new file mode 100644 index 000000000..a7bf0492c --- /dev/null +++ b/depend.am @@ -0,0 +1,23 @@ +# This fragment is probably only useful for maintainers. It relies on +# GNU make and gcc. It is only included in the generated Makefile.in +# if `automake' is passed the `--use-deps' flag. + +MKDEP = gcc -MM + +DEP_FILES = $(patsubst %.o,.deps/%.P,$(OBJECTS)) + +-include .deps/empty.P +.deps/empty.P: + test -d .deps || mkdir .deps + touch $@ + +-include $(DEP_FILES) +$(DEP_FILES): .deps/empty.P + +.deps/%.P: %.c + @echo "mkdeps $< > $@" + @$(MKDEP) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@-tmp + @mv $@-tmp $@ + +# End of maintainer-only section + diff --git a/lib/am/depend.am b/lib/am/depend.am new file mode 100644 index 000000000..a7bf0492c --- /dev/null +++ b/lib/am/depend.am @@ -0,0 +1,23 @@ +# This fragment is probably only useful for maintainers. It relies on +# GNU make and gcc. It is only included in the generated Makefile.in +# if `automake' is passed the `--use-deps' flag. + +MKDEP = gcc -MM + +DEP_FILES = $(patsubst %.o,.deps/%.P,$(OBJECTS)) + +-include .deps/empty.P +.deps/empty.P: + test -d .deps || mkdir .deps + touch $@ + +-include $(DEP_FILES) +$(DEP_FILES): .deps/empty.P + +.deps/%.P: %.c + @echo "mkdeps $< > $@" + @$(MKDEP) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@-tmp + @mv $@-tmp $@ + +# End of maintainer-only section +