INSTALL_SOURCE = $(INSTALL) -m 0644
INSTALL_MAN = $(INSTALL_DATA)
+# Linux needs -ldb to compile mandocdb.
+#DBLIB = -ldb
+
all: mandoc preconv
SRCS = Makefile \
config.h.pre \
eqn.7 \
eqn.c \
+ eqn_term.c \
example.style.css \
external.png \
html.c \
mdoc_html.ln \
tbl_html.ln
-MANDOC_TERM_OBJS = man_term.o \
+MANDOC_TERM_OBJS = eqn_term.o \
+ man_term.o \
mdoc_term.o \
term.o \
term_ascii.o \
term_ps.o \
tbl_term.o
-MANDOC_TERM_LNS = man_term.ln \
+MANDOC_TERM_LNS = eqn_term.ln \
+ man_term.ln \
mdoc_term.ln \
term.ln \
term_ascii.ln \
llib-lmandoc.ln: $(MANDOC_LNS)
$(LINT) $(LINTFLAGS) -Cmandoc $(MANDOC_LNS)
-# You'll need -ldb for Linux.
mandocdb: $(MANDOCDB_OBJS) libmandoc.a
- $(CC) -o $@ $(MANDOCDB_OBJS) libmandoc.a
+ $(CC) -o $@ $(MANDOCDB_OBJS) libmandoc.a $(DBLIB)
llib-lmandocdb.ln: $(MANDOCDB_LNS)
$(LINT) $(LINTFLAGS) -Cmandocdb $(MANDOCDB_LNS)