Reorganize library logic and use LDFLAGS from configure
authorPaul Park <pjpark@mit.edu>
Fri, 7 Jul 1995 21:09:13 +0000 (21:09 +0000)
committerPaul Park <pjpark@mit.edu>
Fri, 7 Jul 1995 21:09:13 +0000 (21:09 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6265 dc483132-0cff-0310-8789-dd5450dbe970

18 files changed:
src/slave/ChangeLog
src/slave/Makefile.in
src/slave/configure.in
src/tests/asn.1/ChangeLog
src/tests/asn.1/Makefile.in
src/tests/asn.1/configure.in
src/tests/create/ChangeLog
src/tests/create/Makefile.in
src/tests/create/configure.in
src/tests/hammer/ChangeLog
src/tests/hammer/Makefile.in
src/tests/hammer/configure.in
src/tests/resolve/ChangeLog
src/tests/resolve/Makefile.in
src/tests/resolve/configure.in
src/tests/verify/ChangeLog
src/tests/verify/Makefile.in
src/tests/verify/configure.in

index 14e4ba66c2ee80cd4e0219cb2a6c64e89db9c651..710798539c998308ff2cf24c8cd4533b27f0fd25 100644 (file)
@@ -1,3 +1,8 @@
+
+Fri Jul 7 16:34:36 EDT 1995    Paul Park       (pjpark@mit.edu)
+       * Makefile.in - Remove all explicit library handling and LDFLAGS.
+       * configure.in - Add USE_KDB5_LIBRARY and KRB5_LIBRARIES.
+
 Wed July  5 15:52:31 1995  James Mattly  <mattly@fusion.com>
        * kprop.c changed open to THREEPARAMOPEN
 
index 22e6cc67f71c0142c6e7b3508ca8b68c791e34c4..c1b8edf9ccce280e77db6172f2df8eeaa3551d4b 100644 (file)
@@ -1,18 +1,7 @@
 CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE)
-LDFLAGS = -g
-
-COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
-KDBLIB=-lkdb5 
-
-KLIB = -lkrb5 -lcrypto $(COMERRLIB) 
-DEPKLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB) 
 
 all::
 
-
-        DEPLIBS = $(DEPKLIB)
-LOCAL_LIBRARIES = $(KLIB)
-
 CLIENTSRCS= $(srcdir)/kprop.c 
 CLIENTOBJS= kprop.o 
 
@@ -24,14 +13,14 @@ SRCS= $(CLIENTSRCS) $(SERVERSRCS)
 all::  kprop kpropd
 
 kprop: $(CLIENTOBJS) $(DEPLIBS)
-       $(LD) $(LDFLAGS) $(LDARGS) -o kprop $(CLIENTOBJS) $(LOCAL_LIBRARIES) $(LIBS)
+       $(LD) $(LDFLAGS) $(LDARGS) -o kprop $(CLIENTOBJS) $(LIBS)
 
 install::
        $(INSTALL_PROGRAM) kprop ${DESTDIR}$(SERVER_BINDIR)/kprop
        $(INSTALL_DATA) $(srcdir)/kprop.M ${DESTDIR}$(SERVER_MANDIR)/kprop.8
 
 kpropd: $(SERVEROBJS) $(DEPLIBS)
-       $(LD) $(LDFLAGS) $(LDARGS) -o kpropd $(SERVEROBJS) $(LOCAL_LIBRARIES) $(LIBS)
+       $(LD) $(LDFLAGS) $(LDARGS) -o kpropd $(SERVEROBJS) $(LIBS)
 
 install::
        $(INSTALL_PROGRAM) kpropd ${DESTDIR}$(SERVER_BINDIR)/kpropd
index 12c9830be619e425666a294df20dfcc0fa9a9d81..8c6982bb71e9f7d036fe93205622abcf256a0e36 100644 (file)
@@ -17,5 +17,7 @@ else
 fi
 AC_SUBST(DBFLAGS)dnl
 dnl
+USE_KDB5_LIBRARY
+KRB5_LIBRARIES
 V5_USE_SHARED_LIB
 V5_AC_OUTPUT_MAKEFILE
index 0dade2ec05d1bdd8471a04bf21e4e007e5ee59c5..520a5ce0dc4a87733e4f2c58e8471655e579ef7c 100644 (file)
@@ -1,3 +1,8 @@
+
+Fri Jul 7 16:36:12 EDT 1995    Paul Park       (pjpark@mit.edu)
+       * Makefile.in - Remove explicit library handling and LDFLAGS.
+       * configure.in - Add KRB5_LIBRARIES and V5_USE_SHARED_LIB.
+
 Tue Jun 20 14:56:53 1995    <tytso@rsx-11.mit.edu>
 
        * ktest.h, ktest_equal.h: Change PROTOTYPE to KRB5_PROTOTYPE
index 0b4157abf1faa6a57d9be2bf22ed45fa4c706d4e..5eafdf165a2970ea9e6cdbc57f45825f08b9cd6b 100644 (file)
@@ -1,25 +1,20 @@
 CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDES)
-LDFLAGS = -g
 
-COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
-DBMLIB=
+COMERRLIB=$(TOPLIBD)/libcom_err.a
 
 all:: krb5_encode_test krb5_decode_test
 
-KLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB) $(DBMLIB)
-DEPKLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB) $(DBMLIB)
-
 LOCALINCLUDES = -I$(srcdir)/../../lib/krb5/asn.1
 
 ENCOBJS = krb5_encode_test.o ktest.o ktest_equal.o utility.o trval.o
 
-krb5_encode_test: $(ENCOBJS) $(DEPKLIB) 
-       $(LD) $(CFLAGS) -o krb5_encode_test $(ENCOBJS) $(LIBS) $(KLIB)
+krb5_encode_test: $(ENCOBJS) $(DEPLIBS)
+       $(LD) $(LDFLAGS) $(LDARGS) -o krb5_encode_test $(ENCOBJS) $(LIBS)
 
 DECOBJS = krb5_decode_test.o ktest.o ktest_equal.o utility.o
 
-krb5_decode_test: $(DECOBJS) $(DEPKLIB)
-       $(LD) $(CFLAGS) -o krb5_decode_test $(DECOBJS) $(LIBS) $(KLIB)
+krb5_decode_test: $(DECOBJS) $(DEPLIBS)
+       $(LD) $(LDFLAGS) $(LDARGS) -o krb5_decode_test $(DECOBJS) $(LIBS)
 
 check:: krb5_decode_test krb5_encode_test
        ./krb5_decode_test
index feeddf0e0608a821d98d9fc50e9dbd7306d97785..fc8db02c68dd1da1f1045b223a2db324cb18b110 100644 (file)
@@ -1,4 +1,6 @@
 AC_INIT(krb5_encode_test.c)
 CONFIG_RULES
 AC_PROG_INSTALL
+KRB5_LIBRARIES
+V5_USE_SHARED_LIB
 V5_AC_OUTPUT_MAKEFILE
index 90b816de454eb652ae2b4d6eff250ea9a7e9b59d..4ca752457d16f0f38ce6772b69f9417302732f16 100644 (file)
@@ -1,4 +1,9 @@
 
+Fri Jul 7 16:37:07 EDT 1995    Paul Park       (pjpark@mit.edu)
+       * Makefile.in - Remove explicit library handling and LDFLAGS.
+       * configure.in - Add USE_KDB5_LIBRARY and KRB5_LIBRARIES
+
+
 Thu Jun 15 18:10:55 EDT 1995   Paul Park       (pjpark@mit.edu)
        * Makefile.in - Remove DBMLIB.
        * configure.in - Remove check for dbm libraries.  Use shared library
index 6af3bc10c13306b22491710fbb9487d82a0c3c7c..e011bc828f493f9887ff98e11c5509139cd51975 100644 (file)
@@ -1,19 +1,9 @@
 CFLAGS = $(CCOPTS) $(DEFS) 
-LDFLAGS = -g
-
-COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
-KDBLIB=$(TOPLIBD)/libkdb5.a 
-DEPKDBLIB=$(TOPLIBD)/libkdb5.a 
 
 all:: kdb5_mkdums
 
-KLIB = $(KDBLIB) $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB)
-DEPKLIB = $(KDBLIB) $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB)
-
-DEPLIBS = $(DEPKDBLIB) $(DEPKLIB)
-
 kdb5_mkdums: kdb5_mkdums.o $(DEPLIBS)
-       $(CC) $(CFLAGS) -o kdb5_mkdums kdb5_mkdums.o $(KLIB) $(LIBS)
+       $(LD) $(LDFLAGS) $(LDARGS) -o kdb5_mkdums kdb5_mkdums.o $(LIBS)
 
 kdb5_mkdums.o: $(srcdir)/kdb5_mkdums.c
 
index d5bb2a8eeadb9c3d3db0c049fcb264036d5dde25..f092073d2867043491519c4124d0a1aa0d1185fa 100644 (file)
@@ -1,5 +1,7 @@
 AC_INIT(kdb5_mkdums.c)
 CONFIG_RULES
 AC_PROG_INSTALL
+USE_KDB5_LIBRARY
+KRB5_LIBRARIES
 V5_USE_SHARED_LIB
 V5_AC_OUTPUT_MAKEFILE
index f2db3db5b9ef5476c4c88ee32e36e5f965bfc665..19d430dcce08b8219e60112208fb5a6c66092e9a 100644 (file)
@@ -1,4 +1,9 @@
 
+Fri Jul 7 16:37:54 EDT 1995    Paul Park       (pjpark@mit.edu)
+       * Makefile.in - Remove explicit library handling and LDFLAGS.
+       * configure.in - Add KRB5_LIBRARIES and V5_USE_SHARED_LIB.
+
+
 Thu Jun 22 12:02:48 EDT 1995   Paul Park       (pjpark@mit.edu)
        * kdc5_hammer.c - Change generation of server principals so that
                we can use kdc5_hammer with kdb5_mkdums.  Also add logic
index dfd9364dfeea27cd19861ae27f3672a52dbe70bc..a8f729a2114f810f032df8028c718d415f469add 100644 (file)
@@ -1,16 +1,9 @@
 CFLAGS = $(CCOPTS) $(DEFS) 
-LDFLAGS = -g
-
-COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
-DBMLIB=
 
 all:: kdc5_hammer
 
-KLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB) $(DBMLIB)
-DEPKLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB) $(DBMLIB)
-
-kdc5_hammer: kdc5_hammer.o $(DEPKLIB)
-       $(CC) $(CFLAGS) -o kdc5_hammer kdc5_hammer.o $(KLIB) $(LIBS)
+kdc5_hammer: kdc5_hammer.o $(DEPLIBS)
+       $(LD) $(LDFLAGS) $(LDARGS) -o kdc5_hammer kdc5_hammer.o $(LIBS)
 
 kdc5_hammer.o: $(srcdir)/kdc5_hammer.c
 
index c9924fedbf6465ea18432c60bb8a7beb7aaac8bb..a71a0b7909f64c15fd77b73830cd53664174cced 100644 (file)
@@ -1,4 +1,6 @@
 AC_INIT(kdc5_hammer.c)
 CONFIG_RULES
 AC_PROG_INSTALL
+KRB5_LIBRARIES
+V5_USE_SHARED_LIB
 V5_AC_OUTPUT_MAKEFILE
index 9c0701868019171c576f6282f35cf4de6c0444e1..888a434c78e7ec762909fffe41c82e895f9cf16f 100644 (file)
@@ -1,3 +1,8 @@
+
+Fri Jul 7 16:38:47 EDT 1995    Paul Park       (pjpark@mit.edu)
+       * Makefile.in - Remove LDFLAGS and use DEPLIBS.
+       * configure.in - Add KRB5_LIBRARIES and V5_USE_SHARED_LIB
+
 Fri Jun  9 18:58:43 1995    <tytso@rsx-11.mit.edu>
 
        * configure.in: Remove standardized set of autoconf macros, which
index 8c0c0e61a964f766f89867beaac98617a9c5b456..4e2442661f60302b36d15466f4abef089a325cac 100644 (file)
@@ -1,14 +1,12 @@
 CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDES)
-LDFLAGS = -g
 
 OBJS=resolve.o
 SRCS=$(srcdir)/resolve.c
 
 all:: resolve
 
-
-resolve: $(OBJS)
-       $(LD) $(CFLAGS) -o resolve $(OBJS) $(LIBS)
+resolve: $(OBJS) $(DEPLIBS)
+       $(LD) $(LDFLAGS) $(LDARGS) -o resolve $(OBJS) $(LIBS)
 
 check:: resolve
        ./resolve
index 6c4855abc9394232db0fc5792c4a7e9c0384affb..5d5886193d430f91b43f57b4a06142bc0971c483 100644 (file)
@@ -3,4 +3,6 @@ CONFIG_RULES
 AC_HEADER_STDC
 AC_CHECK_FUNCS(strchr)
 AC_CHECK_HEADERS(sys/param.h sys/socket.h)
+KRB5_LIBRARIES
+V5_USE_SHARED_LIB
 V5_AC_OUTPUT_MAKEFILE
index 6262b241ea7a0d35bfce661daaef6b0d115fe2ad..1a7e90cfb49539c44802fcd71e41d1580a540c01 100644 (file)
@@ -1,4 +1,9 @@
 
+Fri Jul 7 16:40:26 EDT 1995    Paul Park       (pjpark@mit.edu)
+       * Makefile.in - Remove explicit library handling and LDFLAGS.
+       * configure.in - Add USE_KDB5_LIBRARY and KRB5_LIBRARIES
+
+
 Thu Jun 15 18:12:00 EDT 1995   Paul Park       (pjpark@mit.edu)
        * Makefile.in - Remove DBMLIB.
        * configure.in - Remove check for dbm libraries, use shared library
index 4b18e5d4e487e05df2d98b94b35e818038ae98e3..ae167a1b6eaeeb2897d83599f4995d6f64207632 100644 (file)
@@ -1,19 +1,9 @@
 CFLAGS = $(CCOPTS) $(DEFS) 
-LDFLAGS = -g
-
-COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
-KDBLIB=$(TOPLIBD)/libkdb5.a 
-DEPKDBLIB=$(TOPLIBD)/libkdb5.a 
 
 all:: kdb5_verify
 
-KLIB = $(KDBLIB) $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB)
-DEPKLIB = $(KDBLIB) $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB)
-
-DEPLIBS = $(DEPKDBLIB) $(DEPKLIB)
-
 kdb5_verify: kdb5_verify.o $(DEPLIBS)
-       $(CC) $(CFLAGS) -o kdb5_verify kdb5_verify.o $(KLIB) $(LIBS)
+       $(LD) $(LDFLAGS) $(LDARGS) -o kdb5_verify kdb5_verify.o $(LIBS)
 
 kdb5_verify.o: $(srcdir)/kdb5_verify.c
 
index df75815901651a24fc8fdbe4179a5ffb9596aafe..e0549957b1f5df2b883e41554c624600d366dfb6 100644 (file)
@@ -1,5 +1,7 @@
 AC_INIT(kdb5_verify.c)
 CONFIG_RULES
 AC_PROG_INSTALL
+USE_KDB5_LIBRARY
+KRB5_LIBRARIES
 V5_USE_SHARED_LIB
 V5_AC_OUTPUT_MAKEFILE