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
|
|
|
|
|
|
|
noinst_PROGRAMS = nc
|
2015-09-12 14:48:06 +02:00
|
|
|
|
2015-09-13 14:23:04 +02:00
|
|
|
EXTRA_DIST = nc.1
|
|
|
|
|
2015-09-12 14:48:06 +02:00
|
|
|
nc_LDADD = $(PLATFORM_LDADD) $(PROG_LDADD)
|
2015-09-14 02:15:34 +02:00
|
|
|
nc_LDADD += $(top_builddir)/crypto/libcrypto.la
|
|
|
|
nc_LDADD += $(top_builddir)/ssl/libssl.la
|
2015-09-12 14:48:06 +02:00
|
|
|
nc_LDADD += $(top_builddir)/tls/libtls.la
|
|
|
|
|
2015-09-13 18:56:41 +02:00
|
|
|
CPPFLAGS += -I$(top_srcdir)/apps/nc/compat
|
|
|
|
|
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
|