Link libserver to GnuTLS
[libisds.git] / test / simline / Makefile.am
blobc5fb63589f8c088ceca1d76b1fe2de74cb0fd1bf
1 AUTOMAKE_OPTIONS = color-tests parallel-tests
2 export VERBOSE=1
4 libdirpath = src
5 INCLUDEDIR = $(top_srcdir)/$(libdirpath)
6 LIBDIR = $(top_builddir)/$(libdirpath)
7 localedir = $(datadir)/locale
9 AM_CPPFLAGS = @XML_CPPFLAGS@
10 AM_CFLAGS = -I$(INCLUDEDIR) -DSRCDIR=\"$(top_srcdir)\"
11 LDADD = -L$(LIBDIR) $(LIBDIR)/libisds.la -L. ./libserver.la
13 # To fake home dir for gnupg2
14 export HOME=@top_builddir@
16 TESTS =
17 if BUILD_CURL
18 TESTS += basic_authentication hotp_authentication totp_authentication \
19                  isds_change_password hotp_isds_change_password \
20                  totp_isds_change_password \
21                  isds_delete_message_from_storage
22 endif
25 # Server library
26 noinst_LTLIBRARIES = libserver.la
27 libserver_la_SOURCES = ../test.c ../test-tools.h http.c http.h \
28                                                 server.c server.h service.c service.h \
29                                                 services.h server_types.h
30 libserver_la_CPPFLAGS = @XML_CPPFLAGS@ @LIBGNUTLS_CFLAGS@
31 libserver_la_LIBADD = @XML_LIBS@ @LIBGNUTLS_LIBS@
33 # Standalone server
34 noinst_PROGRAMS = server_cli $(TESTS)
35 server_cli_SOURCES = server_cli.c
36 server_cli_LDADD = ./libserver.la -L.
38 # Access public API only
39 common = ../test.h
40 basic_authentication_SOURCES = basic_authentication.c $(common)
41 hotp_authentication_SOURCES = hotp_authentication.c $(common)
42 totp_authentication_SOURCES = totp_authentication.c $(common)
43 isds_change_password_SOURCES = isds_change_password.c $(common)
44 hotp_isds_change_password_SOURCES = hotp_isds_change_password.c $(common)
45 totp_isds_change_password_SOURCES = totp_isds_change_password.c $(common)
46 isds_delete_message_from_storage_SOURCES = isds_delete_message_from_storage.c $(common)