1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
  14 # Copyright 2017 Nexenta Systems, Inc.
  15 # Copyright 2018, Joyent, Inc.
  16 #
  17 
  18 PROG=           mandoc
  19 
  20 OBJS=           att.o           \
  21                 chars.o         \
  22                 dba.o           \
  23                 dba_array.o     \
  24                 dba_read.o      \
  25                 dba_write.o     \
  26                 dbm.o           \
  27                 dbm_map.o       \
  28                 eqn.o           \
  29                 eqn_html.o      \
  30                 eqn_term.o      \
  31                 html.o          \
  32                 lib.o           \
  33                 main.o          \
  34                 man.o           \
  35                 manpath.o       \
  36                 man_html.o      \
  37                 man_macro.o     \
  38                 man_term.o      \
  39                 man_validate.o  \
  40                 mandoc.o        \
  41                 mandoc_aux.o    \
  42                 mandoc_ohash.o  \
  43                 mandoc_xr.o     \
  44                 mandocdb.o      \
  45                 mansearch.o     \
  46                 mdoc.o          \
  47                 mdoc_argv.o     \
  48                 mdoc_html.o     \
  49                 mdoc_macro.o    \
  50                 mdoc_man.o      \
  51                 mdoc_markdown.o \
  52                 mdoc_state.o    \
  53                 mdoc_term.o     \
  54                 mdoc_validate.o \
  55                 msec.o          \
  56                 out.o           \
  57                 read.o          \
  58                 roff.o          \
  59                 roff_html.o     \
  60                 roff_term.o     \
  61                 roff_validate.o \
  62                 preconv.o       \
  63                 st.o            \
  64                 tag.o           \
  65                 tbl.o           \
  66                 tbl_data.o      \
  67                 tbl_html.o      \
  68                 tbl_layout.o    \
  69                 tbl_opts.o      \
  70                 tbl_term.o      \
  71                 term.o          \
  72                 term_ascii.o    \
  73                 term_ps.o       \
  74                 term_tab.o      \
  75                 tree.o
  76 
  77 OBJS +=         compat_ohash.o
  78 
  79 # XXX gcc 4.4.4 false positive
  80 roff.o :=       CERRWARN += -_gcc=-Wno-uninitialized
  81 
  82 # not linted
  83 SMATCH=off
  84 
  85 CFLAGS +=       $(CC_VERBOSE)
  86 CSTD=           $(CSTD_GNU99)
  87 
  88 CPPFLAGS +=     -DOSNAME="\"illumos\"" -D_FILE_OFFSET_BITS=64
  89 
  90 LDLIBS +=       -lz