change around locations & such for libraries
authorJohn Kohl <jtkohl@mit.edu>
Fri, 15 Feb 1991 09:39:42 +0000 (09:39 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 15 Feb 1991 09:39:42 +0000 (09:39 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1702 dc483132-0cff-0310-8789-dd5450dbe970

src/config/Project.tmpl
src/config/site.def

index b7e2eab12b6281e99cf87fed0c715a1617c6b787..40eed0814efa9dc1709c99c5976e1058b77b0358 100644 (file)
@@ -158,6 +158,23 @@ newname: stockname Makefile                                                @@\
        -$(UNIFDEF) $(PROCESS_DEFINES) stockname >newname
 #endif /* ProcessStockHeader */
 
+/*
+ * Krb5LibraryTarget - generate rules to create a library, and link to it
+ * in the library dir
+ */
+#ifndef Krb5LibraryTarget
+#define        Krb5LibraryTarget(libname,objlist)                              @@\
+AllTarget(lib/**/libname.a)                                            @@\
+DependTarget()                                                         @@\
+                                                                       @@\
+lib/**/libname.a: objlist                                              @@\
+       $(RM) $@                                                        @@\
+       $(AR) $@ objlist                                                @@\
+       $(RANLIB) $@                                                    @@\
+       $(RM) $(TOPLIBD)/lib/**/libname.a                               @@\
+       $(LN) ../$(CURRENT_DIR)/lib/**/libname.a $(TOP)/lib/lib/**/libname.a
+#endif /* Krb5LibraryTarget */
+
 #if HasPosixTermios
 P_TERMIOS=-DHasPosixTermiosTrue
 #else
@@ -251,20 +268,23 @@ P_PROTOS=-UUseNarrowPrototypes
             ETSRC = $(TOP)/comerr
             SSSRC = $(TOP)/ss
        UNIFDEFSRC = $(TOP)/util/unifdef
-            OSLIB = $(TOP)/lib/os/libos.a
-           DESLIB = $(TOP)/lib/des/libdes.a
-        RSAMD4LIB = $(TOP)/lib/rsa-md4/libmd4.a
-          KRB5LIB = $(TOP)/lib/libkrb5.a
-           CRCLIB = $(TOP)/lib/crc-32/libcrc32.a
-           MD4LIB = $(TOP)/lib/rsa-md4/libmd4.a
+          TOPLIBD = $(TOP)/lib
+            OSLIB = os
+           DESLIB = des
+        RSAMD4LIB = md4
+          KRB5LIB = krb5
+           CRCLIB = crc32
+           MD4LIB = md4
          ISODELIB = IsodeLib
 
            DBMLIB = DbmLib
-          DEPKLIB = $(KRB5LIB) $(RSAMD4LIB) $(DESLIB) $(OSLIB) $(CRCLIB)
-             KLIB = $(DEPKLIB) $(ISODELIB) $(COMERRLIB) $(DBMLIB)
-        DEPKDBLIB = $(TOP)/lib/kdb/libkdb.a
+          DEPKLIB = $(TOPLIBD)/lib$(KRB5LIB).a $(TOPLIBD)/lib$(RSAMD4LIB).a $(TOPLIBD)/lib$(DESLIB).a $(TOPLIBD)/lib$(OSLIB).a $(TOPLIBD)/lib$(CRCLIB).a
+             KLIB = -L$(TOPLIBD) -l$(KRB5LIB) -l$(RSAMD4LIB) -l$(DESLIB) -l$(OSLIB) -l$(CRCLIB) $(ISODELIB) $(COMERRLIB) $(DBMLIB)
+        DEPKDBLIB = $(TOPLIBD)/libkdb.a
+/* ideally, this would be just "kdb", but since it needs to load before
+   the other libs, it misses th e -L$(TOPLIBD) */
            KDBLIB = $(DEPKDBLIB)
-     DEPKRB425LIB = $(TOP)/lib/krb425/libkrb425.a
+     DEPKRB425LIB = $(TOPLIBD)/libkrb425.a
         KRB425LIB = $(DEPKDBLIB)
           KRB4LIB = Krb4LibList
      KRB4INCLUDES = Krb4Includes
index 177be8ee7ea0c5bacd637554200f43c1d4e2ed46..1789da8419cd0f57edbe5240ba843c640304a516 100644 (file)
@@ -78,7 +78,7 @@
    library.  This might want to be -lisode if you have it installed.
    IsodeDir is put into the 'make' variable ISODE. */
 
-#define IsodeLib /mit/isode/isode-6.0/@sys/lib/libisode.a
+#define IsodeLib -L/mit/isode/isode-6.0/@sys/lib -lisode
 #define IsodeDir /mit/isode/isode-6.0
 
 /* Re-define PepyCmd and PosyCmd if pepy & posy aren't in your search