Relink executable if libraries change
authorTheodore Tso <tytso@mit.edu>
Fri, 30 Sep 1994 03:05:55 +0000 (03:05 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 30 Sep 1994 03:05:55 +0000 (03:05 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4401 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/asn.1/ChangeLog
src/tests/asn.1/Makefile
src/tests/asn.1/Makefile.in
src/tests/create/ChangeLog
src/tests/create/Makefile.in
src/tests/hammer/ChangeLog
src/tests/hammer/Makefile.in
src/tests/verify/ChangeLog [new file with mode: 0644]
src/tests/verify/Makefile.in

index 9b25d17605987337a5cf3b9a8a8a710fe4811a87..1f177462b095062069f7289fffaf21d6a85ef915 100644 (file)
@@ -1,3 +1,7 @@
+Thu Sep 29 23:01:58 1994  Theodore Y. Ts'o  (tytso@dcl)
+
+       * Makefile.in: Relink executabes when libraries change
+
 Wed Sep 28 16:12:08 1994  Mark Eichin  (eichin@cygnus.com)
 
        * ktest_equal.c: #include stdio.h to get NULL under sunos.
index cc033f39998f41bacf973b92558de0930a96da59..bfaf5a5f6ff715bdffea5c47d67d067c1372438b 100644 (file)
@@ -1,16 +1,23 @@
 CC = cc
 CCFLAGS = -g -I../../include
-LIBS = -L../../lib -lkrb5 -lcom_err
+
+COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
+DBMLIB=
+
+KLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB) $(DBMLIB)
+DEPKLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB) $(DBMLIB)
 
 all: krb5_encode_test krb5_decode_test
 
 ENCOBJS = krb5_encode_test.o ktest.o ktest_equal.o utility.o asn1buf.o
-krb5_encode_test: $(ENCOBJS)
-       $(CC) $(CCFLAGS) -o krb5_encode_test $(ENCOBJS) $(LIBS)
+
+krb5_encode_test: $(ENCOBJS) $(DEPKLIB)
+       $(CC) $(CCFLAGS) -o krb5_encode_test $(ENCOBJS) $(KLIB)
 
 DECOBJS = krb5_decode_test.o ktest.o ktest_equal.o
-krb5_decode_test: $(DECOBJS)
-       $(CC) $(CCFLAGS) -o krb5_decode_test $(DECOBJS) $(LIBS)
+
+krb5_decode_test: $(DECOBJS) $(DEPKLIB)
+       $(CC) $(CCFLAGS) -o krb5_decode_test $(DECOBJS) $(KLIB)
 
 clean:
        rm -f *~ *.o krb5_encode_test krb5_decode_test
index ceea3115df534571b157f4811333854f12a96fa3..6d161562904ac6b08645795281dc87cdf7e4c8a0 100644 (file)
@@ -8,15 +8,18 @@ DBMLIB=
 all:: krb5_encode_test krb5_decode_test
 
 KLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(ISODELIB) $(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 
-krb5_encode_test: $(ENCOBJS)
+
+krb5_encode_test: $(ENCOBJS) $(DEPKLIB) 
        $(CC) $(CFLAGS) -o krb5_encode_test $(ENCOBJS) $(LIBS) $(KLIB)
 
 DECOBJS = krb5_decode_test.o ktest.o ktest_equal.o utility.o
-krb5_decode_test: $(DECOBJS)
+
+krb5_decode_test: $(DECOBJS) $(DEPKLIB)
        $(CC) $(CFLAGS) -o krb5_decode_test $(DECOBJS) $(LIBS) $(KLIB)
 
 install::
index 0bedb8d014b9122e389fd2d4f0cd9de9b1dc732c..c94d0464ebdb8e2a244793dccf323f632adb5e33 100644 (file)
@@ -1,3 +1,7 @@
+Thu Sep 29 22:58:05 1994  Theodore Y. Ts'o  (tytso@dcl)
+
+       * Makefile.in: Relink executable when libraries change
+
 Thu Sep 15 17:16:46 1994  Theodore Y. Ts'o  (tytso@dcl)
 
        * kdb5_mkdums.c (add_princ): Initialize key version number to be 1.
index 31231acd4712b25d39af6800050fcfbe7fa1a34c..fd9b30ce8748fbd7f46df023c4361a63a0e64eaa 100644 (file)
@@ -5,12 +5,16 @@ ISODELIB=@ISODELIB@
 COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
 DBMLIB=
 KDBLIB=$(TOPLIBD)/libkdb5.a 
+DEPKDBLIB=$(TOPLIBD)/libkdb5.a 
 
 all:: kdb5_mkdums
 
 KLIB = $(KDBLIB) $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(ISODELIB) $(COMERRLIB) $(DBMLIB) 
+DEPKLIB = $(KDBLIB) $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB) $(DBMLIB) 
 
-kdb5_mkdums: kdb5_mkdums.o
+DEPLIBS = $(DEPKDBLIB) $(DEPKLIB)
+
+kdb5_mkdums: kdb5_mkdums.o $(DEPLIBS)
        $(CC) $(CFLAGS) -o kdb5_mkdums kdb5_mkdums.o $(KLIB) $(LIBS)
 
 kdb5_mkdums.o: $(srcdir)/kdb5_mkdums.c
index f507f4fb3f24fd4ee92dec0089ea36048ae1183b..b3a30775344fea065508c91e6b6f427d663202a9 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep 29 22:59:09 1994  Theodore Y. Ts'o  (tytso@dcl)
+
+       * Makefile.in: Relink executable when libraries change
+
+
 Thu Sep 15 17:38:51 1994  Theodore Y. Ts'o  (tytso@dcl)
 
        * kdc_hammer.c (get_server_key): index() -> strchr()
index 3455ca352e6f87d4a5289a3deb11ad6f70205494..04e1bafd180baae277e1844554293bff162311d8 100644 (file)
@@ -8,8 +8,9 @@ DBMLIB=
 all:: kdc5_hammer
 
 KLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(ISODELIB) $(COMERRLIB) $(DBMLIB)
+DEPKLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB) $(DBMLIB)
 
-kdc5_hammer: kdc5_hammer.o
+kdc5_hammer: kdc5_hammer.o $(DEPKLIB)
        $(CC) $(CFLAGS) -o kdc5_hammer kdc5_hammer.o $(KLIB) $(LIBS)
 
 kdc5_hammer.o: $(srcdir)/kdc5_hammer.c
diff --git a/src/tests/verify/ChangeLog b/src/tests/verify/ChangeLog
new file mode 100644 (file)
index 0000000..8287ace
--- /dev/null
@@ -0,0 +1,4 @@
+Thu Sep 29 23:00:05 1994  Theodore Y. Ts'o  (tytso@dcl)
+
+       * Makefile.in: Relink executable when libraries change
+
index 6a32771b31204bca63c6016a6bea318ee57c36fc..65d1067337eda88cca5c2e249817be11ad1da8db 100644 (file)
@@ -5,12 +5,16 @@ ISODELIB=@ISODELIB@
 COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
 DBMLIB=
 KDBLIB=$(TOPLIBD)/libkdb5.a 
+DEPKDBLIB=$(TOPLIBD)/libkdb5.a 
 
 all:: kdb5_verify
 
 KLIB = $(KDBLIB) $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(ISODELIB) $(COMERRLIB) $(DBMLIB) 
+DEPKLIB = $(KDBLIB) $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB) $(DBMLIB) 
 
-kdb5_verify: kdb5_verify.o
+DEPLIBS = $(DEPKDBLIB) $(DEPKLIB)
+
+kdb5_verify: kdb5_verify.o $(DEPLIBS)
        $(CC) $(CFLAGS) -o kdb5_verify kdb5_verify.o $(KLIB) $(LIBS)
 
 kdb5_verify.o: $(srcdir)/kdb5_verify.c