From: Christian Grothoff Date: Mon, 27 Jun 2011 20:22:38 +0000 (+0000) Subject: moving NAT client/server to NAT library X-Git-Tag: initial-import-from-subversion-38251~18027 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=20d956977c3ca2f42830c07bebc37ec67a7d39a5;p=oweals%2Fgnunet.git moving NAT client/server to NAT library --- diff --git a/src/nat/Makefile.am b/src/nat/Makefile.am index 2f30d3185..a60b4b5f3 100644 --- a/src/nat/Makefile.am +++ b/src/nat/Makefile.am @@ -1,5 +1,34 @@ INCLUDES = -I$(top_srcdir)/src/include +if MINGW + WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols + NATBIN = gnunet-nat-server gnunet-nat-client + NATSERVER = gnunet-nat-server-windows.c + NATCLIENT = gnunet-nat-client-windows.c +else + NATSERVER = gnunet-nat-server.c + NATCLIENT = gnunet-nat-client.c +endif + +if LINUX +NATBIN = gnunet-nat-server gnunet-nat-client +install-exec-hook: + chown root:root $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-transport-wlan-helper || true + chmod u+s $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-transport-wlan-helper || true +else +install-exec-hook: +endif + +bin_PROGRAMS = \ + $(NATBIN) + +gnunet_nat_server_SOURCES = \ + $(NATSERVER) + +gnunet_nat_client_SOURCES = \ + $(NATCLIENT) + + if MINGW WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols endif