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