2015-09-12 14:48:06 +02:00
|
|
|
include $(top_srcdir)/Makefile.am.common
|
|
|
|
|
2015-09-13 18:56:41 +02:00
|
|
|
if BUILD_NC
|
2015-09-12 16:50:44 +02:00
|
|
|
|
2015-12-07 15:14:51 +01:00
|
|
|
if ENABLE_NC
|
|
|
|
bin_PROGRAMS = nc
|
2017-04-12 15:18:20 +02:00
|
|
|
dist_man_MANS = nc.1
|
2015-12-07 15:14:51 +01:00
|
|
|
else
|
2015-09-12 16:50:44 +02:00
|
|
|
noinst_PROGRAMS = nc
|
2015-12-07 15:14:51 +01:00
|
|
|
endif
|
2015-09-12 14:48:06 +02:00
|
|
|
|
2015-09-13 14:23:04 +02:00
|
|
|
EXTRA_DIST = nc.1
|
2016-04-07 08:08:12 +02:00
|
|
|
EXTRA_DIST += CMakeLists.txt
|
2015-09-13 14:23:04 +02:00
|
|
|
|
2017-01-09 09:22:26 +01:00
|
|
|
nc_LDADD = $(abs_top_builddir)/crypto/libcrypto.la
|
2016-04-21 07:49:39 +02:00
|
|
|
nc_LDADD += $(abs_top_builddir)/ssl/libssl.la
|
|
|
|
nc_LDADD += $(abs_top_builddir)/tls/libtls.la
|
2017-01-09 09:22:26 +01:00
|
|
|
nc_LDADD += $(PLATFORM_LDADD) $(PROG_LDADD)
|
2015-09-12 14:48:06 +02:00
|
|
|
|
2015-10-12 01:45:25 +02:00
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/apps/nc/compat
|
2015-09-13 18:56:41 +02:00
|
|
|
|
2015-09-12 14:48:06 +02:00
|
|
|
nc_SOURCES = atomicio.c
|
|
|
|
nc_SOURCES += netcat.c
|
|
|
|
nc_SOURCES += socks.c
|
|
|
|
noinst_HEADERS = atomicio.h
|
2015-09-13 18:56:41 +02:00
|
|
|
noinst_HEADERS += compat/sys/socket.h
|
2015-09-12 16:50:44 +02:00
|
|
|
|
2015-09-13 18:56:41 +02:00
|
|
|
nc_SOURCES += compat/socket.c
|
|
|
|
|
2015-10-01 14:40:26 +02:00
|
|
|
if !HAVE_B64_NTOP
|
|
|
|
nc_SOURCES += compat/base64.c
|
|
|
|
endif
|
|
|
|
|
2015-09-13 18:56:41 +02:00
|
|
|
if !HAVE_ACCEPT4
|
|
|
|
nc_SOURCES += compat/accept4.c
|
2015-09-12 16:50:44 +02:00
|
|
|
endif
|
|
|
|
|
2015-09-13 18:56:41 +02:00
|
|
|
if !HAVE_READPASSPHRASE
|
|
|
|
nc_SOURCES += compat/readpassphrase.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if !HAVE_STRTONUM
|
|
|
|
nc_SOURCES += compat/strtonum.c
|
2015-09-12 16:50:44 +02:00
|
|
|
endif
|
2015-09-12 17:51:11 +02:00
|
|
|
|
|
|
|
endif
|