Import NetBSD httpd(8)
Also known as bozohttpd(8). Change-Id: I40e955b5654674f2c708b10e5e403ca9cbc92534
This commit is contained in:
30
libexec/httpd/small/Makefile
Normal file
30
libexec/httpd/small/Makefile
Normal file
@@ -0,0 +1,30 @@
|
||||
# $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:
|
||||
|
||||
LEAN_IFDEF_FLAGS= -UDEBUG -DNO_USER_SUPPORT \
|
||||
-DNO_CGIBIN_SUPPORT -DNO_DIRINDEX_SUPPORT \
|
||||
-DNO_DAEMON_MODE -DNO_DYNAMIC_CONTENT \
|
||||
-DNO_SSL_SUPPORT -UDO_HTPASSWD \
|
||||
-DNO_LUA_SUPPORT
|
||||
|
||||
CFLAGS= -I$(.CURDIR)/.. ${LEAN_IFDEF_FLAGS}
|
||||
|
||||
bozohttpd-small.c: bozohttpd.c
|
||||
unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp ;\
|
||||
if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
|
||||
mv -f $@.tmp $@
|
||||
|
||||
content-bozo-small.c: content-bozo.c
|
||||
unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp ;\
|
||||
if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
|
||||
mv -f $@.tmp $@
|
||||
|
||||
CLEANFILES+= content-bozo-small.c bozohttpd-small.c
|
||||
|
||||
.PATH: $(.CURDIR)/..
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
Reference in New Issue
Block a user