MacOS: aklog auth plugin
[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 include @TOP_OBJDIR@/src/config/Makefile.pthread
11
12 INSTALL = @INSTALL@
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_SCRIPT = @INSTALL_SCRIPT@
16
17 .PHONY: all afscell
18
19 all: OpenAFS.prefPane afssettings afscell growlagent aklog.bundle
20
21 AFSPreference/build/Release/OpenAFS.prefPane: OpenAFS.prefPane
22 afscell/build/Release/afscell.bundle: afscell
23 afscell/InstallerSections.plist: afscell 
24
25 OpenAFS.prefPane:
26         @case ${SYS_NAME} in \
27         *_darwin_100 ) \
28                 xcodebuild -sdk macosx10.6 -project ${srcdir}/AFSPreference/OpenAFS.xcodeproj SYMDIR=`pwd`/AFSPreference/build;; \
29         *_darwin_90 ) \
30                 xcodebuild -sdk macosx10.5 -project ${srcdir}/AFSPreference/OpenAFS.xcodeproj SYMDIR=`pwd`/AFSPreference/build;; \
31         *_darwin_80 ) \
32                 xcodebuild -sdk macosx10.4 -project ${srcdor}/AFSPreference/OpenAFS.xcodeproj SYMDIR=`pwd`/AFSPreference/build;; \
33         * ) \
34                 echo Not building AFS prefPane for ${SYS_NAME} ;; \
35         esac
36
37 aklog.bundle:
38         @case ${SYS_NAME} in \
39         *_darwin_100 ) \
40                 xcodebuild -sdk macosx10.6 -project ${srcdir}/AklogAuthPlugin/AklogAuthPlugin.xcodeproj SYMDIR=`pwd`/AklogAuthPlugin/build;; \
41         *_darwin_90 ) \
42                 xcodebuild -sdk macosx10.5 -project ${srcdir}/AklogAuthPlugin/AklogAuthPlugin.xcodeproj SYMDIR=`pwd`/AklogAuthPlugin/build;; \
43         *_darwin_80 ) \
44                 xcodebuild -sdk macosx10.4 -project ${srcdor}/AklogAuthPlugin/AklogAuthPlugin.xcodeproj SYMDIR=`pwd`/AklogAuthPlugin/build;; \
45         * ) \
46                 echo Not building AklogAuthPlugin for ${SYS_NAME} ;; \
47         esac
48
49 growlagent:
50         cd growlagent && $(MAKE) all
51
52 afscell:
53         xcodebuild -project ${srcdir}/afscell/afscell.xcodeproj SYMROOT=`pwd`/afscell/build
54
55 afssettings: afssettings.m 
56         ${CC} ${AFS_CFLAGS} -o afssettings $? -framework Foundation
57
58 install: \
59         ${DESTDIR}${sbindir}/afssettings
60         cd growlagent && $(MAKE) install
61
62 dest: \
63         ${DEST}/etc/afssettings \
64         ${DEST}/installer/afscell.bundle \
65         ${DEST}/installer/InstallerSections.plist \
66         ${DEST}/tools/OpenAFS.prefPane \
67         ${DEST}/tools/aklog.bundle
68         cd growlagent && $(MAKE) dest
69
70 ${DESTDIR}${sbindir}/afssettings: afssettings
71         ${INSTALL} $? $@
72
73 ${DEST}/etc/afssettings: afssettings
74         ${INSTALL} $? $@
75
76 ${DEST}/tools/aklog.bundle: AklogAuthPlugin/build/Release/aklog.bundle
77         -mkdir -p ${DEST}/tools
78         rm -rf ${DEST}/tools/aklog.bundle
79         cp -R $? $@
80
81 ${DEST}/installer/afscell.bundle: afscell/build/Release/afscell.bundle
82         -mkdir -p ${DEST}/installer
83         rm -rf ${DEST}/installer/afscell.bundle
84         cp -R $? $@
85
86 ${DEST}/installer/InstallerSections.plist: afscell/InstallerSections.plist
87         ${INSTALL} $? $@
88
89 ${DEST}/tools/OpenAFS.prefPane: AFSPreference/build/Release/OpenAFS.prefPane
90         -mkdir -p ${DEST}/tools
91         rm -rf ${DEST}/tools/OpenAFS.prefPane
92         cp -R $? $@
93
94 clean:
95         $(RM) -rf OpenAFS.prefPane
96         $(RM) -rf AFSPreference/build
97         $(RM) -rf AklogAuthPlugin/build
98         $(RM) -rf afscell/build
99         $(RM) -f *.o core afssettings AFS_component_version_number.c
100         cd growlagent && $(MAKE) clean