1*a466cc55SCy Schubert# sample/include.am for libevent 2*a466cc55SCy Schubert# Copyright 2000-2007 Niels Provos 3*a466cc55SCy Schubert# Copyright 2007-2012 Niels Provos and Nick Mathewson 4*a466cc55SCy Schubert# 5*a466cc55SCy Schubert# See LICENSE for copying information. 6*a466cc55SCy Schubert 7*a466cc55SCy SchubertSAMPLES = \ 8*a466cc55SCy Schubert sample/dns-example \ 9*a466cc55SCy Schubert sample/event-read-fifo \ 10*a466cc55SCy Schubert sample/hello-world \ 11*a466cc55SCy Schubert sample/http-server \ 12*a466cc55SCy Schubert sample/http-connect \ 13*a466cc55SCy Schubert sample/signal-test \ 14*a466cc55SCy Schubert sample/time-test 15*a466cc55SCy Schubert 16*a466cc55SCy Schubertif OPENSSL 17*a466cc55SCy SchubertSAMPLES += sample/le-proxy 18*a466cc55SCy Schubertsample_le_proxy_SOURCES = sample/le-proxy.c 19*a466cc55SCy Schubertsample_le_proxy_LDADD = libevent.la libevent_openssl.la $(OPENSSL_LIBS) $(OPENSSL_LIBADD) 20*a466cc55SCy Schubertsample_le_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(OPENSSL_INCS) 21*a466cc55SCy Schubert 22*a466cc55SCy SchubertSAMPLES += sample/https-client 23*a466cc55SCy Schubertsample_https_client_SOURCES = \ 24*a466cc55SCy Schubert sample/https-client.c \ 25*a466cc55SCy Schubert sample/hostcheck.c \ 26*a466cc55SCy Schubert sample/openssl_hostname_validation.c 27*a466cc55SCy Schubertsample_https_client_LDADD = libevent.la libevent_openssl.la $(OPENSSL_LIBS) $(OPENSSL_LIBADD) 28*a466cc55SCy Schubertif BUILD_WIN32 29*a466cc55SCy Schubertsample_https_client_LDADD += -lcrypt32 30*a466cc55SCy Schubertendif 31*a466cc55SCy Schubertsample_https_client_CPPFLAGS = $(AM_CPPFLAGS) $(OPENSSL_INCS) 32*a466cc55SCy Schubertnoinst_HEADERS += \ 33*a466cc55SCy Schubert sample/hostcheck.h \ 34*a466cc55SCy Schubert sample/openssl_hostname_validation.h 35*a466cc55SCy Schubertendif 36*a466cc55SCy Schubert 37*a466cc55SCy Schubertif BUILD_SAMPLES 38*a466cc55SCy Schubertnoinst_PROGRAMS += $(SAMPLES) 39*a466cc55SCy Schubertendif 40*a466cc55SCy Schubert 41*a466cc55SCy Schubert$(SAMPLES) : libevent.la 42*a466cc55SCy Schubert 43*a466cc55SCy Schubertsample_event_read_fifo_SOURCES = sample/event-read-fifo.c 44*a466cc55SCy Schubertsample_event_read_fifo_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 45*a466cc55SCy Schubertsample_time_test_SOURCES = sample/time-test.c 46*a466cc55SCy Schubertsample_time_test_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 47*a466cc55SCy Schubertsample_signal_test_SOURCES = sample/signal-test.c 48*a466cc55SCy Schubertsample_signal_test_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 49*a466cc55SCy Schubertsample_dns_example_SOURCES = sample/dns-example.c 50*a466cc55SCy Schubertsample_dns_example_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 51*a466cc55SCy Schubertsample_hello_world_SOURCES = sample/hello-world.c 52*a466cc55SCy Schubertsample_hello_world_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 53*a466cc55SCy Schubertsample_http_server_SOURCES = sample/http-server.c 54*a466cc55SCy Schubertsample_http_server_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 55*a466cc55SCy Schubertsample_http_connect_SOURCES = sample/http-connect.c 56*a466cc55SCy Schubertsample_http_connect_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 57