1AUTOMAKE_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 46if SASLAUTHD 47SAD = saslauthd 48else 49SAD = 50endif 51if PWCHECK 52PWC = pwcheck 53else 54PWC = 55endif 56if SAMPLE 57SAM = sample 58else 59SAM = 60endif 61if JAVA 62JAV = java 63else 64JAV = 65endif 66if MACOSX 67INSTALLOSX = install-exec-local-osx 68else 69INSTALLOSX = 70endif 71 72SUBDIRS=include sasldb lib plugins utils doc man $(PWC) $(SAM) $(JAV) $(SAD) 73EXTRA_DIST=config cmulocal win32 mac dlcompat-20010505 NTMakefile INSTALL.TXT \ 74 libsasl2.pc.in 75 76pkgconfigdir = $(libdir)/pkgconfig 77pkgconfig_DATA = libsasl2.pc 78 79dist-hook: 80 @find $(distdir) -exec chmod o+w {} ';' 81 @find $(distdir) -name CVS -print | xargs -t rm -rf 82 (cd $(distdir)/plugins && sh makeinit.sh) 83 84framedir = /Library/Frameworks/SASL2.framework 85install-exec-local: $(INSTALLOSX) 86 @if test "$(plugindir)" != "$(prefix)/lib/sasl2"; then \ 87 echo "********************************************************"; \ 88 echo "* WARNING:"; \ 89 echo "* Plugins are being installed into $(prefix)/lib/sasl2,"; \ 90 echo "* but the library will look for them in $(plugindir)."; \ 91 echo "* You need to make sure that the plugins will eventually"; \ 92 echo "* be in $(plugindir) -- the easiest way is to make a"; \ 93 echo "* symbolic link from $(plugindir) to $(prefix)/lib/sasl2,"; \ 94 echo "* but this may not be appropriate for your site, so this"; \ 95 echo "* installation procedure won't do it for you."; \ 96 echo "*"; \ 97 echo "* If you don't want to do this for some reason, you can"; \ 98 echo "* set the location where the library will look for plugins"; \ 99 echo "* by setting the environment variable SASL_PATH to the path"; \ 100 echo "* the library should use."; \ 101 echo "********************************************************"; \ 102 fi 103install-exec-local-osx: 104 $(mkinstalldirs) $(framedir)/Versions/A/Headers 105 $(mkinstalldirs) $(framedir)/Versions/A/Resources 106 cd $(framedir)/Versions ; ln -fs A Current 107 cd $(framedir) ; ln -fs Versions/A/Headers . 108 cd $(framedir) ; ln -fs Versions/A/Resources . 109 $(INSTALL_DATA) $(srcdir)/config/Info.plist $(framedir)/Versions/A/Resources 110 111