diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/examples/Makefile.am | 5 | ||||
-rw-r--r-- | src/microhttpd/Makefile.am | 6 | ||||
-rw-r--r-- | src/testcurl/Makefile.am | 19 | ||||
-rw-r--r-- | src/testcurl/https/Makefile.am | 21 | ||||
-rw-r--r-- | src/testzzuf/Makefile.am | 56 |
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 | ||
4 | AM_CPPFLAGS = \ | 4 | AM_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 | ||
8 | AM_CFLAGS = @LIBGCRYPT_CFLAGS@ | 9 | AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@ |
10 | |||
11 | AM_LDFLAGS = $(LDFLAGS_ac) | ||
9 | 12 | ||
10 | MHD_CPU_COUNT_DEF = -DMHD_CPU_COUNT=$(CPU_COUNT) | 13 | MHD_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 | ||
3 | AM_CPPFLAGS = \ | 3 | AM_CPPFLAGS = \ |
4 | -I$(top_srcdir)/src/include \ | 4 | -I$(top_srcdir)/src/include \ |
5 | -I$(top_srcdir)/src/microhttpd | 5 | $(CPPFLAGS_ac) |
6 | 6 | ||
7 | AM_CFLAGS = $(HIDDEN_VISIBILITY_CFLAGS) | 7 | AM_CFLAGS = $(CFLAGS_ac) $(HIDDEN_VISIBILITY_CFLAGS) |
8 | |||
9 | AM_LDFLAGS = $(LDFLAGS_ac) | ||
8 | 10 | ||
9 | lib_LTLIBRARIES = \ | 11 | lib_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 | ||
6 | SUBDIRS = . | 6 | SUBDIRS = . |
7 | 7 | ||
8 | AM_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 | |||
14 | AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@ | ||
15 | |||
16 | AM_LDFLAGS = $(LDFLAGS_ac) | ||
17 | |||
8 | if USE_COVERAGE | 18 | if USE_COVERAGE |
9 | AM_CFLAGS = -fprofile-arcs -ftest-coverage | 19 | AM_CFLAGS += -fprofile-arcs -ftest-coverage |
10 | endif | 20 | endif |
11 | 21 | ||
12 | if ENABLE_HTTPS | 22 | if ENABLE_HTTPS |
13 | SUBDIRS += https | 23 | SUBDIRS += https |
14 | endif | 24 | endif |
15 | 25 | ||
16 | AM_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 | |||
23 | LDADD = \ | 26 | LDADD = \ |
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 | ||
4 | SUBDIRS = . | 4 | SUBDIRS = . |
5 | 5 | ||
6 | if USE_COVERAGE | ||
7 | AM_CFLAGS = --coverage | ||
8 | endif | ||
9 | |||
10 | .NOTPARALLEL: | 6 | .NOTPARALLEL: |
11 | 7 | ||
12 | MHD_CPU_COUNT_DEF = -DMHD_CPU_COUNT=$(CPU_COUNT) | ||
13 | |||
14 | AM_CPPFLAGS = \ | 8 | AM_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 | |||
14 | AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@ | ||
15 | |||
16 | AM_LDFLAGS = $(LDFLAGS_ac) | ||
17 | |||
18 | if USE_COVERAGE | ||
19 | AM_CFLAGS += --coverage | ||
20 | endif | ||
18 | 21 | ||
19 | LDADD = \ | 22 | LDADD = \ |
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 |
86 | test_https_get_parallel_CPPFLAGS = \ | ||
87 | $(AM_CPPFLAGS) $(MHD_CPU_COUNT_DEF) | ||
88 | test_https_get_parallel_CFLAGS = \ | 89 | test_https_get_parallel_CFLAGS = \ |
89 | $(PTHREAD_CFLAGS) $(AM_CFLAGS) | 90 | $(PTHREAD_CFLAGS) $(AM_CFLAGS) |
90 | test_https_get_parallel_LDADD = \ | 91 | test_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 |
104 | test_https_get_parallel_threads_CPPFLAGS = \ | ||
105 | $(AM_CPPFLAGS) $(MHD_CPU_COUNT_DEF) | ||
106 | test_https_get_parallel_threads_CFLAGS = \ | 105 | test_https_get_parallel_threads_CFLAGS = \ |
107 | $(PTHREAD_CFLAGS) $(AM_CFLAGS) | 106 | $(PTHREAD_CFLAGS) $(AM_CFLAGS) |
108 | test_https_get_parallel_threads_LDADD = \ | 107 | test_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 |
2 | SUBDIRS = . | 2 | SUBDIRS = . |
3 | 3 | ||
4 | AM_CPPFLAGS = \ | ||
5 | -I$(top_srcdir)/src/include \ | ||
6 | -DMHD_CPU_COUNT=$(CPU_COUNT) \ | ||
7 | $(LIBCURL_CPPFLAGS) | ||
8 | |||
9 | AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@ | ||
10 | |||
11 | AM_LDFLAGS = $(LDFLAGS_ac) | ||
12 | |||
4 | if USE_COVERAGE | 13 | if USE_COVERAGE |
5 | AM_CFLAGS = -fprofile-arcs -ftest-coverage | 14 | AM_CFLAGS += -fprofile-arcs -ftest-coverage |
6 | endif | 15 | endif |
7 | 16 | ||
8 | 17 | LDADD = \ | |
9 | AM_CPPFLAGS = -I$(top_srcdir)/src/include \ | 18 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ |
10 | $(LIBCURL_CPPFLAGS) | 19 | @LIBCURL@ |
11 | 20 | ||
12 | EXTRA_DIST = README socat.c | 21 | EXTRA_DIST = README socat.c |
13 | 22 | ||
@@ -45,80 +54,41 @@ TESTS = $(check_PROGRAMS) | |||
45 | 54 | ||
46 | test_get_SOURCES = \ | 55 | test_get_SOURCES = \ |
47 | test_get.c | 56 | test_get.c |
48 | test_get_LDADD = \ | ||
49 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | ||
50 | @LIBCURL@ | ||
51 | 57 | ||
52 | test_get_chunked_SOURCES = \ | 58 | test_get_chunked_SOURCES = \ |
53 | test_get_chunked.c | 59 | test_get_chunked.c |
54 | test_get_chunked_LDADD = \ | ||
55 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | ||
56 | @LIBCURL@ | ||
57 | 60 | ||
58 | test_post_SOURCES = \ | 61 | test_post_SOURCES = \ |
59 | test_post.c | 62 | test_post.c |
60 | test_post_LDADD = \ | ||
61 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | ||
62 | @LIBCURL@ | ||
63 | 63 | ||
64 | test_post_form_SOURCES = \ | 64 | test_post_form_SOURCES = \ |
65 | test_post_form.c | 65 | test_post_form.c |
66 | test_post_form_LDADD = \ | ||
67 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | ||
68 | @LIBCURL@ | ||
69 | 66 | ||
70 | test_put_SOURCES = \ | 67 | test_put_SOURCES = \ |
71 | test_put.c | 68 | test_put.c |
72 | test_put_LDADD = \ | ||
73 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | ||
74 | @LIBCURL@ | ||
75 | 69 | ||
76 | test_put_chunked_SOURCES = \ | 70 | test_put_chunked_SOURCES = \ |
77 | test_put_chunked.c | 71 | test_put_chunked.c |
78 | test_put_chunked_LDADD = \ | ||
79 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | ||
80 | @LIBCURL@ | ||
81 | 72 | ||
82 | test_put_large_SOURCES = \ | 73 | test_put_large_SOURCES = \ |
83 | test_put_large.c | 74 | test_put_large.c |
84 | test_put_large_LDADD = \ | ||
85 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | ||
86 | @LIBCURL@ | ||
87 | 75 | ||
88 | 76 | ||
89 | 77 | ||
90 | test_get11_SOURCES = \ | 78 | test_get11_SOURCES = \ |
91 | test_get.c | 79 | test_get.c |
92 | test_get11_LDADD = \ | ||
93 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | ||
94 | @LIBCURL@ | ||
95 | 80 | ||
96 | test_post11_SOURCES = \ | 81 | test_post11_SOURCES = \ |
97 | test_post.c | 82 | test_post.c |
98 | test_post11_LDADD = \ | ||
99 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | ||
100 | @LIBCURL@ | ||
101 | 83 | ||
102 | test_post_form11_SOURCES = \ | 84 | test_post_form11_SOURCES = \ |
103 | test_post_form.c | 85 | test_post_form.c |
104 | test_post_form11_LDADD = \ | ||
105 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | ||
106 | @LIBCURL@ | ||
107 | 86 | ||
108 | test_put11_SOURCES = \ | 87 | test_put11_SOURCES = \ |
109 | test_put.c | 88 | test_put.c |
110 | test_put11_LDADD = \ | ||
111 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | ||
112 | @LIBCURL@ | ||
113 | 89 | ||
114 | test_put_large11_SOURCES = \ | 90 | test_put_large11_SOURCES = \ |
115 | test_put_large.c | 91 | test_put_large.c |
116 | test_put_large11_LDADD = \ | ||
117 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | ||
118 | @LIBCURL@ | ||
119 | 92 | ||
120 | test_long_header_SOURCES = \ | 93 | test_long_header_SOURCES = \ |
121 | test_long_header.c | 94 | test_long_header.c |
122 | test_long_header_LDADD = \ | ||
123 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | ||
124 | @LIBCURL@ | ||