xref: /libevent-2.1.12/sample/include.am (revision e35e02e6)
19e8cdf3dSSebastian Hahn# sample/include.am for libevent
26cdfeebeSNick Mathewson# Copyright 2000-2007 Niels Provos
36cdfeebeSNick Mathewson# Copyright 2007-2012 Niels Provos and Nick Mathewson
46cdfeebeSNick Mathewson#
56cdfeebeSNick Mathewson# See LICENSE for copying information.
66cdfeebeSNick Mathewson
76cdfeebeSNick MathewsonSAMPLES = \
86cdfeebeSNick Mathewson	sample/dns-example				\
96cdfeebeSNick Mathewson	sample/event-read-fifo			\
106cdfeebeSNick Mathewson	sample/hello-world				\
116cdfeebeSNick Mathewson	sample/http-server				\
121d34498eSAzat Khuzhin	sample/http-connect				\
136cdfeebeSNick Mathewson	sample/signal-test				\
146cdfeebeSNick Mathewson	sample/time-test
156cdfeebeSNick Mathewson
166cdfeebeSNick Mathewsonif OPENSSL
176cdfeebeSNick MathewsonSAMPLES += sample/le-proxy
186cdfeebeSNick Mathewsonsample_le_proxy_SOURCES = sample/le-proxy.c
19c2495265SCarlo Marcelo Arenas Belónsample_le_proxy_LDADD = libevent.la libevent_openssl.la $(OPENSSL_LIBS) $(OPENSSL_LIBADD)
20c2495265SCarlo Marcelo Arenas Belónsample_le_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(OPENSSL_INCS)
21be46c99bSCatalin Patulea
22be46c99bSCatalin PatuleaSAMPLES += sample/https-client
2364d9f161SPatrick Pelletiersample_https_client_SOURCES = \
2464d9f161SPatrick Pelletier	sample/https-client.c \
254db9da6bSPatrick Pelletier	sample/hostcheck.c \
2664d9f161SPatrick Pelletier	sample/openssl_hostname_validation.c
27c2495265SCarlo Marcelo Arenas Belónsample_https_client_LDADD = libevent.la libevent_openssl.la $(OPENSSL_LIBS) $(OPENSSL_LIBADD)
28*e35e02e6Syuangongjiif BUILD_WIN32
29*e35e02e6Syuangongjisample_https_client_LDADD += -lcrypt32
30*e35e02e6Syuangongjiendif
31c2495265SCarlo Marcelo Arenas Belónsample_https_client_CPPFLAGS = $(AM_CPPFLAGS) $(OPENSSL_INCS)
324db9da6bSPatrick Pelletiernoinst_HEADERS += \
334db9da6bSPatrick Pelletier	sample/hostcheck.h \
344db9da6bSPatrick Pelletier	sample/openssl_hostname_validation.h
356cdfeebeSNick Mathewsonendif
366cdfeebeSNick Mathewson
370c492b33SMike Frysingerif BUILD_SAMPLES
386cdfeebeSNick Mathewsonnoinst_PROGRAMS += $(SAMPLES)
390c492b33SMike Frysingerendif
406cdfeebeSNick Mathewson
416cdfeebeSNick Mathewson$(SAMPLES) : libevent.la
426cdfeebeSNick Mathewson
436cdfeebeSNick Mathewsonsample_event_read_fifo_SOURCES = sample/event-read-fifo.c
446cdfeebeSNick Mathewsonsample_event_read_fifo_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
456cdfeebeSNick Mathewsonsample_time_test_SOURCES = sample/time-test.c
466cdfeebeSNick Mathewsonsample_time_test_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
476cdfeebeSNick Mathewsonsample_signal_test_SOURCES = sample/signal-test.c
486cdfeebeSNick Mathewsonsample_signal_test_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
496cdfeebeSNick Mathewsonsample_dns_example_SOURCES = sample/dns-example.c
506cdfeebeSNick Mathewsonsample_dns_example_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
516cdfeebeSNick Mathewsonsample_hello_world_SOURCES = sample/hello-world.c
526cdfeebeSNick Mathewsonsample_hello_world_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
536cdfeebeSNick Mathewsonsample_http_server_SOURCES = sample/http-server.c
546cdfeebeSNick Mathewsonsample_http_server_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
551d34498eSAzat Khuzhinsample_http_connect_SOURCES = sample/http-connect.c
561d34498eSAzat Khuzhinsample_http_connect_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
57