aboutsummaryrefslogtreecommitdiff
path: root/libexec/tftpd/Makefile
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-01-06 04:27:07 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-01-06 04:27:07 +0000
commit4eb4663b0e9042ce0161d0ffffbbc85ffd799c08 (patch)
tree91bd32954fde61ee6efff0faa936c057a13fdcf2 /libexec/tftpd/Makefile
parentc02129e1cc85ab5c0ba3846b2d0edacc244be2dd (diff)
downloadsrc-4eb4663b0e9042ce0161d0ffffbbc85ffd799c08.tar.gz
src-4eb4663b0e9042ce0161d0ffffbbc85ffd799c08.zip
Conditionalize all code that uses tcpd.h behind `LIBWRAP` guard
This will allow the code to stand by itself without libwrap MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=311473
Diffstat (limited to 'libexec/tftpd/Makefile')
-rw-r--r--libexec/tftpd/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/libexec/tftpd/Makefile b/libexec/tftpd/Makefile
index 015458c093fe..6f74a29b79c3 100644
--- a/libexec/tftpd/Makefile
+++ b/libexec/tftpd/Makefile
@@ -1,12 +1,17 @@
# @(#)Makefile 8.1 (Berkeley) 6/4/93
# $FreeBSD$
+.include <src.opts.mk>
+
PROG= tftpd
MAN= tftpd.8
SRCS= tftp-file.c tftp-io.c tftp-options.c tftp-transfer.c tftp-utils.c
SRCS+= tftpd.c
WFORMAT=0
+.if ${MK_TCP_WRAPPERS} != "no"
+CFLAGS+= -DLIBWRAP
LIBADD= wrap
+.endif
.include <bsd.prog.mk>