Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/httpd/small bozohttpd-small: fix typo in SRCS, fix t...
details: https://anonhg.NetBSD.org/src/rev/68cf6ba21942
branches: trunk
changeset: 982291:68cf6ba21942
user: rillig <rillig%NetBSD.org@localhost>
date: Thu Apr 08 06:52:42 2021 +0000
description:
bozohttpd-small: fix typo in SRCS, fix targets dependall and lint
The additional ':' after 'main.c' had no effect on the compilation since
the suffix is removed when computing the list of object files. The ':'
excluded main.c from the dependency computation and from lint.
By defining CPPFLAGS instead of CFLAGS, the default "-O2" steps in
again, and the proper flags are passed to lint, which did not work
before at all because it could not find an included file.
diffstat:
libexec/httpd/small/Makefile | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 02f458c3a973 -r 68cf6ba21942 libexec/httpd/small/Makefile
--- a/libexec/httpd/small/Makefile Thu Apr 08 06:44:55 2021 +0000
+++ b/libexec/httpd/small/Makefile Thu Apr 08 06:52:42 2021 +0000
@@ -1,9 +1,10 @@
+# $NetBSD: Makefile,v 1.6 2021/04/08 06:52:42 rillig Exp $
# $eterna: Makefile,v 1.1 2009/05/22 21:51:39 mrg Exp $
# build a 100% lean bozohttpd-small.c
PROG= bozohttpd-small
NOMAN= # defined
-SRCS= bozohttpd-small.c content-bozo-small.c ssl-bozo.c main.c:
+SRCS= bozohttpd-small.c content-bozo-small.c ssl-bozo.c main.c
LEAN_IFDEF_FLAGS= -UDEBUG -DNO_USER_SUPPORT \
-DNO_CGIBIN_SUPPORT -DNO_DIRINDEX_SUPPORT \
@@ -11,7 +12,7 @@
-DNO_SSL_SUPPORT -UDO_HTPASSWD \
-DNO_LUA_SUPPORT -DNO_BLOCKLIST_SUPPORT
-CFLAGS= -I$(.CURDIR)/.. ${LEAN_IFDEF_FLAGS}
+CPPFLAGS= -I$(.CURDIR)/.. ${LEAN_IFDEF_FLAGS}
bozohttpd-small.c: bozohttpd.c
unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp; \
Home |
Main Index |
Thread Index |
Old Index