1 1.1 joerg # $NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $ 2 1.1 joerg 3 1.1 joerg .include <bsd.own.mk> 4 1.1 joerg 5 1.1 joerg PROG= mandoc 6 1.1 joerg 7 1.1 joerg SRCS= main.c mdoc_term.c chars.c term.c tree.c compat.c \ 8 1.1 joerg man_term.c html.c mdoc_html.c man_html.c out.c 9 1.1 joerg 10 1.1 joerg .ifndef HOSTPROG 11 1.1 joerg DPADD+= ${MDOCMLLIB.man} ${MDOCMLLIB.mdoc} 12 1.1 joerg LDADD+= -L${MDOCMLOBJDIR.man} -lman -L${MDOCMLOBJDIR.mdoc} -lmdoc 13 1.1 joerg .else 14 1.1 joerg SRCS.libman!= cd ${.PARSEDIR}/../../lib/libman && ${MAKE} -V '$${SRCS}' 15 1.1 joerg SRCS.libmdoc!= cd ${.PARSEDIR}/../../lib/libmdoc && ${MAKE} -V '$${SRCS}' 16 1.1 joerg 17 1.1 joerg SRCS+= ${SRCS.libman} ${SRCS.libmdoc:Nmandoc.c} 18 1.1 joerg .endif 19 1.1 joerg 20 1.1 joerg .include <bsd.prog.mk> 21