Don't use AM_CONDITIONAL for CURSES.
[tinc] / src / Makefile.am
1 ## Produce this file with automake to get Makefile.in
2
3 sbin_PROGRAMS = tincd tincctl
4
5 EXTRA_DIST = linux bsd solaris cygwin mingw raw_socket uml_socket openssl gcrypt
6
7 tincd_SOURCES = \
8         utils.c getopt.c getopt1.c list.c splay_tree.c dropin.c fake-getaddrinfo.c fake-getnameinfo.c \
9         buffer.c cipher.c conf.c connection.c control.c crypto.c digest.c edge.c graph.c logger.c meta.c net.c net_packet.c net_setup.c \
10         net_socket.c netutl.c node.c process.c protocol.c protocol_auth.c protocol_edge.c protocol_misc.c \
11         protocol_key.c protocol_subnet.c route.c rsa.c subnet.c tincd.c
12
13 tincctl_SOURCES = \
14         utils.c getopt.c getopt1.c dropin.c \
15         list.c tincctl.c rsagen.c top.c
16
17 if TUNEMU
18 tincd_SOURCES += bsd/tunemu.c
19 endif
20
21 tincctl_LDADD = $(CURSES_LIBS)
22
23 nodist_tincd_SOURCES = device.c
24
25 DEFAULT_INCLUDES =
26
27 INCLUDES = @INCLUDES@ -I$(top_builddir)
28
29 noinst_HEADERS = \
30         xalloc.h utils.h getopt.h list.h splay_tree.h dropin.h fake-getaddrinfo.h fake-getnameinfo.h fake-gai-errnos.h ipv6.h ipv4.h ethernet.h \
31         buffer.h cipher.h conf.h connection.h control.h control_common.h crypto.h device.h digest.h edge.h graph.h logger.h meta.h net.h netutl.h node.h process.h \
32         protocol.h route.h rsa.h rsagen.h subnet.h top.h bsd/tunemu.h
33
34 LIBS = @LIBS@ @LIBGCRYPT_LIBS@
35
36 if TUNEMU
37 LIBS += -lpcap
38 endif
39
40 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"
41
42 dist-hook:
43         rm -f `find . -type l`