Combine -ldes5, -lmd4, -lcrc-32.
authorJohn Carr <jfc@mit.edu>
Mon, 27 May 1991 22:01:26 +0000 (22:01 +0000)
committerJohn Carr <jfc@mit.edu>
Mon, 27 May 1991 22:01:26 +0000 (22:01 +0000)
Fix library rules to run ranlib more often.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2112 dc483132-0cff-0310-8789-dd5450dbe970

src/config/Project.tmpl

index 9fb1ecbf56f69d712897ef2f3bb6dd3f6d0bf43a..0193ffd754ac459b800e82609fa085dd4b54778a 100644 (file)
@@ -115,14 +115,21 @@ DependTarget()                                                            @@\
 foo/**/libname: objlist                                                        @@\
        $(ARADD) lib/**/libname.a objlist                               @@\
        $(TOUCH) foo/**/libname                                         @@\
-       $(RANLIB) lib/**/libname.a                                      @@\
-lib/**/libname.a: objlist                                              @@\
-       $(ARADD) $@ objlist                                             @@\
+lib/**/libname.a: foo/**/libname                                       @@\
        $(RANLIB) $@                                                    @@\
 clean::                                                                        @@\
-       $(RM_CMD) foo/**/libname
+       $(RM_CMD) foo/**/libname lib/**/libname.a
 #endif /* AdditiveLibraryTarget */
 
+#ifndef RanlibLibraryTarget
+#define        RanlibLibraryTarget(libname)                                    @@\
+AllTarget(lib/**/libname.a)                                            @@\
+lib/**/libname.a:: foo/**/libname                                      @@\
+       $(RANLIB) lib/**/libname.a                                      @@\
+clean::                                                                        @@\
+       $(RM_CMD) foo/**/libname lib/**/libname.a
+#endif
+
 /*
  * OtherdirLibraryTarget - generate rules to create a library in another
  * directory from object files here
@@ -131,15 +138,15 @@ clean::                                                                   @@\
 #define        OtherdirLibraryTarget(libdir,libname,objlist)                   @@\
 AllTarget(objlist)                                                     @@\
 AllTarget(libdir/lib/**/libname.a)                                     @@\
-AllTarget(foo/**/libname)                                              @@\
+AllTarget(libdir/foo/**/libname)                                       @@\
 DependTarget()                                                         @@\
                                                                        @@\
-foo/**/libname: objlist                                                        @@\
+libdir/foo/**/libname: objlist                                         @@\
        $(ARADD) libdir/lib/**/libname.a objlist                        @@\
-       $(TOUCH) foo/**/libname                                         @@\
+       $(TOUCH) libdir/foo/**/libname                                  @@\
 libdir/lib/**/libname.a:                                               @@\
        $(ARADD) $@ objlist                                             @@\
-       $(TOUCH) foo/**/libname
+       $(TOUCH) libdir/foo/**/libname
 /* The $(RANLIB) is done at the end by the directory itself */
 #endif /* OtherdirLibraryTarget */
 
@@ -344,13 +351,18 @@ P_INET=-DHasInetTrue
 #else
 P_INET=-UHasInetTrue
 #endif
+/* If HasStdlibH > 1, include <stdlib.h> even if __STDC__ is not defined. */
+#if HasStdlibH > 1
+P_STDLIBH=-DHasStdlibHTrue -DForceStdlibH
+#else
 #if HasStdlibH
-P_STDLIBH=-DHasStdlibHTrue
+P_STDLIBH=-DHasStdlibHTrue -UForceStdlibH
 #else
-P_STDLIBH=-UHasStdlibHTrue
+P_STDLIBH=-UHasStdlibHTrue -UForceStdlibH
+#endif
 #endif
-/* Override system defaults for <time.h> vs <sys/time.h> */
 #if !defined(UseTimeH) && !defined(UseSysTimeH)
+/* Override system defaults for <time.h> vs <sys/time.h> */
 #ifdef OS_BSD
 #define        UseSysTimeH
 #else
@@ -414,9 +426,9 @@ P_NPROTO=-UUseNarrowPrototypes
          ISODELIB = IsodeLib
 
            DBMLIB = DbmLib
-          DEPKLIB = $(KRB5DEPLIB) $(RSAMD4DEPLIB) $(DESDEPLIB) $(OSDEPLIB) $(CRCDEPLIB)
+          DEPKLIB = $(KRB5DEPLIB) $(DESDEPLIB) $(OSDEPLIB)
           KLIBLOC = -L$(TOPLIBD)
-             KLIB = $(KLIBLOC) -l$(KRB5LIB) -l$(RSAMD4LIB) -l$(DESLIB) -l$(OSLIB) -l$(CRCLIB) $(ISODELIB) $(COMERRLIB) $(DBMLIB)
+             KLIB = $(KLIBLOC) -l$(KRB5LIB) -l$(DESLIB) -l$(OSLIB) $(ISODELIB) $(COMERRLIB) $(DBMLIB)
         KDBDEPLIB = $(TOPLIBD)/libkdb.a
            KDBLIB = $(KLIBLOC) -lkdb
      KRB425DEPLIB = $(TOPLIBD)/libkrb425.a