diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-07-10 02:37:23 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-07-10 02:37:23 +0000 |
commit | b41e8bdaa29ca31c449e144f336f22a22123226f (patch) | |
tree | c061501ef92ee53d8d275298f780094786922ae8 | |
parent | ba2946c776593880ac2e7750015d3afbfd63924b (diff) |
The mandoc directory will soon grow subdirs mandocdb/ and apropos/
and these new utilities will use the mandoc libraries, so prepare
the build system to build the parsing and utility libraries separately
from the main program and formatters. Not yet linked to the build.
No objections from deraadt@ on adding directories for this purpose.
-rw-r--r-- | usr.bin/mandoc/lib/Makefile | 18 | ||||
-rw-r--r-- | usr.bin/mandoc/mandoc/Makefile | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/usr.bin/mandoc/lib/Makefile b/usr.bin/mandoc/lib/Makefile new file mode 100644 index 00000000000..5b49517f07d --- /dev/null +++ b/usr.bin/mandoc/lib/Makefile @@ -0,0 +1,18 @@ +# $OpenBSD: Makefile,v 1.1 2011/07/10 02:37:21 schwarze Exp $ + +LIB= mandoc +NOPIC= yes +NOPROFILE= yes + +.PATH: ${.CURDIR}/.. + +SRCS= mandoc.c chars.c read.c \ + roff.c tbl.c tbl_opts.c tbl_layout.c tbl_data.c eqn.c \ + arch.c att.c lib.c msec.c st.c vol.c \ + mdoc.c mdoc_argv.c mdoc_hash.c mdoc_macro.c mdoc_validate.c \ + man.c man_hash.c man_macro.c man_validate.c + +install: + @: + +.include <bsd.lib.mk> diff --git a/usr.bin/mandoc/mandoc/Makefile b/usr.bin/mandoc/mandoc/Makefile new file mode 100644 index 00000000000..c706ca373e8 --- /dev/null +++ b/usr.bin/mandoc/mandoc/Makefile @@ -0,0 +1,18 @@ +# $OpenBSD: Makefile,v 1.1 2011/07/10 02:37:22 schwarze Exp $ + +PROG= mandoc +BINDIR= /usr/bin + +CFLAGS+= -DVERSION=\"1.11.3\" +LDFLAGS+= -L../lib +LDADD+= -lmandoc +DPADD+= ../lib/libmandoc.a + +.PATH: ${.CURDIR}/.. + +SRCS= main.c tree.c \ + term.c term_ascii.c term_ps.c \ + mdoc_term.c man_term.c tbl_term.c \ + html.c out.c mdoc_html.c man_html.c tbl_html.c + +.include <bsd.prog.mk> |