source: trunk/third/cyrus-sasl/lib/Makefile.am @ 18842

Revision 18842, 3.8 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18841, which included commits to RCS files with non-trunk default branches.
Line 
1# Makefile.am for the SASL library
2# Rob Earhart
3# $Id: Makefile.am,v 1.1.1.2 2003-02-12 22:34:23 ghudson Exp $
4# Copyright (c) 2000 Carnegie Mellon University.  All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
9#
10# 1. Redistributions of source code must retain the above copyright
11#    notice, this list of conditions and the following disclaimer.
12#
13# 2. Redistributions in binary form must reproduce the above copyright
14#    notice, this list of conditions and the following disclaimer in
15#    the documentation and/or other materials provided with the
16#    distribution.
17#
18# 3. The name "Carnegie Mellon University" must not be used to
19#    endorse or promote products derived from this software without
20#    prior written permission. For permission or any other legal
21#    details, please contact 
22#      Office of Technology Transfer
23#      Carnegie Mellon University
24#      5000 Forbes Avenue
25#      Pittsburgh, PA  15213-3890
26#      (412) 268-4387, fax: (412) 268-7395
27#      tech-transfer@andrew.cmu.edu
28#
29# 4. Redistributions of any form whatsoever must retain the following
30#    acknowledgment:
31#    "This product includes software developed by Computing Services
32#     at Carnegie Mellon University (http://www.cmu.edu/computing/)."
33#
34# CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
35# THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
36# AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
37# FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
38# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
39# AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
40# OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
41#
42
43# Library version info - here at the top, for sanity
44sasl_version = 2:12:0
45
46INCLUDES=-I$(top_srcdir)/include -I$(top_srcdir)/plugins
47
48EXTRA_DIST = windlopen.c staticopen.h NTMakefile
49EXTRA_LIBRARIES = libsasl2.a
50noinst_LIBRARIES = @SASL_STATIC_LIBS@
51libsasl2_a_SOURCES=
52
53common_headers = saslint.h
54common_sources = auxprop.c canonusr.c checkpw.c client.c common.c config.c external.c md5.c saslutil.c server.c seterror.c dlopen.c
55
56LTLIBOBJS = @LTLIBOBJS@ plugin_common.lo
57LIBOBJS = @LIBOBJS@ plugin_common.o
58
59lib_LTLIBRARIES = libsasl2.la
60
61libsasl2_la_SOURCES = $(common_sources) $(common_headers)
62libsasl2_la_LDFLAGS = -version-info $(sasl_version)
63libsasl2_la_DEPENDENCIES = $(LTLIBOBJS)
64libsasl2_la_LIBADD = $(LTLIBOBJS) $(SASL_DL_LIB) $(LIB_SOCKET)
65
66plugin_common.lo: plugin_common.o
67        rm -f plugin_common.lo
68        ln -s $(top_builddir)/plugins/plugin_common.lo plugin_common.lo
69
70plugin_common.o:
71        rm -f plugin_common.o
72        ln -s $(top_builddir)/plugins/plugin_common.o plugin_common.o
73
74if MACOSX
75framedir = /Library/Frameworks/SASL2.framework
76install-exec-hook:
77        $(mkinstalldirs) $(framedir)/Versions/A
78        ln -fs $(libdir)/libsasl2.dylib $(framedir)/Versions/A/SASL2
79        cd $(framedir) ; ln -fs Versions/A/SASL2 .
80else
81install-exec-hook:
82endif
83
84libsasl2.a: libsasl2.la $(SASL_STATIC_OBJS)
85        @echo adding static plugins and dependencies
86        $(AR) cru .libs/$@ $(SASL_STATIC_OBJS)
87        @for i in ./libsasl2.la ../sasldb/libsasldb.la ../plugins/lib*.la; do \
88        if test ! -f $$i; then continue; fi; . $$i; \
89        for j in $$dependency_libs foo; do \
90        case $$j in foo) ;; \
91        -L*) for k in $$depdirs foo; do \
92            if test $$k = $$j; then break; fi; done; \
93          if test $$k = foo; then depdirs="$$depdirs $$j"; fi ;; \
94        -l*) for k in $$deplibs foo; do \
95            if test $$k = $$j; then break; fi; done; \
96          if test $$k = foo; then deplibs="$$deplibs $$j"; fi ;; \
97        esac; done; dependency_libs=""; done; \
98        sed -e "/^dependency_libs=/s%=.*%='$${depdirs}$${deplibs}'%" \
99        libsasl2.la >TMP.$$ && mv TMP.$$ libsasl2.la
100        @touch $@
Note: See TracBrowser for help on using the repository browser.