]> sourceware.org Git - automake.git/commitdiff
Initial revision
authorTom Tromey <tromey@redhat.com>
Wed, 22 Nov 1995 04:26:46 +0000 (04:26 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 22 Nov 1995 04:26:46 +0000 (04:26 +0000)
depend.am [new file with mode: 0644]
lib/am/depend.am [new file with mode: 0644]

diff --git a/depend.am b/depend.am
new file mode 100644 (file)
index 0000000..a7bf049
--- /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 (file)
index 0000000..a7bf049
--- /dev/null
@@ -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
+
This page took 0.028946 seconds and 5 git commands to generate.