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 \
16 -configuration Debug \
17 -release $(shell cat /usr/share/buildit/.releaseName) \
19 #----------------------------------------------------------------------
21 # Build for SnowLeopard, SUSnowXXX, ...
23 # Note: assumes that the "pppcontroller_sendmsg" routine has been defined
24 # in pppcontroller.defs.
26 #----------------------------------------------------------------------
28 SNOW_CFLAGS += -D__MAC_10_7=1060
29 SNOW_CFLAGS += -D__AVAILABILITY_INTERNAL__MAC_10_7=__AVAILABILITY_INTERNAL__MAC_10_6
30 SNOW_CFLAGS += -D__AVAILABILITY_INTERNAL__MAC_10_5_DEP__MAC_10_7=__AVAILABILITY_INTERNAL__MAC_10_5
31 #SNOW_CFLAGS += -DHAVE_PPPCONTROLLER_SENDMSG=YES
34 /usr/local/bin/buildit . \
35 -noinstallsrc -noinstallhdrs -noverify -nosum \
36 -arch i386 -arch x86_64 -arch ppc \
39 -configuration Debug \
40 -release $(shell cat /usr/share/buildit/.releaseName) \
41 -othercflags "\"$(SNOW_CFLAGS)\"" \
43 #----------------------------------------------------------------------
45 # Build for Lion, SULionXXX, ...
47 #----------------------------------------------------------------------
52 /usr/local/bin/buildit . \
53 -noinstallsrc -noinstallhdrs -noverify -nosum \
54 -arch i386 -arch x86_64 \
56 -project ${PROJECT}-${VERSION} \
57 -configuration Debug \
58 -release $(shell cat /usr/share/buildit/.releaseName) \
59 -othercflags "$(LION_CFLAGS)" \