aboutsummaryrefslogtreecommitdiff
path: root/apps/nc/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'apps/nc/Makefile.am')
-rw-r--r--apps/nc/Makefile.am19
1 files changed, 14 insertions, 5 deletions
diff --git a/apps/nc/Makefile.am b/apps/nc/Makefile.am
index 916681b..89fe266 100644
--- a/apps/nc/Makefile.am
+++ b/apps/nc/Makefile.am
@@ -1,8 +1,6 @@
1include $(top_srcdir)/Makefile.am.common 1include $(top_srcdir)/Makefile.am.common
2 2
3if HOST_OPENBSD 3if BUILD_NC
4
5if HAVE_POLL
6 4
7noinst_PROGRAMS = nc 5noinst_PROGRAMS = nc
8 6
@@ -11,15 +9,26 @@ EXTRA_DIST = nc.1
11nc_LDADD = $(PLATFORM_LDADD) $(PROG_LDADD) 9nc_LDADD = $(PLATFORM_LDADD) $(PROG_LDADD)
12nc_LDADD += $(top_builddir)/tls/libtls.la 10nc_LDADD += $(top_builddir)/tls/libtls.la
13 11
12CPPFLAGS += -I$(top_srcdir)/apps/nc/compat
13
14nc_SOURCES = atomicio.c 14nc_SOURCES = atomicio.c
15nc_SOURCES += netcat.c 15nc_SOURCES += netcat.c
16nc_SOURCES += socks.c 16nc_SOURCES += socks.c
17noinst_HEADERS = atomicio.h 17noinst_HEADERS = atomicio.h
18noinst_HEADERS += compat/sys/socket.h
18 19
19if !HAVE_STRTONUM 20nc_SOURCES += compat/socket.c
20nc_SOURCES += strtonum.c 21
22if !HAVE_ACCEPT4
23nc_SOURCES += compat/accept4.c
21endif 24endif
22 25
26if !HAVE_READPASSPHRASE
27nc_SOURCES += compat/readpassphrase.c
28endif
29
30if !HAVE_STRTONUM
31nc_SOURCES += compat/strtonum.c
23endif 32endif
24 33
25endif 34endif