Home | History | Annotate | Line # | Download | only in mandoc
      1 # $NetBSD: Makefile,v 1.23 2025/09/19 05:09:10 mrg 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 term_tag.c \
     36 tree.c
     37 
     38 .ifndef HOSTPROG
     39 DPADD+= 	${MDOCMLLIB.mandoc} ${LIBZ}
     40 LDADD+= 	-L${MDOCMLOBJDIR.mandoc} -lmandoc -lz
     41 CPPFLAGS+=	-DUSE_WCHAR
     42 .else
     43 SRCS.libmandoc!=cd ${.PARSEDIR}/../../lib/libmandoc && ${MAKE} -v SRCS
     44 
     45 SRCS+=		${SRCS.libmandoc} compat_strtonum.c
     46 .endif
     47 
     48 COPTS.man_term.c+= -Wno-error=array-bounds
     49 
     50 COPTS.tbl_term.c+=	${CC_WNO_FORMAT_TRUNCATION}
     51 COPTS.tree.c+=		${CC_WNO_FORMAT_OVERFLOW}
     52 
     53 .include <bsd.prog.mk>
     54