mbedTLS 2.x support
[umurmur.git] / src / Makefile.am
1 # Copyright (C) 2011, Antoine Bertin <diaoulael@gmail.com>
2 #
3 #  All rights reserved.
4 #
5 #  Redistribution and use in source and binary forms, with or without
6 #  modification, are permitted provided that the following conditions
7 #  are met:
8 #
9 #  - Redistributions of source code must retain the above copyright notice,
10 #    this list of conditions and the following disclaimer.
11 #  - Redistributions in binary form must reproduce the above copyright notice,
12 #    this list of conditions and the following disclaimer in the documentation
13 #    and/or other materials provided with the distribution.
14 #  - Neither the name of the Developers nor the names of its contributors may
15 #    be used to endorse or promote products derived from this software without
16 #    specific prior written permission.
17 #
18 #  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 #  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 #  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 #  A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR
22 #  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 #  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 #  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 #  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 #  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 #  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 #  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 bin_PROGRAMS=umurmurd
30 umurmurd_SOURCES=client.c main.c messages.c pds.c server.c log.c conf.c crypt.c timer.c messagehandler.c channel.c Mumble.pb-c.c voicetarget.c ban.c util.c
31
32 if USE_OPENSSL
33 umurmurd_SOURCES+=ssli_openssl.c
34 else
35 if USE_GNUTLS
36 umurmurd_SOURCES+=ssli_gnutls.c
37 else
38 if USE_MBEDTLS
39 umurmurd_SOURCES+=ssli_mbedtls.c
40 else
41 umurmurd_SOURCES+=ssli_polarssl.c
42 endif
43 endif
44 endif
45
46 if USE_SHAREDMEMORY_API
47 umurmurd_SOURCES+=sharedmemory.c
48 endif