Start coding OSX Backgrounder Application, for OpenAFS Preference Pane, that user...
[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         xcodebuild -project AFSPreference/OpenAFS.xcodeproj
25
26 afscell:
27         cd afscell && xcodebuild
28
29 afssettings: afssettings.m 
30         ${CC} ${CFLAGS} -o afssettings afssettings.m -framework Foundation
31
32 install: \
33         ${DESTDIR}${sbindir}/afssettings
34
35 dest: \
36         ${DEST}/etc/afssettings \
37         ${DEST}/installer/afscell.bundle \
38         ${DEST}/installer/InstallerSections.plist \
39         ${DEST}/tools/OpenAFS.prefPane
40
41 ${DESTDIR}${sbindir}/afssettings: afssettings
42         ${INSTALL} $? $@
43
44 ${DEST}/etc/afssettings: afssettings
45         ${INSTALL} $? $@
46
47 ${DEST}/installer/afscell.bundle: afscell/build/Release/afscell.bundle
48         mkdir -p ${DEST}/installer
49         rm -rf ${DEST}/installer/afscell.bundle
50         cp -R $? $@
51
52 ${DEST}/installer/InstallerSections.plist: afscell/InstallerSections.plist
53         ${INSTALL} $? $@
54
55 ${DEST}/tools/OpenAFS.prefPane: AFSPreference/build/Release/OpenAFS.prefPane
56         mkdir -p ${DEST}/tools
57         rm -rf ${DEST}/tools/OpenAFS.prefPane
58         cp -R $? $@
59
60 clean:
61         $(RM) -rf OpenAFS.prefPane
62         $(RM) -rf AFSPreference/build
63         $(RM) -f *.o core afssettings AFS_component_version_number.c
64         @cd afscell && xcodebuild clean