xref: /freebsd/contrib/libevent/sample/include.am (revision b50261e21f39a6c7249a49e7b60aa878c98512a8)
1c43e99fdSEd Maste# sample/include.am for libevent
2c43e99fdSEd Maste# Copyright 2000-2007 Niels Provos
3c43e99fdSEd Maste# Copyright 2007-2012 Niels Provos and Nick Mathewson
4c43e99fdSEd Maste#
5c43e99fdSEd Maste# See LICENSE for copying information.
6c43e99fdSEd Maste
7c43e99fdSEd MasteSAMPLES = \
8c43e99fdSEd Maste	sample/dns-example				\
9c43e99fdSEd Maste	sample/event-read-fifo			\
10c43e99fdSEd Maste	sample/hello-world				\
11c43e99fdSEd Maste	sample/http-server				\
12c43e99fdSEd Maste	sample/http-connect				\
13c43e99fdSEd Maste	sample/signal-test				\
14c43e99fdSEd Maste	sample/time-test
15c43e99fdSEd Maste
16c43e99fdSEd Masteif OPENSSL
17c43e99fdSEd MasteSAMPLES += sample/le-proxy
18c43e99fdSEd Mastesample_le_proxy_SOURCES = sample/le-proxy.c
19*b50261e2SCy Schubertsample_le_proxy_LDADD = libevent.la libevent_openssl.la $(OPENSSL_LIBS) $(OPENSSL_LIBADD)
20*b50261e2SCy Schubertsample_le_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(OPENSSL_INCS)
21c43e99fdSEd Maste
22c43e99fdSEd MasteSAMPLES += sample/https-client
23c43e99fdSEd Mastesample_https_client_SOURCES = \
24c43e99fdSEd Maste	sample/https-client.c \
25c43e99fdSEd Maste	sample/hostcheck.c \
26c43e99fdSEd Maste	sample/openssl_hostname_validation.c
27*b50261e2SCy Schubertsample_https_client_LDADD = libevent.la libevent_openssl.la $(OPENSSL_LIBS) $(OPENSSL_LIBADD)
28*b50261e2SCy Schubertif BUILD_WIN32
29*b50261e2SCy Schubertsample_https_client_LDADD += -lcrypt32
30*b50261e2SCy Schubertendif
31*b50261e2SCy Schubertsample_https_client_CPPFLAGS = $(AM_CPPFLAGS) $(OPENSSL_INCS)
32c43e99fdSEd Mastenoinst_HEADERS += \
33c43e99fdSEd Maste	sample/hostcheck.h \
34c43e99fdSEd Maste	sample/openssl_hostname_validation.h
35c43e99fdSEd Masteendif
36c43e99fdSEd Maste
37c43e99fdSEd Masteif BUILD_SAMPLES
38c43e99fdSEd Mastenoinst_PROGRAMS += $(SAMPLES)
39c43e99fdSEd Masteendif
40c43e99fdSEd Maste
41c43e99fdSEd Maste$(SAMPLES) : libevent.la
42c43e99fdSEd Maste
43c43e99fdSEd Mastesample_event_read_fifo_SOURCES = sample/event-read-fifo.c
44c43e99fdSEd Mastesample_event_read_fifo_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
45c43e99fdSEd Mastesample_time_test_SOURCES = sample/time-test.c
46c43e99fdSEd Mastesample_time_test_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
47c43e99fdSEd Mastesample_signal_test_SOURCES = sample/signal-test.c
48c43e99fdSEd Mastesample_signal_test_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
49c43e99fdSEd Mastesample_dns_example_SOURCES = sample/dns-example.c
50c43e99fdSEd Mastesample_dns_example_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
51c43e99fdSEd Mastesample_hello_world_SOURCES = sample/hello-world.c
52c43e99fdSEd Mastesample_hello_world_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
53c43e99fdSEd Mastesample_http_server_SOURCES = sample/http-server.c
54c43e99fdSEd Mastesample_http_server_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
55c43e99fdSEd Mastesample_http_connect_SOURCES = sample/http-connect.c
56c43e99fdSEd Mastesample_http_connect_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
57