Makefile.am (2742B)
1 # This Makefile.am is in the public domain 2 SUBDIRS = . 3 4 AM_CPPFLAGS = \ 5 -I$(top_srcdir)/src/include \ 6 $(CPPFLAGS_ac) $(LIBCURL_CPPFLAGS) 7 8 AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@ 9 10 AM_LDFLAGS = $(LDFLAGS_ac) 11 12 AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac) 13 14 if USE_COVERAGE 15 AM_CFLAGS += --coverage 16 endif 17 18 $(top_builddir)/src/microhttpd/libmicrohttpd.la: $(top_builddir)/src/microhttpd/Makefile 19 @echo ' cd $(top_builddir)/src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd.la'; \ 20 $(am__cd) $(top_builddir)/src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd.la 21 22 # example programs 23 noinst_PROGRAMS = \ 24 callbackresponse \ 25 hellobrowser \ 26 logging \ 27 responseheaders 28 29 if ENABLE_UPGRADE 30 noinst_PROGRAMS += \ 31 upgrade 32 endif 33 34 if ENABLE_BAUTH 35 noinst_PROGRAMS += \ 36 basicauthentication 37 if ENABLE_HTTPS 38 noinst_PROGRAMS += \ 39 tlsauthentication 40 endif 41 endif 42 43 if HAVE_POSTPROCESSOR 44 noinst_PROGRAMS += simplepost largepost sessions 45 endif 46 47 if HAVE_POSIX_THREADS 48 noinst_PROGRAMS += asyncresponse 49 if HAVE_FORK_WAITPID 50 if RUN_LIBCURL_TESTS 51 check_PROGRAMS = test_asyncresponse 52 TESTS = $(check_PROGRAMS) 53 endif 54 endif 55 endif 56 57 if HAVE_W32 58 AM_CPPFLAGS += -DWINDOWS 59 endif 60 61 asyncresponse_SOURCES = \ 62 asyncresponse.c 63 asyncresponse_CFLAGS = \ 64 $(AM_CFLAGS) $(PTHREAD_CFLAGS) 65 asyncresponse_LDADD = \ 66 $(PTHREAD_LIBS) \ 67 $(top_builddir)/src/microhttpd/libmicrohttpd.la 68 69 test_asyncresponse_SOURCES = \ 70 test_asyncresponse.c 71 test_asyncresponse_CFLAGS = \ 72 $(AM_CFLAGS) $(PTHREAD_CFLAGS) 73 test_asyncresponse_LDADD = \ 74 $(PTHREAD_LIBS) \ 75 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 76 @LIBCURL@ 77 78 basicauthentication_SOURCES = \ 79 basicauthentication.c 80 basicauthentication_LDADD = \ 81 $(top_builddir)/src/microhttpd/libmicrohttpd.la 82 83 callbackresponse_SOURCES = \ 84 callbackresponse.c 85 callbackresponse_LDADD = \ 86 $(top_builddir)/src/microhttpd/libmicrohttpd.la 87 88 hellobrowser_SOURCES = \ 89 hellobrowser.c 90 hellobrowser_LDADD = \ 91 $(top_builddir)/src/microhttpd/libmicrohttpd.la 92 93 logging_SOURCES = \ 94 logging.c 95 logging_LDADD = \ 96 $(top_builddir)/src/microhttpd/libmicrohttpd.la 97 98 responseheaders_SOURCES = \ 99 responseheaders.c 100 responseheaders_LDADD = \ 101 $(top_builddir)/src/microhttpd/libmicrohttpd.la 102 103 sessions_SOURCES = \ 104 sessions.c 105 sessions_LDADD = \ 106 $(top_builddir)/src/microhttpd/libmicrohttpd.la 107 108 tlsauthentication_SOURCES = \ 109 tlsauthentication.c 110 tlsauthentication_LDADD = \ 111 $(top_builddir)/src/microhttpd/libmicrohttpd.la 112 113 simplepost_SOURCES = \ 114 simplepost.c 115 simplepost_LDADD = \ 116 $(top_builddir)/src/microhttpd/libmicrohttpd.la 117 118 largepost_SOURCES = \ 119 largepost.c 120 largepost_LDADD = \ 121 $(top_builddir)/src/microhttpd/libmicrohttpd.la 122 123 upgrade_SOURCES = \ 124 upgrade.c 125 upgrade_LDADD = \ 126 $(top_builddir)/src/microhttpd/libmicrohttpd.la