]> git.sur5r.net Git - openldap/blobdiff - Makefile
Add Reader/Writer Locks to library
[openldap] / Makefile
index be002db16bb04d6d675ee47e47c0781b057e5be9..888b30a507c9276e8a36dabceaaa8714d8ac2c85 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,19 @@
-#
 # You will usually NOT need to edit this file at all:  instead, edit the
 # Make-common file.  See the LDAP INSTALL file for more information.
-#
+#-----------------------------------------------------------------------------
+# Copyright 1998 The OpenLDAP Foundation, Redwood City, California, USA
+# All rights reserved.
+# 
+# Redistribution and use in source and binary forms are permitted only
+# as authorized by the OpenLDAP Public License.  A copy of this
+# license is available at http://www.OpenLDAP.org/license.html or
+# in file LICENSE in the top-level directory of the distribution.
+# 
+# This work is derived from the University of Michigan LDAP v3.3
+# distribution.  Information concerning is available at
+#      http://www.umich.edu/~dirsvcs/ldap/ldap.html.
+# 
+# This work also contains materials derived from public sources.
 #-----------------------------------------------------------------------------
 # Copyright (c) 1994 Regents of the University of Michigan.
 # All rights reserved.
 # may not be used to endorse or promote products derived from this
 # software without specific prior written permission. This software
 # is provided ``as is'' without express or implied warranty.
-#
-#       LDAP lightweight X.500 Directory access top level makefile
-#
 #-----------------------------------------------------------------------------
+# LDAP lightweight X.500 Directory access top level makefile
 #
 ############################################################################
 #                                                                          #
@@ -161,8 +171,8 @@ depend:     makeconfig
        for i in $(SRCDIRS); do \
            echo; echo "cd $$i; $(MAKE) $(MFLAGS) depend"; \
            ( cd $$i; $(MAKE) $(MFLAGS) depend ); \
-       done; \
-       $(MAKE) $(MFLAGS) makefiles
+       done; 
+       @echo " "; echo Remember to \"make depend\" after each \"make makefiles\"
 
 #
 # rules to check out and in Make-template files
@@ -286,7 +296,12 @@ makeconfig:        .makefiles buildtools
                PLATFORM="netbsd" \
                ;; \
            FreeBSD) \
-               PLATFORM="freebsd" \
+               MAJRELEASE=`echo $$OSRELEASE | sed 's/\..*//'` ; \
+               if [ $$MAJRELEASE -lt 3 ]; then \
+                       PLATFORM="freebsd2" ; \
+               else \
+                       PLATFORM="freebsd3" ; \
+               fi; \
                ;; \
            NeXTSTEP) \
                PLATFORM="nextstep" \
@@ -350,7 +365,6 @@ Make-common: Make-common.dist
                echo "  creating $$i/Makefile"; \
                $(RM) $$i/Makefile; \
                $(CAT) $$HDRFILE $$i/Make-template $$DEFSFILE > $$i/Makefile; \
-               $(CHMOD) 444 $$i/Makefile; \
            fi; \
        done; \
        $(RM) .makefiles; \
@@ -363,6 +377,7 @@ Make-common: Make-common.dist
 makefiles:     FORCE
        $(RM) .makefiles
        $(MAKE) $(MFLAGS) .makefiles
+       @echo "Please \"make depend\" before building."
 
 #
 # rule to create any tools we need to build everything else