2002-02-27 18:35:26 +00:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 4/4/94
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
MAINTAINER= obrien
|
|
|
|
|
|
|
|
LUKEMFTPD= ${.CURDIR}/../../contrib/lukemftpd
|
2003-01-06 03:03:53 +00:00
|
|
|
.PATH: ${LUKEMFTPD}/src ${LUKEMFTPD}/libnetbsd
|
2002-02-27 18:35:26 +00:00
|
|
|
|
|
|
|
PROG= lukemftpd
|
|
|
|
MAN= lukemftpd.8 ftpd.conf.5 ftpusers.5
|
2002-08-30 06:50:08 +00:00
|
|
|
MLINKS= ftpusers.5 ftpchroot.5
|
2002-02-27 18:35:26 +00:00
|
|
|
SRCS= cmds.c conf.c ftpd.c ftpcmd.y popen.c
|
2003-01-06 03:03:53 +00:00
|
|
|
SRCS+= strsuftoll.c
|
2002-02-27 18:35:26 +00:00
|
|
|
|
|
|
|
WFORMAT= 0
|
2003-01-06 03:03:53 +00:00
|
|
|
CFLAGS+= -include nbsd2fbsd.h
|
2002-04-08 21:22:58 +00:00
|
|
|
CFLAGS+= -I${.CURDIR} -I${LUKEMFTPD} -I${LUKEMFTPD}/src
|
2003-01-06 03:03:53 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../..//lib/libc/stdtime
|
2002-02-27 18:35:26 +00:00
|
|
|
YFLAGS=
|
|
|
|
|
2002-11-12 07:41:59 +00:00
|
|
|
LDADD= -lcrypt -lutil
|
|
|
|
DPADD= ${LIBCRYPT} ${LIBUTIL}
|
2002-02-27 18:35:26 +00:00
|
|
|
|
|
|
|
LSDIR= ../../bin/ls
|
|
|
|
.PATH: ${.CURDIR}/${LSDIR}
|
2002-10-24 04:55:25 +00:00
|
|
|
SRCS+= ls-unmain.c cmp.c print.c util.c
|
2002-02-27 18:35:26 +00:00
|
|
|
CFLAGS+=-I${.CURDIR}/${LSDIR}
|
|
|
|
DPADD+= ${LIBM}
|
|
|
|
LDADD+= -lm
|
|
|
|
|
2003-02-02 21:11:15 +00:00
|
|
|
CFLAGS+= -DUSE_OPIE -DUSE_PAM
|
|
|
|
DPADD+= ${LIBOPIE} ${LIBPAM}
|
|
|
|
LDADD+= -lopie -lpam
|
|
|
|
|
2002-02-27 18:35:26 +00:00
|
|
|
CLEANFILES+= ls-unmain.c
|
|
|
|
ls-unmain.c: ls.c
|
2002-04-08 21:22:58 +00:00
|
|
|
sed -e 's/^main(/ls_main(/g' -e 's,extern.h,${LSDIR}/extern.h,' \
|
|
|
|
${.ALLSRC} > ${.TARGET}
|
2002-02-27 18:35:26 +00:00
|
|
|
|
|
|
|
ftpd.o ftpcmd.o: version.h
|
|
|
|
|
|
|
|
lukemftpd.8: ftpd.8
|
|
|
|
ln -sf ${.ALLSRC} ${.TARGET}
|
|
|
|
|
2002-05-13 15:21:51 +00:00
|
|
|
CLEANFILES+= lukemftpd.8
|
|
|
|
|
2002-02-27 18:35:26 +00:00
|
|
|
.include <bsd.prog.mk>
|