Cross Reference: Makefile
xref: /src/libexec/httpd/small/Makefile
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/libexec/httpd/small/
Makefile revision 1.4
11.1Smrg#	$eterna: Makefile,v 1.1 2009/05/22 21:51:39 mrg Exp $
21.1Smrg
31.1Smrg# build a 100% lean bozohttpd-small.c
41.1SmrgPROG=	bozohttpd-small
51.1SmrgNOMAN=	# defined
61.3SmrgSRCS=	bozohttpd-small.c content-bozo-small.c ssl-bozo.c main.c:
71.1Smrg
81.1SmrgLEAN_IFDEF_FLAGS=	-UDEBUG -DNO_USER_SUPPORT \
91.1Smrg			-DNO_CGIBIN_SUPPORT -DNO_DIRINDEX_SUPPORT \
101.1Smrg			-DNO_DAEMON_MODE -DNO_DYNAMIC_CONTENT \
111.2Smrg			-DNO_SSL_SUPPORT -UDO_HTPASSWD \
121.4Sjruoho			-DNO_LUA_SUPPORT -DNO_BLOCKLIST_SUPPORT
131.1Smrg
141.1SmrgCFLAGS=	-I$(.CURDIR)/.. ${LEAN_IFDEF_FLAGS}
151.1Smrg
161.1Smrgbozohttpd-small.c: bozohttpd.c
171.1Smrg	unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp ;\
181.1Smrg	if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
191.1Smrg	mv -f $@.tmp $@
201.1Smrg
211.1Smrgcontent-bozo-small.c: content-bozo.c
221.1Smrg	unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp ;\
231.1Smrg	if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
241.1Smrg	mv -f $@.tmp $@
251.1Smrg
261.1SmrgCLEANFILES+=	content-bozo-small.c bozohttpd-small.c
271.1Smrg
281.1Smrg.PATH: $(.CURDIR)/..
291.1Smrg
301.1Smrg.include <bsd.prog.mk>
31

Indexes created Thu Nov 27 23:09:41 GMT 2025