]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/sntp/libevent/sample/include.am
Fix a regression with SA-15:24 patch that prevented NIS from
[FreeBSD/releng/10.2.git] / contrib / ntp / sntp / libevent / sample / include.am
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
7 SAMPLES = \
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
15 if OPENSSL
16 SAMPLES += sample/le-proxy
17 sample_le_proxy_SOURCES = sample/le-proxy.c
18 sample_le_proxy_LDADD = libevent.la libevent_openssl.la ${OPENSSL_LIBS} ${OPENSSL_LIBADD}
19 sample_le_proxy_INCLUDES = $(OPENSSL_INCS)
20
21 SAMPLES += sample/https-client
22 sample_https_client_SOURCES = \
23         sample/https-client.c \
24         sample/hostcheck.c \
25         sample/openssl_hostname_validation.c
26 sample_https_client_LDADD = libevent.la libevent_openssl.la ${OPENSSL_LIBS} ${OPENSSL_LIBADD}
27 sample_https_client_INCLUDES = $(OPENSSL_INCS)
28 noinst_HEADERS += \
29         sample/hostcheck.h \
30         sample/openssl_hostname_validation.h
31 endif
32
33 if BUILD_SAMPLES
34 noinst_PROGRAMS += $(SAMPLES)
35 endif
36
37 $(SAMPLES) : libevent.la
38
39 sample_event_read_fifo_SOURCES = sample/event-read-fifo.c
40 sample_event_read_fifo_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
41 sample_time_test_SOURCES = sample/time-test.c
42 sample_time_test_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
43 sample_signal_test_SOURCES = sample/signal-test.c
44 sample_signal_test_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
45 sample_dns_example_SOURCES = sample/dns-example.c
46 sample_dns_example_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
47 sample_hello_world_SOURCES = sample/hello-world.c
48 sample_hello_world_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
49 sample_http_server_SOURCES = sample/http-server.c
50 sample_http_server_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
51
52
53