bumped shared lib version
[gnutls.git] / src / Makefile.am
blobd7595b21193e90a6d05809243465d8cc952a3e60
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2000-2012 Free Software Foundation, Inc.
4 # This file is part of GnuTLS.
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # This file is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 # General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this file; if not, write to the Free Software Foundation,
18 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 SUBDIRS =
22 if ENABLE_CRYWRAP
23 SUBDIRS += crywrap
24 endif
26 if NEED_LIBOPTS
27 SUBDIRS += libopts
28 endif
30 EXTRA_DIST = args-std.def
32 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
33 AM_CPPFLAGS = \
34         -I$(srcdir)/../gl                       \
35         -I$(builddir)/../gl                     \
36         -I$(builddir)/../lib/includes           \
37         -I$(srcdir)/../lib/includes             \
38         -I$(srcdir)/../extra/includes   \
39         $(LIBOPTS_CFLAGS)
41 bin_PROGRAMS = gnutls-serv gnutls-cli psktool gnutls-cli-debug certtool
42 if ENABLE_SRP
43 bin_PROGRAMS += srptool
44 endif
45 if ENABLE_OCSP
46 bin_PROGRAMS += ocsptool
47 endif
49 if ENABLE_PKCS11
50 bin_PROGRAMS += p11tool
51 PKCS11_SRCS = p11common.c p11common.h
52 else
53 PKCS11_SRCS =
54 endif
56 noinst_LTLIBRARIES =
58 gnutls_serv_SOURCES =           \
59   list.h serv.c                 \
60   udp-serv.c udp-serv.h         \
61   socket.c socket.h             \
62   common.h common.c             \
63   certtool-common.h             \
64   $(PKCS11_SRCS)
65 gnutls_serv_LDADD = ../lib/libgnutls.la
66 gnutls_serv_LDADD += libcmd-serv.la ../gl/libgnu.la $(LIBOPTS_LDADD)
67 gnutls_serv_LDADD += $(LIBSOCKET) $(GETADDRINFO_LIB)
68 noinst_LTLIBRARIES += libcmd-serv.la
69 libcmd_serv_la_CFLAGS =
70 libcmd_serv_la_SOURCES = serv-args.def serv-args.c serv-args.h
72 if ENABLE_SRP
73 srptool_SOURCES = srptool.c
74 srptool_LDADD = ../lib/libgnutls.la libcmd-srp.la ../gl/libgnu.la $(LIBOPTS_LDADD)
75 noinst_LTLIBRARIES += libcmd-srp.la
76 libcmd_srp_la_CFLAGS =
77 libcmd_srp_la_SOURCES = srptool-args.def srptool-args.c srptool-args.h
78 endif
80 if ENABLE_OCSP
81 ocsptool_SOURCES = ocsptool.c ocsptool-common.h ocsptool-common.c \
82         socket.c socket.h
83 ocsptool_LDADD = ../lib/libgnutls.la libcmd-ocsp.la ../gl/libgnu.la $(LIBOPTS_LDADD) \
84         $(GETADDRINFO_LIB)
85 noinst_LTLIBRARIES += libcmd-ocsp.la
86 libcmd_ocsp_la_CFLAGS =
87 libcmd_ocsp_la_SOURCES = ocsptool-args.def ocsptool-args.h ocsptool-args.c
88 endif
90 psktool_SOURCES = psk.c
91 psktool_LDADD = ../lib/libgnutls.la libcmd-psk.la ../gl/libgnu.la $(LIBOPTS_LDADD)
92 noinst_LTLIBRARIES += libcmd-psk.la
93 libcmd_psk_la_CFLAGS = 
94 libcmd_psk_la_SOURCES = psk-args.def psk-args.c psk-args.h
96 BENCHMARK_SRCS = benchmark-cipher.c benchmark.c benchmark.h benchmark-tls.c
98 gnutls_cli_SOURCES = cli.c common.h common.c \
99         socket.c socket.h ocsptool-common.c \
100         $(PKCS11_SRCS) $(BENCHMARK_SRCS)
101 gnutls_cli_LDADD = ../lib/libgnutls.la
102 gnutls_cli_LDADD += libcmd-cli.la ../gl/libgnu.la $(LIBOPTS_LDADD)
103 gnutls_cli_LDADD += $(LIBSOCKET) $(GETADDRINFO_LIB) $(LIB_CLOCK_GETTIME) \
104          $(SERVENT_LIB)
105 noinst_LTLIBRARIES += libcmd-cli.la
106 libcmd_cli_la_CFLAGS = 
107 libcmd_cli_la_SOURCES = cli-args.def cli-args.c cli-args.h
109 gnutls_cli_debug_SOURCES = tls_test.c tests.h tests.c \
110                 socket.c socket.h common.h common.c \
111                 $(PKCS11_SRCS)
112 gnutls_cli_debug_LDADD = ../lib/libgnutls.la libcmd-cli-debug.la $(LIBOPTS_LDADD)
113 gnutls_cli_debug_LDADD += ../gl/libgnu.la $(LIBSOCKET) $(GETADDRINFO_LIB)
114 noinst_LTLIBRARIES += libcmd-cli-debug.la
115 libcmd_cli_debug_la_CFLAGS =
116 libcmd_cli_debug_la_SOURCES = cli-debug-args.def cli-debug-args.c cli-debug-args.h
118 #certtool
120 certtool_SOURCES = certtool.c dh.c certtool-common.c $(PKCS11_SRCS)
121 certtool_LDADD = ../lib/libgnutls.la 
122 certtool_LDADD += libcmd-certtool.la ../gl/libgnu.la
124 noinst_LTLIBRARIES += libcmd-certtool.la
125 libcmd_certtool_la_CFLAGS =
126 libcmd_certtool_la_SOURCES = certtool-args.c certtool-args.def certtool-args.h  \
127         certtool-cfg.h certtool-cfg.c
128 libcmd_certtool_la_LIBADD = ../gl/libgnu.la $(LTLIBREADLINE) $(LIBOPTS_LDADD)
129 libcmd_certtool_la_LIBADD += ../lib/libgnutls.la 
130 libcmd_certtool_la_LIBADD += ../gl/libgnu.la $(INET_PTON_LIB)
132 # p11 tool
133 if ENABLE_PKCS11
135 p11tool_SOURCES = p11tool-args.def p11tool.c pkcs11.c certtool-common.c p11tool.h $(PKCS11_SRCS)
136 p11tool_LDADD = ../lib/libgnutls.la $(LIBOPTS_LDADD)
137 p11tool_LDADD += libcmd-p11tool.la ../gl/libgnu.la
139 noinst_LTLIBRARIES += libcmd-p11tool.la
140 libcmd_p11tool_la_CFLAGS =
141 libcmd_p11tool_la_SOURCES = p11tool-args.def p11tool-args.c p11tool-args.h \
142         certtool-cfg.h certtool-cfg.c
143 libcmd_p11tool_la_LIBADD = ../gl/libgnu.la $(LTLIBREADLINE)
144 libcmd_p11tool_la_LIBADD += ../lib/libgnutls.la
145 libcmd_p11tool_la_LIBADD += ../gl/libgnu.la $(INET_PTON_LIB)
147 endif # ENABLE_PKCS11
149 ocsptool-args.c: $(srcdir)/args-std.def $(srcdir)/ocsptool-args.def
150         -autogen ocsptool-args.def
151 p11tool-args.c: $(srcdir)/args-std.def $(srcdir)/p11tool-args.def
152         -autogen p11tool-args.def
153 psk-args.c: $(srcdir)/args-std.def $(srcdir)/psk-args.def
154         -autogen psk-args.def
155 cli-debug-args.c: $(srcdir)/args-std.def $(srcdir)/cli-debug-args.def
156         -autogen cli-debug-args.def
157 cli-args.c: $(srcdir)/args-std.def $(srcdir)/cli-args.def
158         -autogen cli-args.def
159 serv-args.c: $(srcdir)/args-std.def $(srcdir)/serv-args.def
160         -autogen serv-args.def
161 srptool-args.c: $(srcdir)/args-std.def $(srcdir)/srptool-args.def
162         -autogen srptool-args.def
163 certtool-args.c: $(srcdir)/args-std.def $(srcdir)/certtool-args.def
164         -autogen certtool-args.def