]> git.saurik.com Git - apple/configd.git/blobdiff - Makefile
configd-963.260.1.tar.gz
[apple/configd.git] / Makefile
index 61c7f5a3e8fde2a837f827ce70d59f8d4e8d7e19..24349486f0aa5c93ad69e5ea8f755deb31ed4f94 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,46 +1,60 @@
+PROJECT=$(shell basename `pwd -P` | sed -e 's/\(.*\)-[0-9][0-9.]*$$/\1/')
+VERSION=$(shell basename `pwd -P` | sed -e 's/.*-\([0-9][0-9.]*$$\)/\1/')
+
+#----------------------------------------------------------------------
 #
-# Generated by the Apple Project Builder.
+# Build for [current] release
 #
-# NOTE: Do NOT change this file -- Project Builder maintains it.
+#----------------------------------------------------------------------
+
+all :
+       /usr/local/bin/buildit .                                \
+         -noinstallsrc -noinstallhdrs -noverify                \
+         -arch x86_64                                          \
+         -target All                                           \
+         -project ${PROJECT}-${VERSION}                        \
+         -configuration Debug                                  \
+         -release $(shell cat /usr/share/buildit/.releaseName) \
+
+#----------------------------------------------------------------------
 #
-# Put all of your customizations in files called Makefile.preamble
-# and Makefile.postamble (both optional), and Makefile will include them.
+# Darwin build
 #
+#----------------------------------------------------------------------
+
+darwin :
+       /usr/local/bin/buildit .                                \
+         -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__\""                  \
+
+#----------------------------------------------------------------------
+#
+# Build for Lion, SULionXXX, ...
+#
+#----------------------------------------------------------------------
+
+LION_CFLAGS=
+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                \
+         -arch x86_64                                          \
+         -target All                                           \
+         -project ${PROJECT}-${VERSION}                        \
+         -configuration Debug                                  \
+         -release $(shell cat /usr/share/buildit/.releaseName) \
+         -othercflags "$(LION_CFLAGS)"                         \
+         --                                                    \
+         SDKROOT=$(LION_SDKROOT)                               \
 
-NAME = configd
-
-PROJECTVERSION = 2.8
-PROJECT_TYPE = Aggregate
-
-TOOLS = configd.tproj scselect.tproj scutil.tproj
-
-FRAMEWORK_SUBPROJECTS = SystemConfiguration.fproj
-
-OTHERSRCS = Makefile.preamble Makefile Makefile.postamble
-
-MAKEFILEDIR = $(MAKEFILEPATH)/pb_makefiles
-CODE_GEN_STYLE = DYNAMIC
-MAKEFILE = aggregate.make
-LIBS = 
-DEBUG_LIBS = $(LIBS)
-PROF_LIBS = $(LIBS)
-
-
-
-
-NEXTSTEP_OBJCPLUS_COMPILER = /usr/bin/cc
-WINDOWS_OBJCPLUS_COMPILER = $(DEVDIR)/gcc
-PDO_UNIX_OBJCPLUS_COMPILER = $(NEXTDEV_BIN)/gcc
-NEXTSTEP_JAVA_COMPILER = /usr/bin/javac
-WINDOWS_JAVA_COMPILER = $(JDKBINDIR)/javac.exe
-PDO_UNIX_JAVA_COMPILER = $(JDKBINDIR)/javac
-
-include $(MAKEFILEDIR)/platform.make
-
--include Makefile.preamble
-
-include $(MAKEFILEDIR)/$(MAKEFILE)
-
--include Makefile.postamble
-
--include Makefile.dependencies