X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2FMakefile.am;h=11f701cc8ccf2e9f0278407f304579036a6d253d;hp=ebd52abca6b24fe5050b9365682eb4890f7630e5;hb=4fe3688bc68f77686d2061ee9240509e7158441c;hpb=776dbf88df1911ec379c2fece0089fd2f5c71021 diff --git a/src/Makefile.am b/src/Makefile.am index ebd52abc..11f701cc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -17,8 +17,6 @@ tincd_SOURCES = \ fake-gai-errnos.h \ fake-getaddrinfo.c fake-getaddrinfo.h \ fake-getnameinfo.c fake-getnameinfo.h \ - getopt.c getopt.h \ - getopt1.c \ graph.c graph.h \ ipv4.h \ ipv6.h \ @@ -46,8 +44,13 @@ tincd_SOURCES = \ subnet.c subnet.h \ tincd.c \ utils.c utils.h \ - xalloc.h \ - xmalloc.c + xalloc.h + +if !GETOPT +tincd_SOURCES += \ + getopt.c getopt.h \ + getopt1.c +endif if LINUX tincd_SOURCES += linux/device.c @@ -84,4 +87,4 @@ if TUNEMU LIBS += -lpcap endif -AM_CPPFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" +AM_CPPFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -I $(abs_top_builddir)/