aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/Makefile.am
blob: f3aea3dbd2e869844f168476c4ec8f8bd9bf8877 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
AM_CPPFLAGS = \
  -I$(top_srcdir)/src/include \
  -I$(top_srcdir)/src/daemon \
  -I$(top_srcdir)/src/daemon/https/lgl \
  -I$(top_srcdir)/src/daemon/https/x509 \
  -I$(top_srcdir)/src/daemon/https/minitasn1 \
  -I$(top_srcdir)/src/daemon/https/tls \
  -I$(top_srcdir)/src/daemon/https 

if HAVE_GNU_LD
#  If you want to debug with gdb, comment out this line:
#  retaincommand=-Wl,--retain-symbols-file -Wl,$(srcdir)/SYMBOLS
endif

EXTRA_DIST = SYMBOLS

lib_LTLIBRARIES = \
  libmicrohttpd.la

libmicrohttpd_la_SOURCES = \
  connection.c connection.h \
  reason_phrase.c reason_phrase.h \
  daemon.c  \
  internal.c internal.h \
  memorypool.c memorypool.h \
  postprocessor.c \
  response.c response.h
libmicrohttpd_la_LDFLAGS = \
  -version-info 4:3:0 \
  -export-dynamic $(retaincommand)

if USE_COVERAGE
  AM_CFLAGS = --coverage
endif


if ENABLE_HTTPS
SUBDIRS = https .
libmicrohttpd_la_SOURCES += \
  connection_https.c connection_https.h
libmicrohttpd_la_LIBADD = \
  https/lgl/liblgl.la \
  https/x509/libx509.la \
  https/tls/libtls.la \
  https/minitasn1/libasn1.la 
endif

check_PROGRAMS = \
  postprocessor_test \
  postprocessor_large_test \
  daemon_test 

TESTS = $(check_PROGRAMS)

daemon_test_SOURCES = \
  daemon_test.c
daemon_test_LDADD = \
  $(top_builddir)/src/daemon/libmicrohttpd.la 

postprocessor_test_SOURCES = \
  postprocessor_test.c
postprocessor_test_LDADD = \
  $(top_builddir)/src/daemon/libmicrohttpd.la 

postprocessor_large_test_SOURCES = \
  postprocessor_large_test.c
postprocessor_large_test_LDADD = \
  $(top_builddir)/src/daemon/libmicrohttpd.la