Merge from vendor branch BINUTILS:
[dragonfly.git] / libexec / lukemftpd / Makefile
CommitLineData
984263bc
MD
1# @(#)Makefile 8.2 (Berkeley) 4/4/94
2# $FreeBSD: src/libexec/lukemftpd/Makefile,v 1.5.2.2 2002/08/30 06:50:58 obrien Exp $
062db326 3# $DragonFly: src/libexec/lukemftpd/Attic/Makefile,v 1.4 2005/07/07 11:49:55 corecode Exp $
984263bc
MD
4
5LUKEMFTPD= ${.CURDIR}/../../contrib/lukemftpd
6.PATH: ${LUKEMFTPD}/src
7
8PROG= lukemftpd
9MAN= lukemftpd.8 ftpd.conf.5 ftpusers.5
10MLINKS= ftpusers.5 ftpchroot.5
11SRCS= cmds.c conf.c ftpd.c ftpcmd.y popen.c
12
13WFORMAT= 0
14CFLAGS+= -I${.CURDIR} -I${LUKEMFTPD} -I${LUKEMFTPD}/src
15YFLAGS=
16
17LDADD= -lmd -lcrypt -lutil
18DPADD= ${LIBMD} ${LIBCRYPT} ${LIBUTIL}
19
20# XXX Kluge! Conversation mechanism needs to be fixed.
21LDADD+= -lopie
22DPADD+= ${LIBOPIE}
23
24LSDIR= ../../bin/ls
25.PATH: ${.CURDIR}/${LSDIR}
26SRCS+= ls-unmain.c cmp.c print.c util.c
27CFLAGS+=-I${.CURDIR}/${LSDIR}
28DPADD+= ${LIBM}
29LDADD+= -lm
30
31CLEANFILES+= ls-unmain.c
32ls-unmain.c: ls.c
33 sed -e 's/^main(/ls_main(/g' -e 's,extern.h,${LSDIR}/extern.h,' \
34 ${.ALLSRC} > ${.TARGET}
35
36.if !defined(NOPAM)
37CFLAGS+= -DUSE_PAM
38DPADD+= ${LIBPAM}
39LDADD+= ${MINUSLPAM}
40.endif
41
42ftpd.o ftpcmd.o: version.h
43
44lukemftpd.8: ftpd.8
062db326 45 ${LN} -sf ${.ALLSRC} ${.TARGET}
984263bc
MD
46
47CLEANFILES+= lukemftpd.8
48
49.include <bsd.prog.mk>