Reduce white space diffs between FreeBSD.
[dragonfly.git] / libexec / lukemftpd / Makefile
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 $
3 # $DragonFly: src/libexec/lukemftpd/Attic/Makefile,v 1.3 2004/01/31 06:56:40 dillon Exp $
4
5 LUKEMFTPD=      ${.CURDIR}/../../contrib/lukemftpd
6 .PATH: ${LUKEMFTPD}/src
7
8 PROG=   lukemftpd
9 MAN=    lukemftpd.8 ftpd.conf.5 ftpusers.5
10 MLINKS= ftpusers.5 ftpchroot.5
11 SRCS=   cmds.c conf.c ftpd.c ftpcmd.y popen.c
12
13 WFORMAT= 0
14 CFLAGS+= -I${.CURDIR} -I${LUKEMFTPD} -I${LUKEMFTPD}/src
15 YFLAGS=
16
17 LDADD=  -lmd -lcrypt -lutil
18 DPADD=  ${LIBMD} ${LIBCRYPT} ${LIBUTIL}
19
20 # XXX Kluge! Conversation mechanism needs to be fixed.
21 LDADD+= -lopie
22 DPADD+= ${LIBOPIE}
23
24 LSDIR=  ../../bin/ls
25 .PATH: ${.CURDIR}/${LSDIR}
26 SRCS+=  ls-unmain.c cmp.c print.c util.c
27 CFLAGS+=-I${.CURDIR}/${LSDIR}
28 DPADD+= ${LIBM}
29 LDADD+= -lm
30
31 CLEANFILES+=    ls-unmain.c
32 ls-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)
37 CFLAGS+= -DUSE_PAM
38 DPADD+= ${LIBPAM}
39 LDADD+= ${MINUSLPAM}
40 .endif
41
42 ftpd.o ftpcmd.o: version.h
43
44 lukemftpd.8: ftpd.8
45         ln -sf ${.ALLSRC} ${.TARGET}
46
47 CLEANFILES+= lukemftpd.8
48
49 .include <bsd.prog.mk>