1 PROJECT=$(shell basename `pwd -P` | sed -e 's/\(.*\)-[0-9][0-9.]*$$/\1/')
2 VERSION=$(shell basename `pwd -P` | sed -e 's/.*-\([0-9][0-9.]*$$\)/\1/')
4 #----------------------------------------------------------------------
6 # Build for [current] release
8 #----------------------------------------------------------------------
11 /usr/local/bin/buildit . \
12 -noinstallsrc -noinstallhdrs -noverify \
15 -project ${PROJECT}-${VERSION} \
16 -configuration Debug \
17 -release $(shell cat /usr/share/buildit/.releaseName) \
19 #----------------------------------------------------------------------
23 #----------------------------------------------------------------------
26 /usr/local/bin/buildit . \
27 -novalidateParameters \
28 -noinstallsrc -noinstallhdrs -noverify \
31 -project ${PROJECT}_darwin-${VERSION} \
32 -configuration Debug \
33 -release $(shell cat /usr/share/buildit/.releaseName) \
34 -othercflags "\"-D__OPEN_SOURCE__\"" \
36 #----------------------------------------------------------------------
38 # Build for Lion, SULionXXX, ...
40 #----------------------------------------------------------------------
43 LION_CFLAGS+=-D__MAC_10_8=1070
44 LION_CFLAGS+=-D__AVAILABILITY_INTERNAL__MAC_10_8=__attribute__((visibility(\\\"default\\\")))
45 LION_CFLAGS+=-DHAVE_REACHABILITY_SERVER=YES
47 LION_SDKROOT=$(shell xcodebuild -version -sdk macosx10.7internal Path)
50 /usr/local/bin/buildit . \
51 -noinstallsrc -noinstallhdrs -noverify \
54 -project ${PROJECT}-${VERSION} \
55 -configuration Debug \
56 -release $(shell cat /usr/share/buildit/.releaseName) \
57 -othercflags "$(LION_CFLAGS)" \
59 SDKROOT=$(LION_SDKROOT) \