diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config/ChangeLog | 5 | ||||
-rw-r--r-- | src/config/post.in | 33 | ||||
-rw-r--r-- | src/config/pre.in | 26 |
3 files changed, 64 insertions, 0 deletions
diff --git a/src/config/ChangeLog b/src/config/ChangeLog index be8d32f4a6..73323b9384 100644 --- a/src/config/ChangeLog +++ b/src/config/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 13 23:02:23 1996 Tom Yu <tlyu@voltage-multiplier.mit.edu> + + * post.in,pre.in: break some things out from aclocal.m4 and put + them here + Wed Jun 12 20:19:49 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> * windows.in (PAGESIZE): New variable which is used to control the diff --git a/src/config/post.in b/src/config/post.in index ae1e2a2405..c23ccd694e 100644 --- a/src/config/post.in +++ b/src/config/post.in @@ -35,3 +35,36 @@ clean-unix:: clean-windows:: $(RM) *.$(OBJEXT) $(RM) msvc.pdb *.err + +Makefiles:: Makefile + +Makefile: $(srcdir)/Makefile.in $(thisconfigdir)/config.status \ + $(SRCTOP)/config/pre.in $(SRCTOP)/config/post.in + cd $(thisconfigdir) && $(SHELL) config.status +$(thisconfigdir)/config.status: $(srcdir)/$(thisconfigdir)/configure + cd $(thisconfigdir) && $(SHELL) config.status --recheck +$(srcdir)/$(thisconfigdir)/configure: $(srcdir)/$(thisconfigdir)/configure.in \ + $(SRCTOP)/aclocal.m4 + cd $(srcdir)/$(thisconfigdir) && \ + $(SHELL) $(SRCTOP)/util/autoconf/autoconf \ + --localdir=$(BUILDTOP) \ + --macrodir=$(BUILDTOP)/util/autoconf + +#These don't work well with some versions of GNU make. +#all-unix clean-unix install-unix check-unix Makefiles:: +# @case "`echo '$(MAKEFLAGS)'|sed -e 's/ --.*$$//'`" in \ +# *[ik]*) e=:;; *) e="exit 1";; esac; + +@RECURSE_TARGETS@:: + @e="exit 1"; \ + for i in $(SUBDIRS) ; do \ + if test -d $$i ; then \ + target=`echo $@|sed s/-unix//`; \ + echo "making $$target in $(CURRENT_DIR)$$i..."; \ + if (cd $$i ; $(MAKE) CC="$(CC)" CCOPTS="$(CCOPTS)" \ + CURRENT_DIR=$(CURRENT_DIR)$$i/ $$target) then :; \ + else $$e; fi; \ + else \ + echo "Skipping missing directory $(CURRENT_DIR)$$i" ; \ + fi \ + done diff --git a/src/config/pre.in b/src/config/pre.in index 189296e138..d5f8342f05 100644 --- a/src/config/pre.in +++ b/src/config/pre.in @@ -2,6 +2,7 @@ ## common prefix for all Makefile.in in the Kerberos V5 tree. WHAT = unix +SHELL=/bin/sh all:: all-$(WHAT) @@ -91,6 +92,31 @@ OBJEXT = o LIBEXT = a EXEEXT = +# error table rules +# +### /* these are invoked as $(...) foo.et, which works, but could be better */ +COMPILE_ET_H= $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=$@ +COMPILE_ET_C= $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=$@ + +.SUFFIXES: .h .c .et .ct + +.et.h: + $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=$*.h $< + +.et.c: + $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=$*.c $< + +# ss command table rules +# +MAKE_COMMANDS= $(BUILDTOP)/util/ss/mk_cmds + +.ct.c: + @if [ $< != "$*.ct" ]; then \ + (set -x; cp $< "$*.ct" && $(MAKE_COMMANDS) "$*.ct" && $(RM) "$*.ct") || exit 1; \ + else \ + (set -x; $(MAKE_COMMANDS) "$*.ct") || exit 1; \ + fi + all:: clean:: install:: |