a472af6bc3d5d96cae6b566d3440ac3ba17d6299
[openafs.git] / src / platform / DARWIN / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 INSTALL = @INSTALL@
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
14
15 .PHONY: all afscell
16
17 all: OpenAFS.prefPane afssettings afscell
18
19 AFSPreference/build/Release/OpenAFS.prefPane: OpenAFS.prefPane
20 afscell/build/Release/afscell.bundle: afscell
21 afscell/InstallerSections.plist: afscell 
22
23 OpenAFS.prefPane:
24         @case ${SYS_NAME} in \
25         *_darwin_100 ) \
26                 xcodebuild -sdk macosx10.6 -project AFSPreference/OpenAFS.xcodeproj ;; \
27         *_darwin_90 ) \
28                 xcodebuild -sdk macosx10.5 -project AFSPreference/OpenAFS.xcodeproj ;; \
29         *_darwin_80 ) \
30                 xcodebuild -sdk macosx10.4 -project AFSPreference/OpenAFS.xcodeproj ;; \
31         * ) \
32                 echo Not building AFS prefPane for ${SYS_NAME} ;; \
33         esac
34
35 afscell:
36         cd afscell && xcodebuild
37
38 afssettings: afssettings.m 
39         ${CC} ${CFLAGS} -o afssettings afssettings.m -framework Foundation
40
41 install: \
42         ${DESTDIR}${sbindir}/afssettings
43
44 dest: \
45         ${DEST}/etc/afssettings \
46         ${DEST}/installer/afscell.bundle \
47         ${DEST}/installer/InstallerSections.plist \
48         ${DEST}/tools/OpenAFS.prefPane
49
50 ${DESTDIR}${sbindir}/afssettings: afssettings
51         ${INSTALL} $? $@
52
53 ${DEST}/etc/afssettings: afssettings
54         ${INSTALL} $? $@
55
56 ${DEST}/installer/afscell.bundle: afscell/build/Release/afscell.bundle
57         mkdir -p ${DEST}/installer
58         rm -rf ${DEST}/installer/afscell.bundle
59         cp -R $? $@
60
61 ${DEST}/installer/InstallerSections.plist: afscell/InstallerSections.plist
62         ${INSTALL} $? $@
63
64 ${DEST}/tools/OpenAFS.prefPane: AFSPreference/build/Release/OpenAFS.prefPane
65         mkdir -p ${DEST}/tools
66         rm -rf ${DEST}/tools/OpenAFS.prefPane
67         cp -R $? $@
68
69 clean:
70         $(RM) -rf OpenAFS.prefPane
71         $(RM) -rf AFSPreference/build
72         $(RM) -f *.o core afssettings AFS_component_version_number.c
73         @cd afscell && xcodebuild clean