libreSSL/apps/nc/Makefile.am

50 lines
926 B
Makefile
Raw Normal View History

include $(top_srcdir)/Makefile.am.common
2015-09-13 18:56:41 +02:00
if BUILD_NC
if ENABLE_NC
bin_PROGRAMS = nc
else
noinst_PROGRAMS = nc
endif
2015-09-13 14:23:04 +02:00
EXTRA_DIST = nc.1
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
nc_LDADD += $(top_builddir)/tls/libtls.la
AM_CPPFLAGS += -I$(top_srcdir)/apps/nc/compat
if OPENSSLDIR_DEFINED
AM_CPPFLAGS += -DDEFAULT_CA_FILE=\"@OPENSSLDIR@/cert.pem\"
else
AM_CPPFLAGS += -DDEFAULT_CA_FILE=\"$(sysconfdir)/ssl/cert.pem\"
endif
2015-09-13 18:56:41 +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-13 18:56:41 +02:00
nc_SOURCES += compat/socket.c
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
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
endif
2015-09-12 17:51:11 +02:00
endif