Hash :
2711cda3
Author :
Date :
2012-04-20T12:14:20
Split long lists in Makefile.am into one-item-per-line
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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
# test/Makefile.am for libevent
# Copyright 2000-2007 Niels Provos
# Copyright 2007-2012 Niels Provos and Nick Mathewson
#
# See LICENSE for copying information.
AUTOMAKE_OPTIONS = foreign
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/compat -I$(top_srcdir)/include -I../include -DTINYTEST_LOCAL
EXTRA_DIST = \
check-dumpevents.py \
regress.gen.c \
regress.gen.h \
regress.rpc \
rpcgen_wrapper.sh \
test.sh
noinst_PROGRAMS = \
bench \
bench_cascade \
bench_http \
bench_httpclient \
test-changelist \
test-dumpevents \
test-eof \
test-fdleak \
test-init \
test-ratelim \
test-time \
test-weof
if BUILD_REGRESS
noinst_PROGRAMS += regress
endif
EXTRA_PROGRAMS = regress
noinst_HEADERS = \
regress.h \
tinytest.h \
tinytest_local.h \
tinytest_macros.h
TESTS = $(top_srcdir)/test/test.sh
BUILT_SOURCES =
if BUILD_REGRESS
BUILT_SOURCES += regress.gen.c regress.gen.h
endif
test_init_SOURCES = test-init.c
test_init_LDADD = ../libevent_core.la
test_dumpevents_SOURCES = test-dumpevents.c
test_dumpevents_LDADD = ../libevent_core.la
test_eof_SOURCES = test-eof.c
test_eof_LDADD = ../libevent_core.la
test_changelist_SOURCES = test-changelist.c
test_changelist_LDADD = ../libevent_core.la
test_weof_SOURCES = test-weof.c
test_weof_LDADD = ../libevent_core.la
test_time_SOURCES = test-time.c
test_time_LDADD = ../libevent_core.la
test_ratelim_SOURCES = test-ratelim.c
test_ratelim_LDADD = ../libevent_core.la -lm
test_fdleak_SOURCES = test-fdleak.c
test_fdleak_LDADD = ../libevent_core.la
regress_SOURCES = \
regress.c \
regress.gen.c \
regress.gen.h \
regress_buffer.c \
regress_bufferevent.c \
regress_dns.c \
regress_et.c \
regress_http.c \
regress_listener.c \
regress_main.c \
regress_minheap.c \
regress_rpc.c \
regress_testutils.c \
regress_testutils.h \
regress_util.c \
tinytest.c \
$(regress_thread_SOURCES) \
$(regress_zlib_SOURCES)
if PTHREADS
regress_thread_SOURCES = regress_thread.c
PTHREAD_LIBS += ../libevent_pthreads.la
endif
if BUILD_WIN32
regress_thread_SOURCES = regress_thread.c
endif
if ZLIB_REGRESS
regress_zlib_SOURCES = regress_zlib.c
endif
if BUILD_WIN32
regress_SOURCES += regress_iocp.c
endif
regress_LDADD = $(LIBEVENT_GC_SECTIONS) ../libevent.la $(PTHREAD_LIBS) $(ZLIB_LIBS)
regress_CPPFLAGS = $(AM_CPPFLAGS) $(PTHREAD_CFLAGS) $(ZLIB_CFLAGS)
regress_LDFLAGS = $(PTHREAD_CFLAGS)
if OPENSSL
regress_SOURCES += regress_ssl.c
regress_LDADD += ../libevent_openssl.la -lssl -lcrypto ${OPENSSL_LIBADD}
endif
bench_SOURCES = bench.c
bench_LDADD = $(LIBEVENT_GC_SECTIONS) ../libevent.la
bench_cascade_SOURCES = bench_cascade.c
bench_cascade_LDADD = $(LIBEVENT_GC_SECTIONS) ../libevent.la
bench_http_SOURCES = bench_http.c
bench_http_LDADD = $(LIBEVENT_GC_SECTIONS) ../libevent.la
bench_httpclient_SOURCES = bench_httpclient.c
bench_httpclient_LDADD = $(LIBEVENT_GC_SECTIONS) ../libevent_core.la
regress.gen.c regress.gen.h: rpcgen-attempted
rpcgen-attempted: $(srcdir)/regress.rpc $(srcdir)/../event_rpcgen.py $(srcdir)/rpcgen_wrapper.sh
date -u > $@
if $(srcdir)/rpcgen_wrapper.sh $(srcdir); then \
echo "rpcgen okay"; \
else \
echo "No Python installed; stubbing out RPC test." >&2; \
echo " "> regress.gen.c; \
echo "#define NO_PYTHON_EXISTS" > regress.gen.h; \
fi
CLEANFILES = rpcgen-attempted
DISTCLEANFILES = *~
verify: check
bench test-init test-eof test-weof test-time test-changelist \
test-fdleak: ../libevent.la