]> git.saurik.com Git - apple/configd.git/blob - Makefile
configd-453.16.tar.gz
[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 ${PROJECT}-${VERSION} \
16 -configuration Debug \
17 -release $(shell cat /usr/share/buildit/.releaseName) \
18
19 #----------------------------------------------------------------------
20 #
21 # Darwin build
22 #
23 #----------------------------------------------------------------------
24
25 darwin :
26 /usr/local/bin/buildit . \
27 -noinstallsrc -noinstallhdrs -noverify -nosum \
28 -arch i386 -arch x86_64 -arch ppc \
29 -target All \
30 -project ${PROJECT}_darwin-${VERSION} \
31 -configuration Debug \
32 -release $(shell cat /usr/share/buildit/.releaseName) \
33 -othercflags "\"-D_OPEN_SOURCE_\"" \
34
35 #----------------------------------------------------------------------
36 #
37 # Build for Lion, SULionXXX, ...
38 #
39 #----------------------------------------------------------------------
40
41 LION_CFLAGS=
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
45
46 lion :
47 /usr/local/bin/buildit . \
48 -noinstallsrc -noinstallhdrs -noverify -nosum \
49 -arch i386 -arch x86_64 \
50 -target All \
51 -project ${PROJECT}-${VERSION} \
52 -configuration Debug \
53 -release $(shell cat /usr/share/buildit/.releaseName) \
54 -othercflags "$(LION_CFLAGS)" \
55