GSS_S_PROMPTING_NEEDED is a bit
[cyrus-sasl.git] / Makefile.am
1 AUTOMAKE_OPTIONS = 1.7
2 # Top-level Makefile.am for SASL
3 # Rob Earhart
4 #
5 ################################################################
6 # Copyright (c) 2000 Carnegie Mellon University.  All rights reserved.
7 #
8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted provided that the following conditions
10 # are met:
11 #
12 # 1. Redistributions of source code must retain the above copyright
13 #    notice, this list of conditions and the following disclaimer. 
14 #
15 # 2. Redistributions in binary form must reproduce the above copyright
16 #    notice, this list of conditions and the following disclaimer in
17 #    the documentation and/or other materials provided with the
18 #    distribution.
19 #
20 # 3. The name "Carnegie Mellon University" must not be used to
21 #    endorse or promote products derived from this software without
22 #    prior written permission. For permission or any other legal
23 #    details, please contact  
24 #      Office of Technology Transfer
25 #      Carnegie Mellon University
26 #      5000 Forbes Avenue
27 #      Pittsburgh, PA  15213-3890
28 #      (412) 268-4387, fax: (412) 268-7395
29 #      tech-transfer@andrew.cmu.edu
30 #
31 # 4. Redistributions of any form whatsoever must retain the following
32 #    acknowledgment:
33 #    "This product includes software developed by Computing Services
34 #     at Carnegie Mellon University (http://www.cmu.edu/computing/)."
35 #
36 # CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
37 # THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
38 # AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
39 # FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
40 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
41 # AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
42 # OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
43 #
44 ################################################################
45
46 if SASLAUTHD
47 SAD = saslauthd
48 else
49 SAD =
50 endif
51 if PWCHECK
52 PWC = pwcheck
53 else
54 PWC = 
55 endif
56 if SAMPLE
57 SAM = sample
58 else
59 SAM =
60 endif
61 if JAVA
62 JAV = java
63 else
64 JAV =
65 endif
66 if MACOSX
67 INSTALLOSX = install-exec-local-osx
68 else 
69 INSTALLOSX = 
70 endif
71
72 SUBDIRS=include sasldb plugins lib utils doc man $(PWC) $(SAM) $(JAV) $(SAD)
73 EXTRA_DIST=config cmulocal win32 mac dlcompat-20010505 NTMakefile INSTALL.TXT
74
75 dist-hook:
76         @find $(distdir) -exec chmod o+w {} ';'
77         @find $(distdir) -name CVS -print | xargs -t rm -rf
78         (cd $(distdir)/plugins && sh makeinit.sh)
79
80 framedir = $(DESTDIR)/Library/Frameworks/SASL2.framework
81 install-exec-local: $(INSTALLOSX)
82         @if test "$(plugindir)" != "$(prefix)/lib/sasl2"; then \
83           echo "********************************************************"; \
84           echo "* WARNING:"; \
85           echo "* Plugins are being installed into $(prefix)/lib/sasl2,"; \
86           echo "* but the library will look for them in $(plugindir)."; \
87           echo "* You need to make sure that the plugins will eventually"; \
88           echo "* be in $(plugindir) -- the easiest way is to make a"; \
89           echo "* symbolic link from $(plugindir) to $(prefix)/lib/sasl2,"; \
90           echo "* but this may not be appropriate for your site, so this"; \
91           echo "* installation procedure won't do it for you."; \
92           echo "*"; \
93           echo "* If you don't want to do this for some reason, you can"; \
94           echo "* set the location where the library will look for plugins"; \
95           echo "* by setting the environment variable SASL_PATH to the path"; \
96           echo "* the library should use."; \
97           echo "********************************************************"; \
98         fi
99 install-exec-local-osx:
100         $(mkinstalldirs) $(framedir)/Versions/A/Headers
101         $(mkinstalldirs) $(framedir)/Versions/A/Resources
102         cd $(framedir)/Versions ; ln -fs A Current
103         cd $(framedir) ; ln -fs Versions/A/Headers .
104         cd $(framedir) ; ln -fs Versions/A/Resources .
105         $(INSTALL_DATA) $(srcdir)/config/Info.plist $(framedir)/Versions/A/Resources
106