Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / mdocml / bin / mandoc / Makefile
blob111cdc033d6ae32445b7392843ee9d65c47254d8
1 # $NetBSD$
3 .include <bsd.own.mk>
5 PROG= mandoc
7 SRCS= main.c mdoc_term.c chars.c term.c tree.c compat.c \
8 man_term.c html.c mdoc_html.c man_html.c out.c
10 .ifndef HOSTPROG
11 DPADD+= ${MDOCMLLIB.man} ${MDOCMLLIB.mdoc}
12 LDADD+= -L${MDOCMLOBJDIR.man} -lman -L${MDOCMLOBJDIR.mdoc} -lmdoc
13 .else
14 SRCS.libman!= cd ${.PARSEDIR}/../../lib/libman && ${MAKE} -V '$${SRCS}'
15 SRCS.libmdoc!= cd ${.PARSEDIR}/../../lib/libmdoc && ${MAKE} -V '$${SRCS}'
17 SRCS+= ${SRCS.libman} ${SRCS.libmdoc:Nmandoc.c}
18 .endif
20 .include <bsd.prog.mk>