1AUTOMAKE_OPTIONS = foreign no-dependencies
2
3AM_CFLAGS = -I$(top_srcdir) -I$(top_srcdir)/compat
4
5EXTRA_DIST = regress.rpc regress.gen.h regress.gen.c
6
7noinst_PROGRAMS = test-init test-eof test-weof test-time regress bench
8
9BUILT_SOURCES = regress.gen.c regress.gen.h
10test_init_SOURCES = test-init.c
11test_init_LDADD = ../libevent_core.la
12test_eof_SOURCES = test-eof.c
13test_eof_LDADD = ../libevent_core.la
14test_weof_SOURCES = test-weof.c
15test_weof_LDADD = ../libevent_core.la
16test_time_SOURCES = test-time.c
17test_time_LDADD = ../libevent_core.la
18regress_SOURCES = regress.c regress.h regress_http.c regress_dns.c \
19	regress_rpc.c \
20	regress.gen.c regress.gen.h
21regress_LDADD = ../libevent.la
22bench_SOURCES = bench.c
23bench_LDADD = ../libevent.la
24
25regress.gen.c regress.gen.h: regress.rpc $(top_srcdir)/event_rpcgen.py
26	$(top_srcdir)/event_rpcgen.py $(srcdir)/regress.rpc || echo "No Python installed"
27
28DISTCLEANFILES = *~
29
30test: test-init test-eof test-weof test-time regress
31
32verify: test
33	@$(srcdir)/test.sh
34
35bench test-init test-eof test-weof test-time: ../libevent.la
36