summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index f9e81a0..2c5ed18 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,7 +2,11 @@ bin_PROGRAMS = pjctl
pjctl_SOURCES = pjctl.c ext/gnulib/md5.c ext/gnulib/md5.h param.h
-pjctl_LDADD = $(crypto_LIBS)
-AM_CPPFLAGS = $(crypto_CFLAGS)
+if HAVE_WINDOWS
+# Create an executable that doesnt open a console
+bin_PROGRAMS += pjctl-no-console
+pjctl_no_console_SOURCES = pjctl.c ext/gnulib/md5.c ext/gnulib/md5.h
+pjctl_no_console_LDFLAGS = -mwindows
+endif
AM_CFLAGS = $(GCC_CFLAGS)