version 1.423, 2014/07/12 18:32:47 |
version 1.426, 2014/08/05 01:07:00 |
|
|
|
|
# === USER SETTINGS ==================================================== |
# === USER SETTINGS ==================================================== |
|
|
|
# --- user settings relevant for all builds ---------------------------- |
|
|
# Specify this if you want to hard-code the operating system to appear |
# Specify this if you want to hard-code the operating system to appear |
# in the lower-left hand corner of -mdoc manuals. |
# in the lower-left hand corner of -mdoc manuals. |
# |
# |
|
|
# |
# |
CFLAGS += -DUSE_WCHAR |
CFLAGS += -DUSE_WCHAR |
|
|
# If your system has manpath(1), uncomment this. This is most any |
|
# system that's not OpenBSD or NetBSD. If uncommented, manpage(1) and |
|
# makewhatis(8) will use manpath(1) to get the MANPATH variable. |
|
#CFLAGS += -DUSE_MANPATH |
|
|
|
# If your system does not support static binaries, comment this, |
|
# for example on Mac OS X. |
|
STATIC = -static |
|
# Linux requires -pthread to statically link with libdb. |
|
#STATIC += -pthread |
|
|
|
CFLAGS += -I/usr/local/include -g -DHAVE_CONFIG_H |
CFLAGS += -I/usr/local/include -g -DHAVE_CONFIG_H |
CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings |
CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings |
PREFIX = /usr/local |
PREFIX = /usr/local |
WWWPREFIX = /var/www |
|
HTDOCDIR = $(WWWPREFIX)/htdocs |
|
CGIBINDIR = $(WWWPREFIX)/cgi-bin |
|
BINDIR = $(PREFIX)/bin |
BINDIR = $(PREFIX)/bin |
INCLUDEDIR = $(PREFIX)/include/mandoc |
INCLUDEDIR = $(PREFIX)/include/mandoc |
LIBDIR = $(PREFIX)/lib/mandoc |
LIBDIR = $(PREFIX)/lib/mandoc |
MANDIR = $(PREFIX)/man |
MANDIR = $(PREFIX)/man |
EXAMPLEDIR = $(PREFIX)/share/examples/mandoc |
EXAMPLEDIR = $(PREFIX)/share/examples/mandoc |
|
|
INSTALL = install |
INSTALL = install |
INSTALL_PROGRAM = $(INSTALL) -m 0755 |
INSTALL_PROGRAM = $(INSTALL) -m 0755 |
INSTALL_DATA = $(INSTALL) -m 0444 |
INSTALL_DATA = $(INSTALL) -m 0444 |
Line 61 INSTALL_LIB = $(INSTALL) -m 0644 |
|
Line 50 INSTALL_LIB = $(INSTALL) -m 0644 |
|
INSTALL_SOURCE = $(INSTALL) -m 0644 |
INSTALL_SOURCE = $(INSTALL) -m 0644 |
INSTALL_MAN = $(INSTALL_DATA) |
INSTALL_MAN = $(INSTALL_DATA) |
|
|
|
# --- user settings related to database support ------------------------ |
|
|
# If you want to build without database support, for example to avoid |
# If you want to build without database support, for example to avoid |
# the dependency on SQLite3, comment the following two lines. |
# the dependency on SQLite3, comment the following line. |
DBLIB = -L/usr/local/lib -lsqlite3 |
# |
DBBIN = makewhatis manpage apropos |
DBBIN = makewhatis manpage apropos |
|
|
# To build man.cgi, copy cgi.h.example to cgi.h, edit it, and |
# If your system has manpath(1), uncomment this. This is most any |
# either enable the following line or run "make man.cgi" by hand. |
# system that's not OpenBSD or NetBSD. If uncommented, apropos(1) |
#DBBIN += man.cgi |
# and makewhatis(8) will use manpath(1) to get the MANPATH variable. |
|
# |
|
#CFLAGS += -DUSE_MANPATH |
|
|
# OpenBSD has the ohash functions in libutil. |
# OpenBSD has the ohash functions in libutil. |
# Comment the following line if your system doesn't. |
# Comment the following line if your system doesn't. |
|
# |
DBLIB += -lutil |
DBLIB += -lutil |
|
|
|
# --- user settings related to man.cgi --------------------------------- |
|
|
|
# To build man.cgi, copy cgi.h.example to cgi.h, edit it, |
|
# and enable the following line. |
|
# |
|
#DBBIN += man.cgi |
|
|
|
# If your system does not support static binaries, comment this, |
|
# for example on Mac OS X. |
|
# |
|
STATIC = -static |
|
|
|
# Linux requires -pthread for statical linking. |
|
# |
|
#STATIC += -pthread |
|
|
|
WWWPREFIX = /var/www |
|
HTDOCDIR = $(WWWPREFIX)/htdocs |
|
CGIBINDIR = $(WWWPREFIX)/cgi-bin |
|
|
# === END OF USER SETTINGS ============================================= |
# === END OF USER SETTINGS ============================================= |
|
|
ALLBIN = mandoc preconv demandoc $(DBBIN) |
ALLBIN = mandoc preconv demandoc $(DBBIN) |
|
DBLIB += -L/usr/local/lib -lsqlite3 |
|
|
all: $(ALLBIN) |
all: $(ALLBIN) |
|
|
Line 87 TESTSRCS = test-fgetln.c \ |
|
Line 102 TESTSRCS = test-fgetln.c \ |
|
test-reallocarray.c \ |
test-reallocarray.c \ |
test-strlcat.c \ |
test-strlcat.c \ |
test-strlcpy.c \ |
test-strlcpy.c \ |
test-strnlen.c \ |
|
test-strptime.c |
test-strptime.c |
|
|
SRCS = LICENSE \ |
SRCS = LICENSE \ |
Line 111 SRCS = LICENSE \ |
|
Line 125 SRCS = LICENSE \ |
|
compat_strcasestr.c \ |
compat_strcasestr.c \ |
compat_strlcat.c \ |
compat_strlcat.c \ |
compat_strlcpy.c \ |
compat_strlcpy.c \ |
compat_strnlen.c \ |
|
compat_strsep.c \ |
compat_strsep.c \ |
config.h.post \ |
config.h.post \ |
config.h.pre \ |
config.h.pre \ |
Line 240 COMPAT_OBJS = compat_fgetln.o \ |
|
Line 253 COMPAT_OBJS = compat_fgetln.o \ |
|
compat_strcasestr.o \ |
compat_strcasestr.o \ |
compat_strlcat.o \ |
compat_strlcat.o \ |
compat_strlcpy.o \ |
compat_strlcpy.o \ |
compat_strnlen.o \ |
|
compat_strsep.o |
compat_strsep.o |
|
|
# === DEPENDENCY HANDLING ============================================== |
# === DEPENDENCY HANDLING ============================================== |
|
|
installcgi: all |
installcgi: all |
mkdir -p $(DESTDIR)$(CGIBINDIR) |
mkdir -p $(DESTDIR)$(CGIBINDIR) |
mkdir -p $(DESTDIR)$(HTDOCDIR) |
mkdir -p $(DESTDIR)$(HTDOCDIR) |
|
mkdir -p $(DESTDIR)$(WWWPREFIX)/man/mandoc/man1 |
|
mkdir -p $(DESTDIR)$(WWWPREFIX)/man/mandoc/man8 |
$(INSTALL_PROGRAM) man.cgi $(DESTDIR)$(CGIBINDIR) |
$(INSTALL_PROGRAM) man.cgi $(DESTDIR)$(CGIBINDIR) |
$(INSTALL_DATA) example.style.css $(DESTDIR)$(HTDOCDIR)/man.css |
$(INSTALL_DATA) example.style.css $(DESTDIR)$(HTDOCDIR)/man.css |
$(INSTALL_DATA) man-cgi.css $(DESTDIR)$(HTDOCDIR) |
$(INSTALL_DATA) man-cgi.css $(DESTDIR)$(HTDOCDIR) |
|
$(INSTALL_MAN) apropos.1 $(DESTDIR)$(WWWPREFIX)/man/mandoc/man1/ |
|
$(INSTALL_MAN) man.cgi.8 $(DESTDIR)$(WWWPREFIX)/man/mandoc/man8/ |
|
|
installwww: www |
installwww: www |
mkdir -p $(DESTDIR)$(HTDOCDIR)/snapshots |
mkdir -p $(DESTDIR)$(HTDOCDIR)/snapshots |