Initial revision
authorDavid J. MacKenzie <djm@gnu.org>
Mon, 19 Sep 1994 15:12:26 +0000 (15:12 +0000)
committerDavid J. MacKenzie <djm@gnu.org>
Mon, 19 Sep 1994 15:12:26 +0000 (15:12 +0000)
15 files changed:
clean.am [new file with mode: 0644]
compile.am [new file with mode: 0644]
lib/am/clean.am [new file with mode: 0644]
lib/am/compile.am [new file with mode: 0644]
lib/am/library.am [new file with mode: 0644]
lib/am/program.am [new file with mode: 0644]
lib/am/remake-hdr.am [new file with mode: 0644]
lib/am/subdirs.am [new file with mode: 0644]
library.am [new file with mode: 0644]
program.am [new file with mode: 0644]
programs.am [new file with mode: 0644]
remake-hdr.am [new file with mode: 0644]
remake-subd.am [new file with mode: 0644]
remake.am [new file with mode: 0644]
subdirs.am [new file with mode: 0644]

diff --git a/clean.am b/clean.am
new file mode 100644 (file)
index 0000000..cccd03e
--- /dev/null
+++ b/clean.am
@@ -0,0 +1,11 @@
+mostlyclean:
+       rm -f *.o core
+
+clean: mostlyclean
+       rm -f $(PROGRAMS) $(LIBRARIES) $(CLEANFILES)
+
+distclean: clean
+       rm -f Makefile
+
+realclean: distclean
+       rm -f TAGS
diff --git a/compile.am b/compile.am
new file mode 100644 (file)
index 0000000..4c37a3c
--- /dev/null
@@ -0,0 +1,10 @@
+CC = @CC@
+LEX = @LEX@
+YACC = @YACC@
+DEFS = @DEFS@
+CFLAGS = @CFLAGS@
+
+.SUFFIXES:
+.SUFFIXES: .c .o
+.c.o:
+       $(CC) -c $(DEFS) $(CPPFLAGS) $(CFLAGS) $<
diff --git a/lib/am/clean.am b/lib/am/clean.am
new file mode 100644 (file)
index 0000000..cccd03e
--- /dev/null
@@ -0,0 +1,11 @@
+mostlyclean:
+       rm -f *.o core
+
+clean: mostlyclean
+       rm -f $(PROGRAMS) $(LIBRARIES) $(CLEANFILES)
+
+distclean: clean
+       rm -f Makefile
+
+realclean: distclean
+       rm -f TAGS
diff --git a/lib/am/compile.am b/lib/am/compile.am
new file mode 100644 (file)
index 0000000..4c37a3c
--- /dev/null
@@ -0,0 +1,10 @@
+CC = @CC@
+LEX = @LEX@
+YACC = @YACC@
+DEFS = @DEFS@
+CFLAGS = @CFLAGS@
+
+.SUFFIXES:
+.SUFFIXES: .c .o
+.c.o:
+       $(CC) -c $(DEFS) $(CPPFLAGS) $(CFLAGS) $<
diff --git a/lib/am/library.am b/lib/am/library.am
new file mode 100644 (file)
index 0000000..12abc04
--- /dev/null
@@ -0,0 +1,4 @@
+lib@LIBRARY@.a: $(@LIBRARY@_OBJECTS)
+       rm -f lib@LIBRARY@.a
+       $(AR) cru lib@LIBRARY@.a $(@LIBRARY@_OBJECTS)
+       $(RANLIB) lib@LIBRARY@.a
diff --git a/lib/am/program.am b/lib/am/program.am
new file mode 100644 (file)
index 0000000..78e96a6
--- /dev/null
@@ -0,0 +1 @@
+@PROGRAM@: @PROGRAM@_OBJECTS
diff --git a/lib/am/remake-hdr.am b/lib/am/remake-hdr.am
new file mode 100644 (file)
index 0000000..40b618a
--- /dev/null
@@ -0,0 +1,16 @@
+# For the justification of the following Makefile rules, see node
+# `Automatic Remaking' in GNU Autoconf documentation.
+Makefile: Makefile.in config.status
+       CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
+config.status: configure
+       ./config.status --recheck
+configure: configure.in aclocal.m4
+       cd $(srcdir); autoconf
+
+${CONFIG_HEADER}: stamp-h
+stamp-h: ${CONFIG_HEADER}.in config.status
+       CONFIG_FILES= CONFIG_HEADERS=${CONFIG_HEADER} ./config.status
+${CONFIG_HEADER}.in: stamp-h.in
+stamp-h.in: configure.in aclocal.m4 ac${CONFIG_HEADER}
+       cd $(srcdir); autoheader
+       date > $(srcdir)/stamp-h.in
diff --git a/lib/am/subdirs.am b/lib/am/subdirs.am
new file mode 100644 (file)
index 0000000..4c361d4
--- /dev/null
@@ -0,0 +1,39 @@
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+#     (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+
+@SET_MAKE@
+
+all install install-info uninstall check tags TAGS info dvi:
+       for subdir in $(SUBDIRS); do \
+         echo making $@ in $$dir ; \
+         (cd $$subdir; $(MAKE) $@); \
+       done
+
+mostlyclean: mostlyclean-recursive mostlyclean-local
+
+clean: clean-recursive clean-local
+
+distclean: distclean-recursive
+       $(MAKE) distclean-local
+              
+realclean: realclean-recursive
+       $(MAKE) realclean-local
+
+mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive:
+       for subdir in $(SUBDIRS); do \
+         (cd $$subdir; $(MAKE) `echo $@ | sed s/-recursive//`); \
+       done
+
+mostlyclean-local:
+       rm -f *~
+
+clean-local: mostlyclean-local
+
+distclean-local: clean-local
+       rm -f Makefile config.cache config.h config.log config.status stamp-h
+
+realclean-local: distclean-local
diff --git a/library.am b/library.am
new file mode 100644 (file)
index 0000000..12abc04
--- /dev/null
@@ -0,0 +1,4 @@
+lib@LIBRARY@.a: $(@LIBRARY@_OBJECTS)
+       rm -f lib@LIBRARY@.a
+       $(AR) cru lib@LIBRARY@.a $(@LIBRARY@_OBJECTS)
+       $(RANLIB) lib@LIBRARY@.a
diff --git a/program.am b/program.am
new file mode 100644 (file)
index 0000000..78e96a6
--- /dev/null
@@ -0,0 +1 @@
+@PROGRAM@: @PROGRAM@_OBJECTS
diff --git a/programs.am b/programs.am
new file mode 100644 (file)
index 0000000..34726d6
--- /dev/null
@@ -0,0 +1,8 @@
+CC = @CC@
+YACC = @YACC@
+DEFS = @DEFS@
+CFLAGS = @CFLAGS@
+LDFLAGS = @LDFLAGS@
+LIBS = @LIBS@
+bindir = $(exec_prefix)/bin
+transform = @program_transform_name@
diff --git a/remake-hdr.am b/remake-hdr.am
new file mode 100644 (file)
index 0000000..40b618a
--- /dev/null
@@ -0,0 +1,16 @@
+# For the justification of the following Makefile rules, see node
+# `Automatic Remaking' in GNU Autoconf documentation.
+Makefile: Makefile.in config.status
+       CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
+config.status: configure
+       ./config.status --recheck
+configure: configure.in aclocal.m4
+       cd $(srcdir); autoconf
+
+${CONFIG_HEADER}: stamp-h
+stamp-h: ${CONFIG_HEADER}.in config.status
+       CONFIG_FILES= CONFIG_HEADERS=${CONFIG_HEADER} ./config.status
+${CONFIG_HEADER}.in: stamp-h.in
+stamp-h.in: configure.in aclocal.m4 ac${CONFIG_HEADER}
+       cd $(srcdir); autoheader
+       date > $(srcdir)/stamp-h.in
diff --git a/remake-subd.am b/remake-subd.am
new file mode 100644 (file)
index 0000000..3bdc5db
--- /dev/null
@@ -0,0 +1,2 @@
+Makefile: ../config.status Makefile.in
+       cd ..; CONFIG_FILES=src/$@ CONFIG_HEADERS= ./config.status
diff --git a/remake.am b/remake.am
new file mode 100644 (file)
index 0000000..0f051d9
--- /dev/null
+++ b/remake.am
@@ -0,0 +1,8 @@
+# For the justification of the following Makefile rules, see node
+# `Automatic Remaking' in GNU Autoconf documentation.
+Makefile: Makefile.in config.status
+       CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
+config.status: configure
+       ./config.status --recheck
+configure: configure.in aclocal.m4
+       cd $(srcdir); autoconf
diff --git a/subdirs.am b/subdirs.am
new file mode 100644 (file)
index 0000000..4c361d4
--- /dev/null
@@ -0,0 +1,39 @@
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+#     (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+
+@SET_MAKE@
+
+all install install-info uninstall check tags TAGS info dvi:
+       for subdir in $(SUBDIRS); do \
+         echo making $@ in $$dir ; \
+         (cd $$subdir; $(MAKE) $@); \
+       done
+
+mostlyclean: mostlyclean-recursive mostlyclean-local
+
+clean: clean-recursive clean-local
+
+distclean: distclean-recursive
+       $(MAKE) distclean-local
+              
+realclean: realclean-recursive
+       $(MAKE) realclean-local
+
+mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive:
+       for subdir in $(SUBDIRS); do \
+         (cd $$subdir; $(MAKE) `echo $@ | sed s/-recursive//`); \
+       done
+
+mostlyclean-local:
+       rm -f *~
+
+clean-local: mostlyclean-local
+
+distclean-local: clean-local
+       rm -f Makefile config.cache config.h config.log config.status stamp-h
+
+realclean-local: distclean-local