No empty .Rs/.Re
[netbsd-mini2440.git] / libexec / httpd / small / Makefile
blobdd5795600bc38714c0beee34f880a24496832e2f
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
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
13 CFLAGS= -I$(.CURDIR)/.. ${LEAN_IFDEF_FLAGS}
15 bozohttpd-small.c: bozohttpd.c
16 unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp ;\
17 if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
18 mv -f $@.tmp $@
20 content-bozo-small.c: content-bozo.c
21 unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp ;\
22 if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
23 mv -f $@.tmp $@
25 CLEANFILES+= content-bozo-small.c bozohttpd-small.c
27 .PATH: $(.CURDIR)/..
29 .include <bsd.prog.mk>