-# CFLAGS += -DOSNAME="\"OpenBSD 4.5\""
-
-LINTFLAGS += $(VFLAGS)
-
-ROFFLNS = roff.ln tbl.ln tbl_opts.ln tbl_layout.ln
-
-ROFFSRCS = roff.c tbl.c tbl_opts.c tbl_layout.c
-
-ROFFOBJS = roff.o tbl.o tbl_opts.o tbl_layout.o
-
-MANDOCLNS = mandoc.ln
-
-MANDOCSRCS = mandoc.c
-
-MANDOCOBJS = mandoc.o
-
-MDOCLNS = mdoc_macro.ln mdoc.ln mdoc_hash.ln mdoc_strings.ln \
- mdoc_argv.ln mdoc_validate.ln \
- lib.ln att.ln arch.ln vol.ln msec.ln st.ln
-
-MDOCOBJS = mdoc_macro.o mdoc.o mdoc_hash.o mdoc_strings.o \
- mdoc_argv.o mdoc_validate.o lib.o att.o \
- arch.o vol.o msec.o st.o
-
-MDOCSRCS = mdoc_macro.c mdoc.c mdoc_hash.c mdoc_strings.c \
- mdoc_argv.c mdoc_validate.c lib.c att.c \
- arch.c vol.c msec.c st.c
-
-MANLNS = man_macro.ln man.ln man_hash.ln man_validate.ln \
- man_argv.ln
-
-MANOBJS = man_macro.o man.o man_hash.o man_validate.o \
- man_argv.o
-MANSRCS = man_macro.c man.c man_hash.c man_validate.c \
- man_argv.c
-
-MAINLNS = main.ln mdoc_term.ln chars.ln term.ln tree.ln \
- compat.ln man_term.ln html.ln mdoc_html.ln \
- man_html.ln out.ln term_ps.ln term_ascii.ln
-
-MAINOBJS = main.o mdoc_term.o chars.o term.o tree.o compat.o \
- man_term.o html.o mdoc_html.o man_html.o out.o \
- term_ps.o term_ascii.o
-
-MAINSRCS = main.c mdoc_term.c chars.c term.c tree.c compat.c \
- man_term.c html.c mdoc_html.c man_html.c out.c \
- term_ps.c term_ascii.c
-
-LLNS = llib-llibmdoc.ln llib-llibman.ln llib-lmandoc.ln \
- llib-llibmandoc.ln llib-llibroff.ln
-
-LNS = $(MAINLNS) $(MDOCLNS) $(MANLNS) \
- $(MANDOCLNS) $(ROFFLNS)
-
-LIBS = libmdoc.a libman.a libmandoc.a libroff.a
-
-OBJS = $(MDOCOBJS) $(MAINOBJS) $(MANOBJS) \
- $(MANDOCOBJS) $(ROFFOBJS)
-
-SRCS = $(MDOCSRCS) $(MAINSRCS) $(MANSRCS) \
- $(MANDOCSRCS) $(ROFFSRCS)
-
-DATAS = arch.in att.in lib.in msec.in st.in \
- vol.in chars.in
-
-HEADS = mdoc.h libmdoc.h man.h libman.h term.h \
- libmandoc.h html.h chars.h out.h main.h roff.h \
- mandoc.h libroff.h
-
-GSGMLS = mandoc.1.sgml mdoc.3.sgml mdoc.7.sgml \
- mandoc_char.7.sgml man.7.sgml man.3.sgml roff.7.sgml \
- roff.3.sgml
-
-SGMLS = index.sgml
-
-XHTMLS = mandoc.1.xhtml mdoc.3.xhtml \
- man.3.xhtml mdoc.7.xhtml man.7.xhtml mandoc_char.7.xhtml \
- roff.7.xhtml roff.3.xhtml
-
-HTMLS = ChangeLog.html index.html man.h.html mdoc.h.html \
- mandoc.h.html roff.h.html mandoc.1.html mdoc.3.html \
- man.3.html mdoc.7.html man.7.html mandoc_char.7.html \
- roff.7.html roff.3.html
-
-PSS = mandoc.1.ps mdoc.3.ps man.3.ps mdoc.7.ps man.7.ps \
- mandoc_char.7.ps roff.7.ps roff.3.ps
-
-PDFS = mandoc.1.pdf mdoc.3.pdf man.3.pdf mdoc.7.pdf man.7.pdf \
- mandoc_char.7.pdf roff.7.pdf roff.3.pdf
-
-XSLS = ChangeLog.xsl
-
-TEXTS = mandoc.1.txt mdoc.3.txt man.3.txt mdoc.7.txt man.7.txt \
- mandoc_char.7.txt ChangeLog.txt \
- roff.7.txt roff.3.txt
-
-EXAMPLES = example.style.css
-
-XMLS = ChangeLog.xml
-
-STATICS = index.css style.css external.png
-
-MD5S = mdocml-$(VERSION).md5
-
-TARGZS = mdocml-$(VERSION).tar.gz
-
-MANS = mandoc.1 mdoc.3 mdoc.7 mandoc_char.7 man.7 \
- man.3 roff.7 roff.3
-
-BINS = mandoc
-
-TESTS = test-strlcat.c test-strlcpy.c
-
-CONFIGS = config.h.pre config.h.post
-
-DOCLEAN = $(BINS) $(LNS) $(LLNS) $(LIBS) $(OBJS) $(HTMLS) \
- $(TARGZS) tags $(MD5S) $(XMLS) $(TEXTS) $(GSGMLS) \
- config.h config.log $(PSS) $(PDFS) $(XHTMLS)
-
-DOINSTALL = $(SRCS) $(HEADS) Makefile $(MANS) $(SGMLS) $(STATICS) \
- $(DATAS) $(XSLS) $(EXAMPLES) $(TESTS) $(CONFIGS)
-
-all: $(BINS)
-
-lint: $(LLNS)
+# CFLAGS += -DOSNAME="\"OpenBSD 4.5\""
+
+VERSION = 1.10.10
+VDATE = 20 March 2011
+CFLAGS += -g -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\""
+CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
+PREFIX = /usr/local
+BINDIR = $(PREFIX)/bin
+INCLUDEDIR = $(PREFIX)/include/mandoc
+LIBDIR = $(PREFIX)/lib/mandoc
+MANDIR = $(PREFIX)/man
+EXAMPLEDIR = $(PREFIX)/share/examples/mandoc
+INSTALL = install
+INSTALL_PROGRAM = $(INSTALL) -m 0755
+INSTALL_DATA = $(INSTALL) -m 0444
+INSTALL_LIB = $(INSTALL) -m 0644
+INSTALL_MAN = $(INSTALL_DATA)
+
+all: mandoc
+
+SRCS = Makefile \
+ arch.c \
+ arch.in \
+ att.c \
+ att.in \
+ chars.c \
+ chars.in \
+ compat.c \
+ config.h.post \
+ config.h.pre \
+ eqn.7 \
+ eqn.c \
+ example.style.css \
+ external.png \
+ html.c \
+ html.h \
+ index.css \
+ index.sgml \
+ lib.c \
+ lib.in \
+ libman.h \
+ libmandoc.h \
+ libmdoc.h \
+ libroff.h \
+ main.c \
+ main.h \
+ man.7 \
+ man.c \
+ man_hash.c \
+ man_html.c \
+ man_macro.c \
+ man_term.c \
+ man_validate.c \
+ mandoc.1 \
+ mandoc.3 \
+ mandoc.c \
+ mandoc.h \
+ mandoc_char.7 \
+ mdoc.7 \
+ mdoc.c \
+ mdoc_argv.c \
+ mdoc_hash.c \
+ mdoc_html.c \
+ mdoc_macro.c \
+ mdoc_term.c \
+ mdoc_validate.c \
+ msec.c \
+ msec.in \
+ out.c \
+ out.h \
+ read.c \
+ roff.7 \
+ roff.c \
+ st.c \
+ st.in \
+ style.css \
+ tbl.7 \
+ tbl.c \
+ tbl_data.c \
+ tbl_html.c \
+ tbl_layout.c \
+ tbl_opts.c \
+ tbl_term.c \
+ term.c \
+ term.h \
+ term_ascii.c \
+ term_ps.c \
+ test-strlcat.c \
+ test-strlcpy.c \
+ tree.c \
+ vol.c \
+ vol.in
+
+LIBMAN_OBJS = man.o \
+ man_hash.o \
+ man_macro.o \
+ man_validate.o
+LIBMAN_LNS = man.ln \
+ man_hash.ln \
+ man_macro.ln \
+ man_validate.ln
+
+LIBMDOC_OBJS = arch.o \
+ att.o \
+ lib.o \
+ mdoc.o \
+ mdoc_argv.o \
+ mdoc_hash.o \
+ mdoc_macro.o \
+ mdoc_validate.o \
+ msec.o \
+ st.o \
+ vol.o
+LIBMDOC_LNS = arch.ln \
+ att.ln \
+ lib.ln \
+ mdoc.ln \
+ mdoc_argv.ln \
+ mdoc_hash.ln \
+ mdoc_macro.ln \
+ mdoc_validate.ln \
+ msec.ln \
+ st.ln \
+ vol.ln
+
+LIBROFF_OBJS = eqn.o \
+ roff.o \
+ tbl.o \
+ tbl_data.o \
+ tbl_layout.o \
+ tbl_opts.o
+LIBROFF_LNS = eqn.ln \
+ roff.ln \
+ tbl.ln \
+ tbl_data.ln \
+ tbl_layout.ln \
+ tbl_opts.ln
+
+LIBMANDOC_OBJS = $(LIBMAN_OBJS) \
+ $(LIBMDOC_OBJS) \
+ $(LIBROFF_OBJS) \
+ mandoc.o \
+ read.o
+LIBMANDOC_LNS = $(LIBMAN_LNS) \
+ $(LIBMDOC_LNS) \
+ $(LIBROFF_LNS) \
+ mandoc.ln \
+ read.ln
+
+arch.o arch.ln: arch.in
+att.o att.ln: att.in
+lib.o lib.ln: lib.in
+msec.o msec.ln: msec.in
+st.o st.ln: st.in
+vol.o vol.ln: vol.in
+
+$(LIBMAN_OBJS) $(LIBMAN_LNS): libman.h
+$(LIBMDOC_OBJS) $(LIBMDOC_LNS): libmdoc.h
+$(LIBROFF_OBJS) $(LIBROFF_LNS): libroff.h
+$(LIBMANDOC_OBJS) $(LIBMANDOC_LNS): mandoc.h mdoc.h man.h libmandoc.h config.h
+
+MANDOC_HTML_OBJS = html.o \
+ man_html.o \
+ mdoc_html.o \
+ tbl_html.o
+MANDOC_HTML_LNS = html.ln \
+ man_html.ln \
+ mdoc_html.ln \
+ tbl_html.ln
+
+MANDOC_TERM_OBJS = man_term.o \
+ mdoc_term.o \
+ term.o \
+ term_ascii.o \
+ term_ps.o \
+ tbl_term.o
+MANDOC_TERM_LNS = man_term.ln \
+ mdoc_term.ln \
+ term.ln \
+ term_ascii.ln \
+ term_ps.ln \
+ tbl_term.ln
+
+MANDOC_OBJS = $(MANDOC_HTML_OBJS) \
+ $(MANDOC_TERM_OBJS) \
+ chars.o \
+ main.o \
+ out.o \
+ tree.o
+MANDOC_LNS = $(MANDOC_HTML_LNS) \
+ $(MANDOC_TERM_LNS) \
+ chars.ln \
+ main.ln \
+ out.ln \
+ tree.ln
+
+chars.o chars.ln: chars.in
+
+$(MANDOC_HTML_OBJS) $(MANDOC_HTML_LNS): html.h
+$(MANDOC_TERM_OBJS) $(MANDOC_TERM_LNS): term.h
+$(MANDOC_OBJS) $(MANDOC_LNS): main.h mandoc.h mdoc.h man.h config.h out.h
+
+compat.o compat.ln: config.h
+
+MANDOCDB_OBJS = mandoc-db.o
+MANDOCDB_LNS = mandoc-db.ln
+
+$(MANDOCDB_OBJS) $(MANDOCDB_LNS): mandoc.h mdoc.h man.h config.h
+
+INDEX_MANS = mandoc.1.html \
+ mandoc.1.xhtml \
+ mandoc.1.ps \
+ mandoc.1.pdf \
+ mandoc.1.txt \
+ mandoc.3.html \
+ mandoc.3.xhtml \
+ mandoc.3.ps \
+ mandoc.3.pdf \
+ mandoc.3.txt \
+ eqn.7.html \
+ eqn.7.xhtml \
+ eqn.7.ps \
+ eqn.7.pdf \
+ eqn.7.txt \
+ man.7.html \
+ man.7.xhtml \
+ man.7.ps \
+ man.7.pdf \
+ man.7.txt \
+ mandoc_char.7.html \
+ mandoc_char.7.xhtml \
+ mandoc_char.7.ps \
+ mandoc_char.7.pdf \
+ mandoc_char.7.txt \
+ mdoc.7.html \
+ mdoc.7.xhtml \
+ mdoc.7.ps \
+ mdoc.7.pdf \
+ mdoc.7.txt \
+ roff.7.html \
+ roff.7.xhtml \
+ roff.7.ps \
+ roff.7.pdf \
+ roff.7.txt \
+ tbl.7.html \
+ tbl.7.xhtml \
+ tbl.7.ps \
+ tbl.7.pdf \
+ tbl.7.txt
+
+$(INDEX_MANS): mandoc
+
+INDEX_OBJS = $(INDEX_MANS) \
+ man.h.html \
+ mandoc.h.html \
+ mdoc.h.html \
+ mdocml.tar.gz \
+ mdocml.md5
+
+www: index.html
+
+lint: llib-llibmandoc.ln llib-lmandoc.ln