From: David J. MacKenzie Date: Mon, 19 Sep 1994 15:12:26 +0000 (+0000) Subject: Initial revision X-Git-Tag: Release-0-25~479 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddb3d5fc5165da93b8b742f74ef564b2a9bef591;p=thirdparty%2Fautomake.git Initial revision --- diff --git a/clean.am b/clean.am new file mode 100644 index 000000000..cccd03e92 --- /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 index 000000000..4c37a3c5a --- /dev/null +++ b/compile.am @@ -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 index 000000000..cccd03e92 --- /dev/null +++ b/lib/am/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/lib/am/compile.am b/lib/am/compile.am new file mode 100644 index 000000000..4c37a3c5a --- /dev/null +++ b/lib/am/compile.am @@ -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 index 000000000..12abc0456 --- /dev/null +++ b/lib/am/library.am @@ -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 index 000000000..78e96a6f2 --- /dev/null +++ b/lib/am/program.am @@ -0,0 +1 @@ +@PROGRAM@: @PROGRAM@_OBJECTS diff --git a/lib/am/remake-hdr.am b/lib/am/remake-hdr.am new file mode 100644 index 000000000..40b618ab1 --- /dev/null +++ b/lib/am/remake-hdr.am @@ -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 index 000000000..4c361d457 --- /dev/null +++ b/lib/am/subdirs.am @@ -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 index 000000000..12abc0456 --- /dev/null +++ b/library.am @@ -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 index 000000000..78e96a6f2 --- /dev/null +++ b/program.am @@ -0,0 +1 @@ +@PROGRAM@: @PROGRAM@_OBJECTS diff --git a/programs.am b/programs.am new file mode 100644 index 000000000..34726d6fe --- /dev/null +++ b/programs.am @@ -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 index 000000000..40b618ab1 --- /dev/null +++ b/remake-hdr.am @@ -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 index 000000000..3bdc5db41 --- /dev/null +++ b/remake-subd.am @@ -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 index 000000000..0f051d9f6 --- /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 index 000000000..4c361d457 --- /dev/null +++ b/subdirs.am @@ -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