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 -nosum \
13 -arch i386 -arch x86_64 -arch ppc \
15 -project ${PROJECT}-${VERSION} \
16 -configuration Debug \
17 -release $(shell cat /usr/share/buildit/.releaseName) \
19 #----------------------------------------------------------------------
23 #----------------------------------------------------------------------
26 /usr/local/bin/buildit . \
27 -noinstallsrc -noinstallhdrs -noverify -nosum \
28 -arch i386 -arch x86_64 -arch ppc \
30 -project ${PROJECT}_darwin-${VERSION} \
31 -configuration Debug \
32 -release $(shell cat /usr/share/buildit/.releaseName) \
33 -othercflags "\"-D_OPEN_SOURCE_\"" \
35 #----------------------------------------------------------------------
37 # Build for Lion, SULionXXX, ...
39 #----------------------------------------------------------------------
42 LION_CFLAGS+=-D__MAC_10_8=1070
43 LION_CFLAGS+=-D__AVAILABILITY_INTERNAL__MAC_10_8=__attribute__((visibility(\\\"default\\\")))
44 LION_CFLAGS+=-DHAVE_REACHABILITY_SERVER=YES
47 /usr/local/bin/buildit . \
48 -noinstallsrc -noinstallhdrs -noverify -nosum \
49 -arch i386 -arch x86_64 \
51 -project ${PROJECT}-${VERSION} \
52 -configuration Debug \
53 -release $(shell cat /usr/share/buildit/.releaseName) \
54 -othercflags "$(LION_CFLAGS)" \