summaryrefslogtreecommitdiff
path: root/libexec/ftpd/Makefile
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1995-12-16 22:20:39 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1995-12-16 22:20:39 +0000
commit14a9e0b27dc4374bb21711ddfd2c319471498493 (patch)
tree3f9b41aa80386aa9df94540971211fe446c61555 /libexec/ftpd/Makefile
parentec46b838472184755608a409e432009edbfb979a (diff)
Make it possible to build without SKEY support
Add support for building with kerberosIV
Diffstat (limited to 'libexec/ftpd/Makefile')
-rw-r--r--libexec/ftpd/Makefile19
1 files changed, 14 insertions, 5 deletions
diff --git a/libexec/ftpd/Makefile b/libexec/ftpd/Makefile
index 3b0e1ca2044..8418ba7553a 100644
--- a/libexec/ftpd/Makefile
+++ b/libexec/ftpd/Makefile
@@ -2,20 +2,29 @@
# @(#)Makefile 8.2 (Berkeley) 4/4/94
PROG= ftpd
-CFLAGS+=-DHASSETPROCTITLE -DSKEY
+CFLAGS+=-DHASSETPROCTITLE
SRCS= ftpd.c ftpcmd.c logwtmp.c popen.c
MAN= ftpd.8
CLEANFILES+=ftpcmd.c y.tab.h
-.PATH: ${.CURDIR}/../../usr.bin/ftp ${.CURDIR}/../../usr.bin/login
+.PATH: ${.CURDIR}/../../usr.bin/ftp
-LDADD+= -lcrypt -lskey
-DPADD+= ${LIBCRYPT} ${LIBSKEY}
+LDADD+= -lcrypt
+DPADD+= ${LIBCRYPT}
+
+.include <bsd.own.mk>
+
+.if defined(SKEY)
+CFLAGS+=-DSKEY
+LDADD+= -lskey
+DPADD+= ${LIBSKEY}
+.endif
.if defined(KERBEROS)
SRCS+= klogin.c
+.PATH: ${.CURDIR}/../../usr.bin/login
CFLAGS+= -DKERBEROS
LDADD+= -lkrb -ldes
-DPADD+= ${LIBKRB} ${LIBDES}
+DPADD+= ${LIBKRB} ${LIBKRB}
.endif
.include <bsd.prog.mk>