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/http-connect \ 13 sample/signal-test \ 14 sample/time-test 15 16if OPENSSL 17SAMPLES += sample/le-proxy 18sample_le_proxy_SOURCES = sample/le-proxy.c 19sample_le_proxy_LDADD = libevent.la libevent_openssl.la ${OPENSSL_LIBS} ${OPENSSL_LIBADD} 20sample_le_proxy_INCLUDES = $(OPENSSL_INCS) 21 22SAMPLES += sample/https-client 23sample_https_client_SOURCES = \ 24 sample/https-client.c \ 25 sample/hostcheck.c \ 26 sample/openssl_hostname_validation.c 27sample_https_client_LDADD = libevent.la libevent_openssl.la ${OPENSSL_LIBS} ${OPENSSL_LIBADD} 28sample_https_client_INCLUDES = $(OPENSSL_INCS) 29noinst_HEADERS += \ 30 sample/hostcheck.h \ 31 sample/openssl_hostname_validation.h 32endif 33 34if BUILD_SAMPLES 35noinst_PROGRAMS += $(SAMPLES) 36endif 37 38$(SAMPLES) : libevent.la 39 40sample_event_read_fifo_SOURCES = sample/event-read-fifo.c 41sample_event_read_fifo_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 42sample_time_test_SOURCES = sample/time-test.c 43sample_time_test_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 44sample_signal_test_SOURCES = sample/signal-test.c 45sample_signal_test_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 46sample_dns_example_SOURCES = sample/dns-example.c 47sample_dns_example_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 48sample_hello_world_SOURCES = sample/hello-world.c 49sample_hello_world_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 50sample_http_server_SOURCES = sample/http-server.c 51sample_http_server_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 52sample_http_connect_SOURCES = sample/http-connect.c 53sample_http_connect_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 54