last XDG change: use GNUNET_RUNTIME_DIR instead of /tmp for UNIXPATHs by default
[oweals/gnunet.git] / src / exit / Makefile.am
index be3a66a34c0363746621017ec2fe21d1ee61b1f5..3d221f0c603a5094dada1b4058208b0bb52c9fbb 100644 (file)
@@ -1,7 +1,8 @@
-INCLUDES = -I$(top_srcdir)/src/include
+AM_CPPFLAGS = -I$(top_srcdir)/src/include
 
 if MINGW
-  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
+  WINFLAGS = -Wl,--no-undefined,--export-all-symbols
+  EXITBIN = gnunet-helper-exit
 endif
 
 if USE_COVERAGE
@@ -30,14 +31,25 @@ libexec_PROGRAMS = \
   gnunet-daemon-exit \
   $(EXITBIN) 
 
-gnunet_helper_exit_SOURCES = \
- gnunet-helper-exit.c
+if MINGW
+  gnunet_helper_exit_LDFLAGS = \
+    -no-undefined -Wl,--export-all-symbols 
+
+  gnunet_helper_exit_LDADD = \
+    -lsetupapi -lnewdev -lshell32 -liconv -lstdc++ \
+    -lcomdlg32 -lgdi32 -liphlpapi
 
+  gnunet_helper_exit_SOURCES = \
+    gnunet-helper-exit-windows.c
+else
+  gnunet_helper_exit_SOURCES = \
+   gnunet-helper-exit.c
+endif
 gnunet_daemon_exit_SOURCES = \
  gnunet-daemon-exit.c exit.h 
 gnunet_daemon_exit_LDADD = \
   $(top_builddir)/src/dns/libgnunetdnsstub.la \
-  $(top_builddir)/src/core/libgnunetcore.la \
+  $(top_builddir)/src/dht/libgnunetdht.la \
   $(top_builddir)/src/statistics/libgnunetstatistics.la \
   $(top_builddir)/src/tun/libgnunettun.la \
   $(top_builddir)/src/util/libgnunetutil.la \