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/7d467dcc9bc1
branches:  trunk
changeset: 961060:7d467dcc9bc1
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 7ff4abbd9e7b -r 7d467dcc9bc1 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