]> git.saurik.com Git - apple/configd.git/blob - Makefile
b3d4dc2949c69cb50c152c3692340fc5f748c7b1
[apple/configd.git] / Makefile
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/')
3
4 #----------------------------------------------------------------------
5 #
6 # Build for [current] release
7 #
8 #----------------------------------------------------------------------
9
10 all :
11 /usr/local/bin/buildit . \
12 -noinstallsrc -noinstallhdrs -noverify -nosum \
13 -arch i386 -arch x86_64 -arch ppc \
14 -target All \
15 -project configd \
16 -configuration Debug \
17 -release $(shell cat /usr/share/buildit/.releaseName) \
18
19 #----------------------------------------------------------------------
20 #
21 # Build for SnowLeopard, SUSnowXXX, ...
22 #
23 # Note: assumes that the "pppcontroller_sendmsg" routine has been defined
24 # in pppcontroller.defs.
25 #
26 #----------------------------------------------------------------------
27
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
32
33 snow :
34 /usr/local/bin/buildit . \
35 -noinstallsrc -noinstallhdrs -noverify -nosum \
36 -arch i386 -arch x86_64 -arch ppc \
37 -target All \
38 -project ${PROJECT} \
39 -configuration Debug \
40 -release $(shell cat /usr/share/buildit/.releaseName) \
41 -othercflags "\"$(SNOW_CFLAGS)\"" \
42
43 #----------------------------------------------------------------------
44 #
45 # Build for Lion, SULionXXX, ...
46 #
47 #----------------------------------------------------------------------
48
49 LION_CFLAGS=
50
51 lion :
52 /usr/local/bin/buildit . \
53 -noinstallsrc -noinstallhdrs -noverify -nosum \
54 -arch i386 -arch x86_64 \
55 -target All \
56 -project ${PROJECT}-${VERSION} \
57 -configuration Debug \
58 -release $(shell cat /usr/share/buildit/.releaseName) \
59 -othercflags "$(LION_CFLAGS)" \
60