]> git.saurik.com Git - apple/configd.git/blobdiff - Makefile
configd-963.260.1.tar.gz
[apple/configd.git] / Makefile
index af81588b7b52bc164ebd8520d91e9bff4b43f65a..24349486f0aa5c93ad69e5ea8f755deb31ed4f94 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,8 @@ VERSION=$(shell basename `pwd -P` | sed -e 's/.*-\([0-9][0-9.]*$$\)/\1/')
 
 all :
        /usr/local/bin/buildit .                                \
-         -noinstallsrc -noinstallhdrs -noverify -nosum         \
-         -arch i386 -arch x86_64 -arch ppc                     \
+         -noinstallsrc -noinstallhdrs -noverify                \
+         -arch x86_64                                          \
          -target All                                           \
          -project ${PROJECT}-${VERSION}                        \
          -configuration Debug                                  \
@@ -24,13 +24,14 @@ all :
 
 darwin :
        /usr/local/bin/buildit .                                \
-         -noinstallsrc -noinstallhdrs -noverify -nosum         \
-         -arch i386 -arch x86_64 -arch ppc                     \
+         -novalidateParameters                                 \
+         -noinstallsrc -noinstallhdrs -noverify                \
+         -arch x86_64                                          \
          -target All                                           \
          -project ${PROJECT}_darwin-${VERSION}                 \
          -configuration Debug                                  \
          -release $(shell cat /usr/share/buildit/.releaseName) \
-         -othercflags "\"-D_OPEN_SOURCE_\""                    \
+         -othercflags "\"-D__OPEN_SOURCE__\""                  \
 
 #----------------------------------------------------------------------
 #
@@ -43,13 +44,17 @@ LION_CFLAGS+=-D__MAC_10_8=1070
 LION_CFLAGS+=-D__AVAILABILITY_INTERNAL__MAC_10_8=__attribute__((visibility(\\\"default\\\")))
 LION_CFLAGS+=-DHAVE_REACHABILITY_SERVER=YES
 
+LION_SDKROOT=$(shell xcodebuild -version -sdk macosx10.7internal Path)
+
 lion :
        /usr/local/bin/buildit .                                \
-         -noinstallsrc -noinstallhdrs -noverify -nosum         \
-         -arch i386 -arch x86_64                               \
+         -noinstallsrc -noinstallhdrs -noverify                \
+         -arch x86_64                                          \
          -target All                                           \
          -project ${PROJECT}-${VERSION}                        \
          -configuration Debug                                  \
          -release $(shell cat /usr/share/buildit/.releaseName) \
          -othercflags "$(LION_CFLAGS)"                         \
+         --                                                    \
+         SDKROOT=$(LION_SDKROOT)                               \