Home | History | Annotate | Line # | Download | only in mandoc
Makefile revision 1.18
      1 # $NetBSD: Makefile,v 1.18 2019/03/11 17:59:28 christos Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 PROG=		mandoc
      6 
      7 SRCS=	\
      8 eqn_html.c \
      9 eqn_term.c \
     10 html.c \
     11 dba.c \
     12 dba_array.c \
     13 dba_read.c \
     14 dba_write.c \
     15 dbm.c \
     16 dbm_map.c \
     17 main.c \
     18 man_html.c \
     19 man_term.c \
     20 mandocdb.c \
     21 manpath.c \
     22 mansearch.c \
     23 mdoc_html.c \
     24 mdoc_markdown.c \
     25 mdoc_term.c \
     26 out.c \
     27 roff_html.c \
     28 roff_term.c \
     29 tbl_html.c \
     30 tbl_term.c \
     31 term.c \
     32 term_ascii.c \
     33 term_ps.c \
     34 term_tab.c \
     35 tree.c
     36 
     37 .ifndef HOSTPROG
     38 DPADD+= 	${MDOCMLLIB.mandoc} ${LIBZ}
     39 LDADD+= 	-L${MDOCMLOBJDIR.mandoc} -lmandoc -lz
     40 CPPFLAGS+=	-DUSE_WCHAR
     41 .else
     42 SRCS.libmandoc!=cd ${.PARSEDIR}/../../lib/libmandoc && ${MAKE} -v SRCS
     43 
     44 SRCS+=		${SRCS.libmandoc} compat_strtonum.c compat_reallocarray.c
     45 .endif
     46 
     47 COPTS.man_term.c+= -Wno-error=array-bounds
     48 
     49 .include <bsd.prog.mk>
     50