X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=blobdiff_plain;f=src%2FMakefile.am;h=cd44eb64adce99dc2a493613ff1670450c237962;hp=863e660bf2e0feb365cbea3049b1c407372666ac;hb=c373de2e9812700c0568640727ad917b6fc7d758;hpb=e1e590fe9a8c5c767933c68979418911f36d3a89 diff --git a/src/Makefile.am b/src/Makefile.am index 863e660..cd44eb6 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,19 +1,45 @@ ## Produce this file with automake to get Makefile.in -sbin_PROGRAMS = tincd genauth +sbin_PROGRAMS = tincd -genauth_SOURCES = genauth.c -tincd_SOURCES = conf.c encr.c net.c netutl.c protocol.c tincd.c +EXTRA_DIST = linux/device.c bsd/device.c solaris/device.c cygwin/device.c mingw/device.c mingw/common.h -INCLUDES = -I$(top_builddir) -I$(top_srcdir)/cipher -I$(top_srcdir)/lib +tincd_SOURCES = conf.c connection.c edge.c event.c graph.c logger.c meta.c net.c net_packet.c net_setup.c \ + net_socket.c netutl.c node.c process.c protocol.c protocol_auth.c protocol_edge.c protocol_misc.c \ + protocol_key.c protocol_subnet.c route.c subnet.c tincd.c \ + dummy_device.c raw_socket_device.c multicast_device.c + +if UML +tincd_SOURCES += uml_device.c +endif -noinst_HEADERS = conf.h encr.h net.h netutl.h protocol.h +if VDE +tincd_SOURCES += vde_device.c +endif + +if TUNEMU +tincd_SOURCES += bsd/tunemu.c +endif + +nodist_tincd_SOURCES = device.c + +DEFAULT_INCLUDES = + +INCLUDES = @INCLUDES@ -I$(top_builddir) -I$(top_srcdir)/lib + +noinst_HEADERS = conf.h connection.h device.h edge.h event.h graph.h logger.h meta.h net.h netutl.h node.h process.h \ + protocol.h route.h subnet.h bsd/tunemu.h LIBS = @LIBS@ -tincd_LDADD = $(top_builddir)/cipher/libcipher.la \ - $(top_builddir)/lib/libvpn.a -ldl +if TUNEMU +LIBS += -lpcap +endif + +tincd_LDADD = \ + $(top_builddir)/lib/libvpn.a -genauth_LDADD = $(top_builddir)/lib/libvpn.a +AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -CFLAGS = @CFLAGS@ -DPKGLIBDIR=$(pkglibdir) -DCONFDIR=\"@sysconfdir@\" +dist-hook: + rm -f `find . -type l`