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.1
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.1SmrgSRCS=	bozohttpd-small.c content-bozo-small.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.1Smrg			-DNO_SSL_SUPPORT -UDO_HTPASSWD
121.1Smrg
131.1SmrgCFLAGS=	-I$(.CURDIR)/.. ${LEAN_IFDEF_FLAGS}
141.1Smrg
151.1Smrgbozohttpd-small.c: bozohttpd.c
161.1Smrg	unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp ;\
171.1Smrg	if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
181.1Smrg	mv -f $@.tmp $@
191.1Smrg
201.1Smrgcontent-bozo-small.c: content-bozo.c
211.1Smrg	unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp ;\
221.1Smrg	if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
231.1Smrg	mv -f $@.tmp $@
241.1Smrg
251.1SmrgCLEANFILES+=	content-bozo-small.c bozohttpd-small.c
261.1Smrg
271.1Smrg.PATH: $(.CURDIR)/..
281.1Smrg
291.1Smrg.include <bsd.prog.mk>
30

Indexes created Mon Jan 12 22:09:36 GMT 2026