1*663afb9bSAndroid Build Coastguard Worker# sample/include.am for libevent 2*663afb9bSAndroid Build Coastguard Worker# Copyright 2000-2007 Niels Provos 3*663afb9bSAndroid Build Coastguard Worker# Copyright 2007-2012 Niels Provos and Nick Mathewson 4*663afb9bSAndroid Build Coastguard Worker# 5*663afb9bSAndroid Build Coastguard Worker# See LICENSE for copying information. 6*663afb9bSAndroid Build Coastguard Worker 7*663afb9bSAndroid Build Coastguard WorkerSAMPLES = \ 8*663afb9bSAndroid Build Coastguard Worker sample/dns-example \ 9*663afb9bSAndroid Build Coastguard Worker sample/event-read-fifo \ 10*663afb9bSAndroid Build Coastguard Worker sample/hello-world \ 11*663afb9bSAndroid Build Coastguard Worker sample/http-server \ 12*663afb9bSAndroid Build Coastguard Worker sample/http-connect \ 13*663afb9bSAndroid Build Coastguard Worker sample/signal-test \ 14*663afb9bSAndroid Build Coastguard Worker sample/time-test 15*663afb9bSAndroid Build Coastguard Worker 16*663afb9bSAndroid Build Coastguard Workerif OPENSSL 17*663afb9bSAndroid Build Coastguard WorkerSAMPLES += sample/le-proxy 18*663afb9bSAndroid Build Coastguard Workersample_le_proxy_SOURCES = sample/le-proxy.c 19*663afb9bSAndroid Build Coastguard Workersample_le_proxy_LDADD = libevent.la libevent_openssl.la $(OPENSSL_LIBS) $(OPENSSL_LIBADD) 20*663afb9bSAndroid Build Coastguard Workersample_le_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(OPENSSL_INCS) 21*663afb9bSAndroid Build Coastguard Worker 22*663afb9bSAndroid Build Coastguard WorkerSAMPLES += sample/https-client 23*663afb9bSAndroid Build Coastguard Workersample_https_client_SOURCES = \ 24*663afb9bSAndroid Build Coastguard Worker sample/https-client.c \ 25*663afb9bSAndroid Build Coastguard Worker sample/hostcheck.c \ 26*663afb9bSAndroid Build Coastguard Worker sample/openssl_hostname_validation.c 27*663afb9bSAndroid Build Coastguard Workersample_https_client_LDADD = libevent.la libevent_openssl.la $(OPENSSL_LIBS) $(OPENSSL_LIBADD) 28*663afb9bSAndroid Build Coastguard Workerif BUILD_WIN32 29*663afb9bSAndroid Build Coastguard Workersample_https_client_LDADD += -lcrypt32 30*663afb9bSAndroid Build Coastguard Workerendif 31*663afb9bSAndroid Build Coastguard Workersample_https_client_CPPFLAGS = $(AM_CPPFLAGS) $(OPENSSL_INCS) 32*663afb9bSAndroid Build Coastguard Workernoinst_HEADERS += \ 33*663afb9bSAndroid Build Coastguard Worker sample/hostcheck.h \ 34*663afb9bSAndroid Build Coastguard Worker sample/openssl_hostname_validation.h 35*663afb9bSAndroid Build Coastguard Workerendif 36*663afb9bSAndroid Build Coastguard Worker 37*663afb9bSAndroid Build Coastguard Workerif BUILD_SAMPLES 38*663afb9bSAndroid Build Coastguard Workernoinst_PROGRAMS += $(SAMPLES) 39*663afb9bSAndroid Build Coastguard Workerendif 40*663afb9bSAndroid Build Coastguard Worker 41*663afb9bSAndroid Build Coastguard Worker$(SAMPLES) : libevent.la 42*663afb9bSAndroid Build Coastguard Worker 43*663afb9bSAndroid Build Coastguard Workersample_event_read_fifo_SOURCES = sample/event-read-fifo.c 44*663afb9bSAndroid Build Coastguard Workersample_event_read_fifo_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 45*663afb9bSAndroid Build Coastguard Workersample_time_test_SOURCES = sample/time-test.c 46*663afb9bSAndroid Build Coastguard Workersample_time_test_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 47*663afb9bSAndroid Build Coastguard Workersample_signal_test_SOURCES = sample/signal-test.c 48*663afb9bSAndroid Build Coastguard Workersample_signal_test_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 49*663afb9bSAndroid Build Coastguard Workersample_dns_example_SOURCES = sample/dns-example.c 50*663afb9bSAndroid Build Coastguard Workersample_dns_example_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 51*663afb9bSAndroid Build Coastguard Workersample_hello_world_SOURCES = sample/hello-world.c 52*663afb9bSAndroid Build Coastguard Workersample_hello_world_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 53*663afb9bSAndroid Build Coastguard Workersample_http_server_SOURCES = sample/http-server.c 54*663afb9bSAndroid Build Coastguard Workersample_http_server_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 55*663afb9bSAndroid Build Coastguard Workersample_http_connect_SOURCES = sample/http-connect.c 56*663afb9bSAndroid Build Coastguard Workersample_http_connect_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la 57