version 1.395.2.3, 2013/09/18 16:20:11 |
version 1.395.2.7, 2013/10/05 20:30:05 |
|
|
# CFLAGS += -DOSNAME="\"OpenBSD 5.4\"" |
# CFLAGS += -DOSNAME="\"OpenBSD 5.4\"" |
|
|
VERSION = 1.12.2 |
VERSION = 1.12.2 |
VDATE = 18 September 2013 |
VDATE = 05 October 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 |
Line 25 CFLAGS += -DUSE_WCHAR |
|
Line 25 CFLAGS += -DUSE_WCHAR |
|
# variable. |
# variable. |
#CFLAGS += -DUSE_MANPATH |
#CFLAGS += -DUSE_MANPATH |
|
|
# If your system supports static binaries only, uncomment this. This |
# If your system does not support static binaries, comment this, |
# appears only to be BSD UNIX systems (Mac OS X has no support and Linux |
# for example on Mac OS X. |
# requires -pthreads for static libdb). |
|
STATIC = -static |
STATIC = -static |
|
# Linux requires -pthread to statically link with libdb. |
|
#STATIC += -pthread |
|
|
CFLAGS += -g -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\"" |
CFLAGS += -g -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\"" |
CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings |
CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings |
Line 60 DBLN = llib-lapropos.ln llib-lmandocdb.ln llib-lman. |
|
Line 61 DBLN = llib-lapropos.ln llib-lmandocdb.ln llib-lman. |
|
all: mandoc preconv demandoc $(DBBIN) |
all: mandoc preconv demandoc $(DBBIN) |
|
|
SRCS = Makefile \ |
SRCS = Makefile \ |
|
NEWS \ |
TODO \ |
TODO \ |
apropos.1 \ |
apropos.1 \ |
apropos.c \ |
apropos.c \ |
Line 156 SRCS = Makefile \ |
|
Line 158 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-fgetln.c \ |
test-getsubopt.c \ |
test-getsubopt.c \ |
test-mmap.c \ |
test-mmap.c \ |
Line 387 config.h: config.h.pre config.h.post |
|
Line 390 config.h: config.h.pre config.h.post |
|
rm -f config.log |
rm -f config.log |
( cat config.h.pre; \ |
( cat config.h.pre; \ |
echo; \ |
echo; \ |
if $(CC) $(CFLAGS) -Werror -o test-fgetln test-fgetln.c >> config.log 2>&1; then \ |
if $(CC) $(CFLAGS) -Werror -Wno-unused -o test-fgetln test-fgetln.c >> config.log 2>&1; then \ |
echo '#define HAVE_FGETLN'; \ |
echo '#define HAVE_FGETLN'; \ |
rm test-fgetln; \ |
rm test-fgetln; \ |
fi; \ |
fi; \ |
if $(CC) $(CFLAGS) -Werror -o test-strptime test-strptime.c >> config.log 2>&1; then \ |
if $(CC) $(CFLAGS) -Werror -Wno-unused -o test-strptime test-strptime.c >> config.log 2>&1; then \ |
echo '#define HAVE_STRPTIME'; \ |
echo '#define HAVE_STRPTIME'; \ |
rm test-strptime; \ |
rm test-strptime; \ |
fi; \ |
fi; \ |
if $(CC) $(CFLAGS) -Werror -o test-getsubopt test-getsubopt.c >> config.log 2>&1; then \ |
if $(CC) $(CFLAGS) -Werror -Wno-unused -o test-getsubopt test-getsubopt.c >> config.log 2>&1; then \ |
echo '#define HAVE_GETSUBOPT'; \ |
echo '#define HAVE_GETSUBOPT'; \ |
rm test-getsubopt; \ |
rm test-getsubopt; \ |
fi; \ |
fi; \ |
if $(CC) $(CFLAGS) -Werror -o test-strlcat test-strlcat.c >> config.log 2>&1; then \ |
if $(CC) $(CFLAGS) -Werror -Wno-unused -o test-strlcat test-strlcat.c >> config.log 2>&1; then \ |
echo '#define HAVE_STRLCAT'; \ |
echo '#define HAVE_STRLCAT'; \ |
rm test-strlcat; \ |
rm test-strlcat; \ |
fi; \ |
fi; \ |
if $(CC) $(CFLAGS) -Werror -o test-mmap test-mmap.c >> config.log 2>&1; then \ |
if $(CC) $(CFLAGS) -Werror -Wno-unused -o test-mmap test-mmap.c >> config.log 2>&1; then \ |
echo '#define HAVE_MMAP'; \ |
echo '#define HAVE_MMAP'; \ |
rm test-mmap; \ |
rm test-mmap; \ |
fi; \ |
fi; \ |
if $(CC) $(CFLAGS) -Werror -o test-strlcpy test-strlcpy.c >> config.log 2>&1; then \ |
if $(CC) $(CFLAGS) -Werror -Wno-unused -o test-strlcpy test-strlcpy.c >> config.log 2>&1; then \ |
echo '#define HAVE_STRLCPY'; \ |
echo '#define HAVE_STRLCPY'; \ |
rm test-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; \ |
fi; \ |
echo; \ |
echo; \ |
cat config.h.post \ |
cat config.h.post \ |