aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2009-11-22 18:13:29 +0000
committerGreg Hudson <ghudson@mit.edu>2009-11-22 18:13:29 +0000
commitee7c901f80fc9057ed6bd1f91d04859d764fb046 (patch)
treed4e0e5e1bc234fe674572b799c5750175af5180c /src/config
parentd4afef7bcb12da240ea501aa3d274092569b11dc (diff)
downloadkrb5-ee7c901f80fc9057ed6bd1f91d04859d764fb046.zip
krb5-ee7c901f80fc9057ed6bd1f91d04859d764fb046.tar.gz
krb5-ee7c901f80fc9057ed6bd1f91d04859d764fb046.tar.bz2
Consolidate Makefile variables now that we have only a single global
configure script: $(SRCTOP) --> $(top_srcdir) $(srcdir)/$(thisconfigdir) --> $(top_srcdir) $(thisconfigdir) --> $(BUILDTOP) $(myfulldir) --> $(mydir) ticket: 6583 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23308 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/config')
-rw-r--r--src/config/lib.in4
-rw-r--r--src/config/libnover.in4
-rw-r--r--src/config/libobj.in4
-rw-r--r--src/config/post.in42
-rw-r--r--src/config/pre.in11
-rw-r--r--src/config/shlib.conf2
-rw-r--r--src/config/win-pre.in4
7 files changed, 35 insertions, 36 deletions
diff --git a/src/config/lib.in b/src/config/lib.in
index 22277cb..66422e0 100644
--- a/src/config/lib.in
+++ b/src/config/lib.in
@@ -153,8 +153,8 @@ install-profiled:
$(INSTALL_DATA) lib$(LIBBASE)$(PFLIBEXT) $(DESTDIR)$(KRB5_LIBDIR)
$(RANLIB) $(DESTDIR)$(KRB5_LIBDIR)/lib$(LIBBASE)$(PFLIBEXT)
-Makefile: $(SRCTOP)/config/lib.in
-$(thisconfigdir)/config.status: $(SRCTOP)/config/shlib.conf
+Makefile: $(top_srcdir)/config/lib.in
+$(BUILDTOP)/config.status: $(top_srcdir)/config/shlib.conf
# Use the following if links need to be made to $(TOPLIBD):
# all-unix:: all-liblinks
diff --git a/src/config/libnover.in b/src/config/libnover.in
index 4aa419a..458bccc 100644
--- a/src/config/libnover.in
+++ b/src/config/libnover.in
@@ -111,8 +111,8 @@ install-plugin:
$(RM) $(DESTDIR)$(MODULE_INSTALL_DIR)/$(LIBBASE)$(DYNOBJEXT)
$(INSTALL_SHLIB) $(LIBBASE)$(DYNOBJEXT) $(DESTDIR)$(MODULE_INSTALL_DIR)
-Makefile: $(SRCTOP)/config/libnover.in
-$(thisconfigdir)/config.status: $(SRCTOP)/config/shlib.conf
+Makefile: $(top_srcdir)/config/libnover.in
+$(BUILDTOP)/config.status: $(top_srcdir)/config/shlib.conf
# Use the following if links need to be made to $(TOPLIBD):
# all-unix:: all-liblinks
diff --git a/src/config/libobj.in b/src/config/libobj.in
index 7d306cd..aa913f0 100644
--- a/src/config/libobj.in
+++ b/src/config/libobj.in
@@ -32,8 +32,8 @@ all-libobjs: $(OBJLISTS)
clean-libobjs:
$(RM) OBJS.ST OBJS.SH OBJS.PF $(STLIBOBJS) $(SHLIBOBJS) $(PFLIBOBJS)
-Makefile: $(SRCTOP)/config/libobj.in
-config.status: $(SRCTOP)/config/shlib.conf
+Makefile: $(top_srcdir)/config/libobj.in
+config.status: $(top_srcdir)/config/shlib.conf
# clean-unix:: clean-libobjs
# all-unix:: all-libobjs
diff --git a/src/config/post.in b/src/config/post.in
index 023fd47..d5d2967 100644
--- a/src/config/post.in
+++ b/src/config/post.in
@@ -87,10 +87,10 @@ depend-dependencies:
# NOTE: This will also generate spurious $(OUTPRE) and $(OBJEXT)
# references in rules for non-library objects in a directory where
# library objects happen to be built. It's mostly harmless.
-.depend: .d $(SRCTOP)/util/depfix.pl
+.depend: .d $(top_srcdir)/util/depfix.pl
x=`$(CC) -print-libgcc-file-name` ; \
- perl $(SRCTOP)/util/depfix.pl \
- '$(SRCTOP)' '$(myfulldir)' '$(srcdir)' '$(BUILDTOP)' "$$x" '$(STLIBOBJS)' \
+ perl $(top_srcdir)/util/depfix.pl '$(top_srcdir)' '$(mydir)' \
+ '$(srcdir)' '$(BUILDTOP)' "$$x" '$(STLIBOBJS)' \
< .d > .depend
# Temporarily keep the rule for removing the dependency line eater
@@ -102,10 +102,11 @@ depend-update-makefile: .depend depend-recurse
else \
echo "# No dependencies here." > $(srcdir)/deps.new ; \
fi
- $(SRCTOP)/config/move-if-changed $(srcdir)/deps.new $(srcdir)/deps
+ $(top_srcdir)/config/move-if-changed $(srcdir)/deps.new $(srcdir)/deps
sed -e '/^# +++ Dependency line eater +++/,$$d' \
< $(srcdir)/Makefile.in > $(srcdir)/Makefile.in.new
- $(SRCTOP)/config/move-if-changed $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in
+ $(top_srcdir)/config/move-if-changed $(srcdir)/Makefile.in.new \
+ $(srcdir)/Makefile.in
DEPTARGETS = .depend .d .dtmp $(DEP_VERIFY)
DEPTARGETS_CLEAN = .depend .d .dtmp $(DEPTARGETS_@srcdir@_@CONFIG_RELTOPDIR@)
@@ -122,7 +123,7 @@ undepend-postrecurse: undepend-recurse
> $(srcdir)/Makefile.in.new ;\
echo "# +++ Dependency line eater +++" >> $(srcdir)/Makefile.in.new ;\
echo "# (dependencies temporarily removed)" >> $(srcdir)/Makefile.in.new ;\
- $(SRCTOP)/config/move-if-changed $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in;\
+ $(top_srcdir)/config/move-if-changed $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in;\
else :; fi
#
@@ -133,7 +134,7 @@ clean:: clean-$(WHAT)
clean-unix::
$(RM) $(OBJS) $(DEPTARGETS_CLEAN) $(EXTRA_FILES) et-[ch]-*.et et-[ch]-*.[ch]
- -$(RM) -r $(srcdir)/$(thisconfigdir)/autom4te.cache
+ -$(RM) -r $(top_srcdir)/autom4te.cache
clean-windows::
$(RM) *.$(OBJEXT)
@@ -150,24 +151,23 @@ distclean-postrecurse: distclean-nuke-configure-state
Makefiles-prerecurse: Makefile
-# thisconfigdir = relative path from this Makefile to config.status
-# mydir = relative path from config.status to this Makefile
-Makefile: $(srcdir)/Makefile.in $(srcdir)/deps $(thisconfigdir)/config.status \
- $(SRCTOP)/config/pre.in $(SRCTOP)/config/post.in
- cd $(thisconfigdir) && $(SHELL) config.status $(mydir)/Makefile
-$(thisconfigdir)/config.status: $(srcdir)/$(thisconfigdir)/configure
- cd $(thisconfigdir) && $(SHELL) config.status --recheck
+# mydir = relative path from top to this Makefile
+Makefile: $(srcdir)/Makefile.in $(srcdir)/deps $(BUILDTOP)/config.status \
+ $(top_srcdir)/config/pre.in $(top_srcdir)/config/post.in
+ cd $(BUILDTOP) && $(SHELL) config.status $(mydir)/Makefile
+$(BUILDTOP)/config.status: $(top_srcdir)/configure
+ cd $(BUILDTOP) && $(SHELL) config.status --recheck
# autom4te.cache supposedly improves performance with multiple runs, but
# it breaks across versions, and around MIT we've got plenty of version
# mixing. So nuke it.
-$(srcdir)/$(thisconfigdir)/configure: @MAINT@ \
- $(srcdir)/$(thisconfigdir)/configure.in \
- $(SRCTOP)/patchlevel.h \
- $(SRCTOP)/aclocal.m4
- -$(RM) -r $(srcdir)/$(thisconfigdir)/autom4te.cache
- cd $(srcdir)/$(thisconfigdir) && \
+$(top_srcdir)/configure: @MAINT@ \
+ $(top_srcdir)/configure.in \
+ $(top_srcdir)/patchlevel.h \
+ $(top_srcdir)/aclocal.m4
+ -$(RM) -r $(top_srcdir)/autom4te.cache
+ cd $(top_srcdir) && \
$(AUTOCONF) --include=$(CONFIG_RELTOPDIR) $(AUTOCONFFLAGS)
- -$(RM) -r $(srcdir)/$(thisconfigdir)/autom4te.cache
+ -$(RM) -r $(top_srcdir)/autom4te.cache
RECURSE_TARGETS=all-recurse clean-recurse distclean-recurse install-recurse \
generate-files-mac-recurse \
diff --git a/src/config/pre.in b/src/config/pre.in
index 4159824..34bb752 100644
--- a/src/config/pre.in
+++ b/src/config/pre.in
@@ -138,7 +138,6 @@ S=/
#
srcdir = @srcdir@
-SRCTOP = @srcdir@/$(BUILDTOP)
top_srcdir = @top_srcdir@
VPATH = @srcdir@
CONFIG_RELTOPDIR = @CONFIG_RELTOPDIR@
@@ -175,7 +174,7 @@ CC = @CC@
CXX = @CXX@
LD = $(PURE) @LD@
DEPLIBS = @DEPLIBS@
-KRB_INCLUDES = -I$(BUILDTOP)/include -I$(SRCTOP)/include
+KRB_INCLUDES = -I$(BUILDTOP)/include -I$(top_srcdir)/include
LDFLAGS = @LDFLAGS@
LD_UNRESOLVED_PREFIX = @LD_UNRESOLVED_PREFIX@
LD_SHLIBDIR_PREFIX = @LD_SHLIBDIR_PREFIX@
@@ -229,7 +228,7 @@ KRB5_INCSUBDIRS = \
# XXX check which of these are actually used!
#
TESTDIR = $(BUILDTOP)/kadmin/testing
-STESTDIR = $(SRCTOP)/kadmin/testing
+STESTDIR = $(top_srcdir)/kadmin/testing
COMPARE_DUMP = $(TESTDIR)/scripts/compare_dump.pl
INITDB = $(STESTDIR)/scripts/init_db
MAKE_KEYTAB = $(TESTDIR)/scripts/make-host-keytab.pl
@@ -273,7 +272,7 @@ AUTOCONF = autoconf
AUTOCONFFLAGS =
AUTOHEADER = autoheader
AUTOHEADERFLAGS =
-MOVEIFCHANGED = $(SRCTOP)/config/move-if-changed
+MOVEIFCHANGED = $(top_srcdir)/config/move-if-changed
SHEXT = @SHEXT@
STEXT=@STEXT@
@@ -413,7 +412,7 @@ TCL_INCLUDES = @TCL_INCLUDES@
### /* these are invoked as $(...) foo.et, which works, but could be better */
COMPILE_ET= $(COMPILE_ET-@COM_ERR_VERSION@)
COMPILE_ET-sys= compile_et
-COMPILE_ET-k5= $(BUILDTOP)/util/et/compile_et -d $(SRCTOP)/util/et
+COMPILE_ET-k5= $(BUILDTOP)/util/et/compile_et -d $(top_srcdir)/util/et
.SUFFIXES: .h .c .et .ct
@@ -563,7 +562,7 @@ VALGRIND=
# Need absolute paths here because under kshd or ftpd we may run programs
# while in other directories.
VALGRIND_LOGDIR = `cd $(BUILDTOP)&&pwd`
-VALGRIND1 = valgrind --tool=memcheck --log-file=$(VALGRIND_LOGDIR)/vg --trace-children=yes -v --leak-check=yes --suppressions=`cd $(SRCTOP)&&pwd`/util/valgrind-suppressions
+VALGRIND1 = valgrind --tool=memcheck --log-file=$(VALGRIND_LOGDIR)/vg --trace-children=yes -v --leak-check=yes --suppressions=`cd $(top_srcdir)&&pwd`/util/valgrind-suppressions
##
## end of pre.in
diff --git a/src/config/shlib.conf b/src/config/shlib.conf
index 6972ff0..d08b5df 100644
--- a/src/config/shlib.conf
+++ b/src/config/shlib.conf
@@ -411,7 +411,7 @@ mips-*-netbsd*)
# Use objdump -x to examine the fields of the library
LDCOMBINE='$(CC) -shared -fPIC -Wl,-h,$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT),--no-undefined $(LDFLAGS)'
#
- LDCOMBINE_TAIL='-Wl,--version-script binutils.versions && $(PERL) -w $(SRCTOP)/util/export-check.pl $(SHLIB_EXPORT_FILE) $@'
+ LDCOMBINE_TAIL='-Wl,--version-script binutils.versions && $(PERL) -w $(top_srcdir)/util/export-check.pl $(SHLIB_EXPORT_FILE) $@'
SHLIB_EXPORT_FILE_DEP=binutils.versions
# For cases where we do have dependencies on other libraries
# built in this tree...
diff --git a/src/config/win-pre.in b/src/config/win-pre.in
index 25dcaa9..52f0e5b 100644
--- a/src/config/win-pre.in
+++ b/src/config/win-pre.in
@@ -86,7 +86,7 @@ S=^\
C=.^\
srcdir = .
-SRCTOP = $(srcdir)\$(BUILDTOP)
+top_srcdir = $(srcdir)\$(BUILDTOP)
!if defined(KRB5_USE_DNS) || defined(KRB5_USE_DNS_KDC) || defined(KRB5_USE_DNS_REALMS)
!if defined(KRB5_NO_WSHELPER)
@@ -130,7 +130,7 @@ KFWFLAGS=-DUSE_LEASH=1
CC=cl
PDB_OPTS=-Fd$(OUTPRE)\ -FD
-CPPFLAGS=-I$(SRCTOP)\include -I$(SRCTOP)\include\krb5 $(DNSFLAGS) -DWIN32_LEAN_AND_MEAN -DKRB5_DEPRECATED=1 -D_CRT_SECURE_NO_DEPRECATE $(KFWFLAGS) $(TIME_T_FLAGS)
+CPPFLAGS=-I$(top_srcdir)\include -I$(top_srcdir)\include\krb5 $(DNSFLAGS) -DWIN32_LEAN_AND_MEAN -DKRB5_DEPRECATED=1 -D_CRT_SECURE_NO_DEPRECATE $(KFWFLAGS) $(TIME_T_FLAGS)
CCOPTS=-nologo /W3 $(PDB_OPTS) $(DLL_FILE_DEF)
LOPTS=-nologo -incremental:no