]> git.sur5r.net Git - openldap/blobdiff - Makefile
Wrap $CC with quotes.
[openldap] / Makefile
index ad529b0407904d9850c0f6978c49c96c9895c3e1..d910580217aa1ec345fb1709e92c8456eddf40ce 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,12 @@
 # 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 Net Boolean Incorporated, Redwood City, California, USA
+# 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 Net Boolean Public License.  A copy of this
-# license is available at http://www.boolean.net/ldap/license.html or
+# 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
@@ -295,8 +295,16 @@ makeconfig:        .makefiles buildtools
            NetBSD) \
                PLATFORM="netbsd" \
                ;; \
+           OpenBSD) \
+               PLATFORM="openbsd" \
+               ;; \
            FreeBSD) \
-               PLATFORM="freebsd" \
+               MAJRELEASE=`echo $$OSRELEASE | sed 's/\..*//'` ; \
+               if [ $$MAJRELEASE -lt 3 ]; then \
+                       PLATFORM="freebsd2" ; \
+               else \
+                       PLATFORM="freebsd3" ; \
+               fi; \
                ;; \
            NeXTSTEP) \
                PLATFORM="nextstep" \
@@ -313,7 +321,7 @@ makeconfig: .makefiles buildtools
                ;; \
            esac; \
        fi; \
-       CC=$(CC); \
+       CC="$(CC)"; \
        OLDIFS="$$IFS"; \
        IFS=":"; \
        for dir in $$PATH; do \
@@ -334,8 +342,7 @@ Make-common: Make-common.dist
                echo "or touch Make-common to ignore."; \
                exit 1; \
        fi; \
-       cp Make-common.dist Make-common; \
-       echo "Make-common installed from distribution." ; \
+       echo "Copy Make-common.dist or Make-common.gmake to Make-common"; \
        echo "  Edit as needed before making!"  ; \
        exit 1
 #