version 1.395.2.7, 2013/10/05 20:30:05 |
version 1.395.2.12, 2014/01/04 13:49:22 |
|
|
# |
# |
# CFLAGS += -DOSNAME="\"OpenBSD 5.4\"" |
# CFLAGS += -DOSNAME="\"OpenBSD 5.4\"" |
|
|
VERSION = 1.12.2 |
VERSION = 1.12.3 |
VDATE = 05 October 2013 |
VDATE = 31 December 2013 |
|
|
# IFF your system supports multi-byte functions (setlocale(), wcwidth(), |
# IFF your system supports multi-byte functions (setlocale(), wcwidth(), |
# putwchar()) AND has __STDC_ISO_10646__ (that is, wchar_t is simply a |
# putwchar()) AND has __STDC_ISO_10646__ (that is, wchar_t is simply a |
|
|
# Linux requires -pthread to statically link with libdb. |
# Linux requires -pthread to statically link with libdb. |
#STATIC += -pthread |
#STATIC += -pthread |
|
|
CFLAGS += -g -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\"" |
CFLAGS += -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 |
WWWPREFIX = /var/www |
Line 60 DBLN = llib-lapropos.ln llib-lmandocdb.ln llib-lman. |
|
Line 60 DBLN = llib-lapropos.ln llib-lmandocdb.ln llib-lman. |
|
|
|
all: mandoc preconv demandoc $(DBBIN) |
all: mandoc preconv demandoc $(DBBIN) |
|
|
|
TESTSRCS = test-betoh64.c \ |
|
test-fgetln.c \ |
|
test-getsubopt.c \ |
|
test-mmap.c \ |
|
test-strlcat.c \ |
|
test-strlcpy.c \ |
|
test-strnlen.c \ |
|
test-strptime.c |
|
|
SRCS = Makefile \ |
SRCS = Makefile \ |
NEWS \ |
NEWS \ |
TODO \ |
TODO \ |
Line 78 SRCS = Makefile \ |
|
Line 87 SRCS = Makefile \ |
|
chars.in \ |
chars.in \ |
compat_fgetln.c \ |
compat_fgetln.c \ |
compat_getsubopt.c \ |
compat_getsubopt.c \ |
|
compat_strcasestr.c \ |
compat_strlcat.c \ |
compat_strlcat.c \ |
compat_strlcpy.c \ |
compat_strlcpy.c \ |
|
compat_strnlen.c \ |
|
compat_strsep.c \ |
config.h.post \ |
config.h.post \ |
config.h.pre \ |
config.h.pre \ |
demandoc.1 \ |
demandoc.1 \ |
Line 158 SRCS = Makefile \ |
|
Line 170 SRCS = Makefile \ |
|
term.h \ |
term.h \ |
term_ascii.c \ |
term_ascii.c \ |
term_ps.c \ |
term_ps.c \ |
test-betoh64.c \ |
|
test-fgetln.c \ |
|
test-getsubopt.c \ |
|
test-mmap.c \ |
|
test-strlcat.c \ |
|
test-strlcpy.c \ |
|
test-strptime.c \ |
|
tree.c \ |
tree.c \ |
vol.c \ |
vol.c \ |
vol.in \ |
vol.in \ |
whatis.1 |
whatis.1 \ |
|
$(TESTSRCS) |
|
|
LIBMAN_OBJS = man.o \ |
LIBMAN_OBJS = man.o \ |
man_hash.o \ |
man_hash.o \ |
Line 203 LIBMANDOC_OBJS = $(LIBMAN_OBJS) \ |
|
Line 209 LIBMANDOC_OBJS = $(LIBMAN_OBJS) \ |
|
|
|
COMPAT_OBJS = compat_fgetln.o \ |
COMPAT_OBJS = compat_fgetln.o \ |
compat_getsubopt.o \ |
compat_getsubopt.o \ |
|
compat_strcasestr.o \ |
compat_strlcat.o \ |
compat_strlcat.o \ |
compat_strlcpy.o |
compat_strlcpy.o \ |
|
compat_strnlen.o \ |
|
compat_strsep.o |
|
|
arch.o: arch.in |
arch.o: arch.in |
att.o: att.in |
att.o: att.in |
Line 386 mdocml.tar.gz: $(SRCS) |
|
Line 395 mdocml.tar.gz: $(SRCS) |
|
|
|
index.html: $(INDEX_OBJS) |
index.html: $(INDEX_OBJS) |
|
|
config.h: config.h.pre config.h.post |
config.h: configure config.h.pre config.h.post $(TESTSRCS) |
rm -f config.log |
rm -f config.log |
( cat config.h.pre; \ |
CC="$(CC)" CFLAGS="$(CFLAGS)" VERSION="$(VERSION)" ./configure |
echo; \ |
|
if $(CC) $(CFLAGS) -Werror -Wno-unused -o test-fgetln test-fgetln.c >> config.log 2>&1; then \ |
|
echo '#define HAVE_FGETLN'; \ |
|
rm test-fgetln; \ |
|
fi; \ |
|
if $(CC) $(CFLAGS) -Werror -Wno-unused -o test-strptime test-strptime.c >> config.log 2>&1; then \ |
|
echo '#define HAVE_STRPTIME'; \ |
|
rm test-strptime; \ |
|
fi; \ |
|
if $(CC) $(CFLAGS) -Werror -Wno-unused -o test-getsubopt test-getsubopt.c >> config.log 2>&1; then \ |
|
echo '#define HAVE_GETSUBOPT'; \ |
|
rm test-getsubopt; \ |
|
fi; \ |
|
if $(CC) $(CFLAGS) -Werror -Wno-unused -o test-strlcat test-strlcat.c >> config.log 2>&1; then \ |
|
echo '#define HAVE_STRLCAT'; \ |
|
rm test-strlcat; \ |
|
fi; \ |
|
if $(CC) $(CFLAGS) -Werror -Wno-unused -o test-mmap test-mmap.c >> config.log 2>&1; then \ |
|
echo '#define HAVE_MMAP'; \ |
|
rm test-mmap; \ |
|
fi; \ |
|
if $(CC) $(CFLAGS) -Werror -Wno-unused -o test-strlcpy test-strlcpy.c >> config.log 2>&1; then \ |
|
echo '#define HAVE_STRLCPY'; \ |
|
rm test-strlcpy; \ |
|
fi; \ |
|
if $(CC) $(CFLAGS) -Werror -Wno-unused -o test-betoh64 test-betoh64.c >> config.log 2>&1; then \ |
|
echo '#define HAVE_BETOH64'; \ |
|
rm test-betoh64; \ |
|
fi; \ |
|
echo; \ |
|
cat config.h.post \ |
|
) > $@ |
|
|
|
.h.h.html: |
.h.h.html: |
highlight -I $< >$@ |
highlight -I $< >$@ |