X-Git-Url: https://git.saurik.com/apple/configd.git/blobdiff_plain/5958d7c06f2795b9ec773eb750b8259460acf8cb..965d9e2579bf6d422308ba4e23ef146bd27e6f72:/Makefile diff --git a/Makefile b/Makefile index 61c7f5a..2434948 100644 --- 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