freebsd-nq/libexec/lukemftpd/Makefile
Ruslan Ermilov a9993ab438 - Added the NOPAM knob, for consistency with ${.CURDIR}/../ftpd.
- Unbreak -DNOPAM -DNOSHARED build by putting -lmd after -lopie.

(Static build with PAM remains broken.)
2004-02-04 10:05:21 +00:00

54 lines
1.1 KiB
Makefile

# @(#)Makefile 8.2 (Berkeley) 4/4/94
# $FreeBSD$
LUKEMFTPD= ${.CURDIR}/../../contrib/lukemftpd
.PATH: ${LUKEMFTPD}/src ${LUKEMFTPD}/libnetbsd
PROG= lukemftpd
MAN= lukemftpd.8 ftpd.conf.5 ftpusers.5
MLINKS= ftpusers.5 ftpchroot.5
SRCS= cmds.c conf.c ftpd.c ftpcmd.y popen.c
SRCS+= strsuftoll.c
WFORMAT= 0
CFLAGS+= -include nbsd2fbsd.h
CFLAGS+= -I${.CURDIR} -I${LUKEMFTPD} -I${LUKEMFTPD}/src
CFLAGS+= -I${.CURDIR}/../../lib/libc/stdtime
YFLAGS=
LDADD= -lcrypt -lutil
DPADD= ${LIBCRYPT} ${LIBUTIL}
LSDIR= ../../bin/ls
.PATH: ${.CURDIR}/${LSDIR}
SRCS+= ls-unmain.c cmp.c print.c util.c
CFLAGS+=-I${.CURDIR}/${LSDIR}
DPADD+= ${LIBM}
LDADD+= -lm
CFLAGS+= -DUSE_OPIE
DPADD+= ${LIBOPIE} ${LIBMD}
LDADD+= -lopie -lmd
.if !defined(NOPAM)
CFLAGS+= -DUSE_PAM
DPADD+= ${LIBPAM}
LDADD+= ${MINUSLPAM}
.endif
CLEANFILES+= ls-unmain.c
ls-unmain.c: ls.c
sed -e 's/^main(/ls_main(/g' -e 's,extern.h,${LSDIR}/extern.h,' \
${.ALLSRC} > ${.TARGET}
ftpd.o ftpcmd.o: version.h
lukemftpd.8: ftpd.8
ln -sf ${.ALLSRC} ${.TARGET}
CLEANFILES+= lukemftpd.8
.include <bsd.prog.mk>
${OBJS}: ${.CURDIR}/nbsd2fbsd.h