2013-10-08 18:05:29 +02:00
|
|
|
# $NetBSD: Makefile,v 1.6 2011/10/11 19:20:13 joerg Exp $
|
2011-09-26 18:19:29 +02:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
PROG= mandoc
|
|
|
|
|
2013-10-08 18:05:29 +02:00
|
|
|
SRCS= chars.c main.c out.c tree.c \
|
|
|
|
eqn_html.c eqn_term.c \
|
|
|
|
html.c man_html.c mdoc_html.c tbl_html.c \
|
|
|
|
man_term.c mdoc_term.c term.c term_ascii.c \
|
|
|
|
term_ps.c tbl_term.c
|
2011-09-26 18:19:29 +02:00
|
|
|
|
|
|
|
.ifndef HOSTPROG
|
2013-10-08 18:05:29 +02:00
|
|
|
DPADD+= ${MDOCMLLIB.mandoc}
|
|
|
|
LDADD+= -L${MDOCMLOBJDIR.mandoc} -lmandoc
|
2011-09-26 18:19:29 +02:00
|
|
|
.else
|
2013-10-08 18:05:29 +02:00
|
|
|
SRCS.libmandoc!=cd ${.PARSEDIR}/../../lib/libmandoc && ${MAKE} -V '$${SRCS}'
|
2011-09-26 18:19:29 +02:00
|
|
|
|
2013-10-08 18:05:29 +02:00
|
|
|
SRCS+= ${SRCS.libmandoc}
|
2011-09-26 18:19:29 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|