xref: /freebsd/contrib/ntp/sntp/libevent/sample/include.am (revision 98e0ffaefb0f241cda3a72395d3be04192ae0d47)
1# sample/include.am for libevent
2# Copyright 2000-2007 Niels Provos
3# Copyright 2007-2012 Niels Provos and Nick Mathewson
4#
5# See LICENSE for copying information.
6
7SAMPLES = \
8	sample/dns-example				\
9	sample/event-read-fifo			\
10	sample/hello-world				\
11	sample/http-server				\
12	sample/signal-test				\
13	sample/time-test
14
15if OPENSSL
16SAMPLES += sample/le-proxy
17sample_le_proxy_SOURCES = sample/le-proxy.c
18sample_le_proxy_LDADD = libevent.la libevent_openssl.la ${OPENSSL_LIBS} ${OPENSSL_LIBADD}
19sample_le_proxy_INCLUDES = $(OPENSSL_INCS)
20
21SAMPLES += sample/https-client
22sample_https_client_SOURCES = \
23	sample/https-client.c \
24	sample/hostcheck.c \
25	sample/openssl_hostname_validation.c
26sample_https_client_LDADD = libevent.la libevent_openssl.la ${OPENSSL_LIBS} ${OPENSSL_LIBADD}
27sample_https_client_INCLUDES = $(OPENSSL_INCS)
28noinst_HEADERS += \
29	sample/hostcheck.h \
30	sample/openssl_hostname_validation.h
31endif
32
33if BUILD_SAMPLES
34noinst_PROGRAMS += $(SAMPLES)
35endif
36
37$(SAMPLES) : libevent.la
38
39sample_event_read_fifo_SOURCES = sample/event-read-fifo.c
40sample_event_read_fifo_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
41sample_time_test_SOURCES = sample/time-test.c
42sample_time_test_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
43sample_signal_test_SOURCES = sample/signal-test.c
44sample_signal_test_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
45sample_dns_example_SOURCES = sample/dns-example.c
46sample_dns_example_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
47sample_hello_world_SOURCES = sample/hello-world.c
48sample_hello_world_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
49sample_http_server_SOURCES = sample/http-server.c
50sample_http_server_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
51
52
53
54