aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/examples/Makefile.am5
-rw-r--r--src/microhttpd/Makefile.am6
-rw-r--r--src/testcurl/Makefile.am19
-rw-r--r--src/testcurl/https/Makefile.am21
-rw-r--r--src/testzzuf/Makefile.am56
5 files changed, 42 insertions, 65 deletions
diff --git a/src/examples/Makefile.am b/src/examples/Makefile.am
index 5098a1ce..c222b5db 100644
--- a/src/examples/Makefile.am
+++ b/src/examples/Makefile.am
@@ -3,9 +3,12 @@ SUBDIRS = .
3 3
4AM_CPPFLAGS = \ 4AM_CPPFLAGS = \
5 -I$(top_srcdir)/src/include \ 5 -I$(top_srcdir)/src/include \
6 $(CPPFLAGS_ac) \
6 -DDATA_DIR=\"$(top_srcdir)/src/datadir/\" 7 -DDATA_DIR=\"$(top_srcdir)/src/datadir/\"
7 8
8AM_CFLAGS = @LIBGCRYPT_CFLAGS@ 9AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@
10
11AM_LDFLAGS = $(LDFLAGS_ac)
9 12
10MHD_CPU_COUNT_DEF = -DMHD_CPU_COUNT=$(CPU_COUNT) 13MHD_CPU_COUNT_DEF = -DMHD_CPU_COUNT=$(CPU_COUNT)
11 14
diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am
index 18691572..ba52b740 100644
--- a/src/microhttpd/Makefile.am
+++ b/src/microhttpd/Makefile.am
@@ -2,9 +2,11 @@
2 2
3AM_CPPFLAGS = \ 3AM_CPPFLAGS = \
4 -I$(top_srcdir)/src/include \ 4 -I$(top_srcdir)/src/include \
5 -I$(top_srcdir)/src/microhttpd 5 $(CPPFLAGS_ac)
6 6
7AM_CFLAGS = $(HIDDEN_VISIBILITY_CFLAGS) 7AM_CFLAGS = $(CFLAGS_ac) $(HIDDEN_VISIBILITY_CFLAGS)
8
9AM_LDFLAGS = $(LDFLAGS_ac)
8 10
9lib_LTLIBRARIES = \ 11lib_LTLIBRARIES = \
10 libmicrohttpd.la 12 libmicrohttpd.la
diff --git a/src/testcurl/Makefile.am b/src/testcurl/Makefile.am
index 40a9fb13..5d7839f1 100644
--- a/src/testcurl/Makefile.am
+++ b/src/testcurl/Makefile.am
@@ -5,21 +5,24 @@ EMPTY_ITEM =
5 5
6SUBDIRS = . 6SUBDIRS = .
7 7
8AM_CPPFLAGS = \
9 -I$(top_srcdir)/src/include \
10 -I$(top_srcdir)/src/microhttpd \
11 -DMHD_CPU_COUNT=$(CPU_COUNT) \
12 $(CPPFLAGS_ac) $(LIBCURL_CPPFLAGS)
13
14AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@
15
16AM_LDFLAGS = $(LDFLAGS_ac)
17
8if USE_COVERAGE 18if USE_COVERAGE
9 AM_CFLAGS = -fprofile-arcs -ftest-coverage 19 AM_CFLAGS += -fprofile-arcs -ftest-coverage
10endif 20endif
11 21
12if ENABLE_HTTPS 22if ENABLE_HTTPS
13 SUBDIRS += https 23 SUBDIRS += https
14endif 24endif
15 25
16AM_CPPFLAGS = \
17-DMHD_CPU_COUNT=$(CPU_COUNT) \
18-I$(top_srcdir) \
19-I$(top_srcdir)/src/microhttpd \
20-I$(top_srcdir)/src/include \
21$(LIBCURL_CPPFLAGS)
22
23LDADD = \ 26LDADD = \
24 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 27 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
25 @LIBCURL@ 28 @LIBCURL@
diff --git a/src/testcurl/https/Makefile.am b/src/testcurl/https/Makefile.am
index 6c2134dc..203cddac 100644
--- a/src/testcurl/https/Makefile.am
+++ b/src/testcurl/https/Makefile.am
@@ -3,18 +3,21 @@ EMPTY_ITEM =
3 3
4SUBDIRS = . 4SUBDIRS = .
5 5
6if USE_COVERAGE
7 AM_CFLAGS = --coverage
8endif
9
10.NOTPARALLEL: 6.NOTPARALLEL:
11 7
12MHD_CPU_COUNT_DEF = -DMHD_CPU_COUNT=$(CPU_COUNT)
13
14AM_CPPFLAGS = \ 8AM_CPPFLAGS = \
15 -I$(top_srcdir)/src/include \ 9 -I$(top_srcdir)/src/include \
16 -I$(top_srcdir)/src/microhttpd \ 10 -I$(top_srcdir)/src/microhttpd \
17 $(LIBCURL_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS) 11 -DMHD_CPU_COUNT=$(CPU_COUNT) \
12 $(CPPFLAGS_ac) $(LIBCURL_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS)
13
14AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@
15
16AM_LDFLAGS = $(LDFLAGS_ac)
17
18if USE_COVERAGE
19 AM_CFLAGS += --coverage
20endif
18 21
19LDADD = \ 22LDADD = \
20 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 23 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
@@ -83,8 +86,6 @@ test_https_get_parallel_SOURCES = \
83 tls_test_keys.h \ 86 tls_test_keys.h \
84 tls_test_common.h \ 87 tls_test_common.h \
85 tls_test_common.c 88 tls_test_common.c
86test_https_get_parallel_CPPFLAGS = \
87 $(AM_CPPFLAGS) $(MHD_CPU_COUNT_DEF)
88test_https_get_parallel_CFLAGS = \ 89test_https_get_parallel_CFLAGS = \
89 $(PTHREAD_CFLAGS) $(AM_CFLAGS) 90 $(PTHREAD_CFLAGS) $(AM_CFLAGS)
90test_https_get_parallel_LDADD = \ 91test_https_get_parallel_LDADD = \
@@ -101,8 +102,6 @@ test_https_get_parallel_threads_SOURCES = \
101 tls_test_keys.h \ 102 tls_test_keys.h \
102 tls_test_common.h \ 103 tls_test_common.h \
103 tls_test_common.c 104 tls_test_common.c
104test_https_get_parallel_threads_CPPFLAGS = \
105 $(AM_CPPFLAGS) $(MHD_CPU_COUNT_DEF)
106test_https_get_parallel_threads_CFLAGS = \ 105test_https_get_parallel_threads_CFLAGS = \
107 $(PTHREAD_CFLAGS) $(AM_CFLAGS) 106 $(PTHREAD_CFLAGS) $(AM_CFLAGS)
108test_https_get_parallel_threads_LDADD = \ 107test_https_get_parallel_threads_LDADD = \
diff --git a/src/testzzuf/Makefile.am b/src/testzzuf/Makefile.am
index c657f34e..db85c679 100644
--- a/src/testzzuf/Makefile.am
+++ b/src/testzzuf/Makefile.am
@@ -1,13 +1,22 @@
1# This Makefile.am is in the public domain 1# This Makefile.am is in the public domain
2SUBDIRS = . 2SUBDIRS = .
3 3
4AM_CPPFLAGS = \
5 -I$(top_srcdir)/src/include \
6 -DMHD_CPU_COUNT=$(CPU_COUNT) \
7 $(LIBCURL_CPPFLAGS)
8
9AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@
10
11AM_LDFLAGS = $(LDFLAGS_ac)
12
4if USE_COVERAGE 13if USE_COVERAGE
5 AM_CFLAGS = -fprofile-arcs -ftest-coverage 14 AM_CFLAGS += -fprofile-arcs -ftest-coverage
6endif 15endif
7 16
8 17LDADD = \
9AM_CPPFLAGS = -I$(top_srcdir)/src/include \ 18 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
10 $(LIBCURL_CPPFLAGS) 19 @LIBCURL@
11 20
12EXTRA_DIST = README socat.c 21EXTRA_DIST = README socat.c
13 22
@@ -45,80 +54,41 @@ TESTS = $(check_PROGRAMS)
45 54
46test_get_SOURCES = \ 55test_get_SOURCES = \
47 test_get.c 56 test_get.c
48test_get_LDADD = \
49 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
50 @LIBCURL@
51 57
52test_get_chunked_SOURCES = \ 58test_get_chunked_SOURCES = \
53 test_get_chunked.c 59 test_get_chunked.c
54test_get_chunked_LDADD = \
55 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
56 @LIBCURL@
57 60
58test_post_SOURCES = \ 61test_post_SOURCES = \
59 test_post.c 62 test_post.c
60test_post_LDADD = \
61 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
62 @LIBCURL@
63 63
64test_post_form_SOURCES = \ 64test_post_form_SOURCES = \
65 test_post_form.c 65 test_post_form.c
66test_post_form_LDADD = \
67 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
68 @LIBCURL@
69 66
70test_put_SOURCES = \ 67test_put_SOURCES = \
71 test_put.c 68 test_put.c
72test_put_LDADD = \
73 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
74 @LIBCURL@
75 69
76test_put_chunked_SOURCES = \ 70test_put_chunked_SOURCES = \
77 test_put_chunked.c 71 test_put_chunked.c
78test_put_chunked_LDADD = \
79 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
80 @LIBCURL@
81 72
82test_put_large_SOURCES = \ 73test_put_large_SOURCES = \
83 test_put_large.c 74 test_put_large.c
84test_put_large_LDADD = \
85 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
86 @LIBCURL@
87 75
88 76
89 77
90test_get11_SOURCES = \ 78test_get11_SOURCES = \
91 test_get.c 79 test_get.c
92test_get11_LDADD = \
93 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
94 @LIBCURL@
95 80
96test_post11_SOURCES = \ 81test_post11_SOURCES = \
97 test_post.c 82 test_post.c
98test_post11_LDADD = \
99 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
100 @LIBCURL@
101 83
102test_post_form11_SOURCES = \ 84test_post_form11_SOURCES = \
103 test_post_form.c 85 test_post_form.c
104test_post_form11_LDADD = \
105 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
106 @LIBCURL@
107 86
108test_put11_SOURCES = \ 87test_put11_SOURCES = \
109 test_put.c 88 test_put.c
110test_put11_LDADD = \
111 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
112 @LIBCURL@
113 89
114test_put_large11_SOURCES = \ 90test_put_large11_SOURCES = \
115 test_put_large.c 91 test_put_large.c
116test_put_large11_LDADD = \
117 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
118 @LIBCURL@
119 92
120test_long_header_SOURCES = \ 93test_long_header_SOURCES = \
121 test_long_header.c 94 test_long_header.c
122test_long_header_LDADD = \
123 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
124 @LIBCURL@