Drop main() prototype. Syncs with NetBSD-8
[minix.git] / libexec / httpd / small / Makefile
blob3460e67f6c0aee37c4fa4f1a03004abffa5a874b
1 # $eterna: Makefile,v 1.1 2009/05/22 21:51:39 mrg Exp $
3 # build a 100% lean bozohttpd-small.c
4 PROG= bozohttpd-small
5 NOMAN= # defined
6 SRCS= bozohttpd-small.c content-bozo-small.c ssl-bozo.c main.c:
8 LEAN_IFDEF_FLAGS= -UDEBUG -DNO_USER_SUPPORT \
9 -DNO_CGIBIN_SUPPORT -DNO_DIRINDEX_SUPPORT \
10 -DNO_DAEMON_MODE -DNO_DYNAMIC_CONTENT \
11 -DNO_SSL_SUPPORT -UDO_HTPASSWD \
12 -DNO_LUA_SUPPORT
14 CFLAGS= -I$(.CURDIR)/.. ${LEAN_IFDEF_FLAGS}
16 bozohttpd-small.c: bozohttpd.c
17 unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp ;\
18 if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
19 mv -f $@.tmp $@
21 content-bozo-small.c: content-bozo.c
22 unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp ;\
23 if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
24 mv -f $@.tmp $@
26 CLEANFILES+= content-bozo-small.c bozohttpd-small.c
28 .PATH: $(.CURDIR)/..
30 .include <bsd.prog.mk>