2010-04-12 12:50:17 +02:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
2003-03-08 05:24:26 +00:00
|
|
|
|
2011-02-13 02:27:42 -05:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/compat -I$(top_srcdir)/include -I../include -DTINYTEST_LOCAL
|
2003-03-08 05:24:26 +00:00
|
|
|
|
2010-03-12 13:22:47 -05:00
|
|
|
EXTRA_DIST = regress.rpc regress.gen.h regress.gen.c test.sh
|
2005-08-22 01:34:34 +00:00
|
|
|
|
2011-04-23 02:35:17 -04:00
|
|
|
noinst_PROGRAMS = test-init test-eof test-weof test-time \
|
2010-07-19 13:44:56 +12:00
|
|
|
bench bench_cascade bench_http bench_httpclient test-ratelim \
|
|
|
|
test-changelist
|
2011-04-23 02:35:17 -04:00
|
|
|
if BUILD_REGRESS
|
|
|
|
noinst_PROGRAMS += regress
|
|
|
|
endif
|
2011-02-13 02:05:04 -05:00
|
|
|
EXTRA_PROGRAMS = regress
|
2010-09-09 16:13:09 -04:00
|
|
|
noinst_HEADERS = tinytest.h tinytest_macros.h regress.h tinytest_local.h
|
2003-03-08 05:24:26 +00:00
|
|
|
|
2010-03-12 13:09:28 -05:00
|
|
|
TESTS = $(top_srcdir)/test/test.sh
|
|
|
|
|
2011-02-13 02:05:04 -05:00
|
|
|
BUILT_SOURCES =
|
|
|
|
if BUILD_REGRESS
|
|
|
|
BUILT_SOURCES += regress.gen.c regress.gen.h
|
|
|
|
endif
|
|
|
|
|
2005-08-22 01:34:34 +00:00
|
|
|
test_init_SOURCES = test-init.c
|
2007-11-03 23:45:38 +00:00
|
|
|
test_init_LDADD = ../libevent_core.la
|
2005-08-22 01:34:34 +00:00
|
|
|
test_eof_SOURCES = test-eof.c
|
2007-11-03 23:45:38 +00:00
|
|
|
test_eof_LDADD = ../libevent_core.la
|
2010-07-19 13:44:56 +12:00
|
|
|
test_changelist_SOURCES = test-changelist.c
|
|
|
|
test_changelist_LDADD = ../libevent_core.la
|
2005-08-22 01:34:34 +00:00
|
|
|
test_weof_SOURCES = test-weof.c
|
2007-11-03 23:45:38 +00:00
|
|
|
test_weof_LDADD = ../libevent_core.la
|
2005-08-22 01:34:34 +00:00
|
|
|
test_time_SOURCES = test-time.c
|
2007-11-03 23:45:38 +00:00
|
|
|
test_time_LDADD = ../libevent_core.la
|
2009-12-23 07:54:13 -05:00
|
|
|
test_ratelim_SOURCES = test-ratelim.c
|
2009-12-30 13:50:52 -05:00
|
|
|
test_ratelim_LDADD = ../libevent_core.la -lm
|
2009-01-29 23:19:57 +00:00
|
|
|
|
2009-02-01 01:07:12 +00:00
|
|
|
regress_SOURCES = regress.c regress_buffer.c regress_http.c regress_dns.c \
|
2010-01-14 16:53:25 -08:00
|
|
|
regress_testutils.c regress_testutils.h \
|
2008-06-22 16:00:48 +00:00
|
|
|
regress_rpc.c regress.gen.c regress.gen.h regress_et.c \
|
2009-07-30 17:01:38 +00:00
|
|
|
regress_bufferevent.c regress_listener.c \
|
2009-04-23 00:33:37 +00:00
|
|
|
regress_util.c tinytest.c regress_main.c regress_minheap.c \
|
2010-08-17 14:44:12 -04:00
|
|
|
$(regress_thread_SOURCES) $(regress_zlib_SOURCES)
|
2009-01-21 07:51:25 +00:00
|
|
|
if PTHREADS
|
2010-08-17 14:44:12 -04:00
|
|
|
regress_thread_SOURCES = regress_thread.c
|
2009-02-12 22:19:54 +00:00
|
|
|
PTHREAD_LIBS += ../libevent_pthreads.la
|
2008-03-02 21:18:33 +00:00
|
|
|
endif
|
2010-08-16 12:38:22 -04:00
|
|
|
if BUILD_WIN32
|
2010-08-17 14:44:12 -04:00
|
|
|
regress_thread_SOURCES = regress_thread.c
|
2010-08-16 12:38:22 -04:00
|
|
|
endif
|
2008-04-30 04:31:10 +00:00
|
|
|
if ZLIB_REGRESS
|
2008-06-22 16:00:48 +00:00
|
|
|
regress_zlib_SOURCES = regress_zlib.c
|
2008-04-30 04:31:10 +00:00
|
|
|
endif
|
2009-04-30 19:05:43 +00:00
|
|
|
if BUILD_WIN32
|
|
|
|
regress_SOURCES += regress_iocp.c
|
|
|
|
endif
|
2009-07-28 04:03:57 +00:00
|
|
|
|
2011-02-22 16:13:49 -05:00
|
|
|
regress_LDADD = $(LIBEVENT_GC_SECTIONS) ../libevent.la $(PTHREAD_LIBS) $(ZLIB_LIBS)
|
2011-05-26 00:03:38 +02:00
|
|
|
regress_CPPFLAGS = $(AM_CPPFLAGS) $(PTHREAD_CFLAGS) $(ZLIB_CFLAGS)
|
2008-11-27 19:34:07 +00:00
|
|
|
regress_LDFLAGS = $(PTHREAD_CFLAGS)
|
2009-01-29 23:19:57 +00:00
|
|
|
|
2009-07-28 04:03:57 +00:00
|
|
|
if OPENSSL
|
|
|
|
regress_SOURCES += regress_ssl.c
|
2011-05-04 16:37:58 +02:00
|
|
|
regress_LDADD += ../libevent_openssl.la
|
2009-07-28 04:03:57 +00:00
|
|
|
endif
|
|
|
|
|
2005-08-22 01:34:34 +00:00
|
|
|
bench_SOURCES = bench.c
|
2011-02-22 16:13:49 -05:00
|
|
|
bench_LDADD = $(LIBEVENT_GC_SECTIONS) ../libevent.la
|
2007-11-30 02:21:33 +00:00
|
|
|
bench_cascade_SOURCES = bench_cascade.c
|
2011-02-22 16:13:49 -05:00
|
|
|
bench_cascade_LDADD = $(LIBEVENT_GC_SECTIONS) ../libevent.la
|
2008-05-15 01:54:20 +00:00
|
|
|
bench_http_SOURCES = bench_http.c
|
2011-02-22 16:13:49 -05:00
|
|
|
bench_http_LDADD = $(LIBEVENT_GC_SECTIONS) ../libevent.la
|
2009-04-18 00:12:52 +00:00
|
|
|
bench_httpclient_SOURCES = bench_httpclient.c
|
2011-02-22 16:13:49 -05:00
|
|
|
bench_httpclient_LDADD = $(LIBEVENT_GC_SECTIONS) ../libevent_core.la
|
2005-08-22 01:34:34 +00:00
|
|
|
|
2007-12-31 20:47:12 +00:00
|
|
|
regress.gen.c regress.gen.h: regress.rpc $(top_srcdir)/event_rpcgen.py
|
2007-09-18 15:11:53 +00:00
|
|
|
$(top_srcdir)/event_rpcgen.py $(srcdir)/regress.rpc || echo "No Python installed"
|
2003-03-08 05:24:26 +00:00
|
|
|
|
|
|
|
DISTCLEANFILES = *~
|
|
|
|
|
2010-03-12 13:09:28 -05:00
|
|
|
verify: check
|
2003-03-08 05:24:26 +00:00
|
|
|
|
2010-07-19 13:44:56 +12:00
|
|
|
bench test-init test-eof test-weof test-time test-changelist: ../libevent.la
|