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.5
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.5Srillig	unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp;			\
181.5Srillig	status=$$?;							\
191.5Srillig	if [ $$status -ne 1 ]; then					\
201.5Srillig		echo "unifdef returned $$status, expecting 1" 2>&1;	\
211.5Srillig		false;							\
221.5Srillig	fi
231.1Smrg	mv -f $@.tmp $@
241.1Smrg
251.1Smrgcontent-bozo-small.c: content-bozo.c
261.5Srillig	unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp;			\
271.5Srillig	status=$$?;							\
281.5Srillig	if [ $$status -ne 1 ]; then					\
291.5Srillig		echo "unifdef returned $$status, expecting 1" 2>&1;	\
301.5Srillig		false;							\
311.5Srillig	fi
321.1Smrg	mv -f $@.tmp $@
331.1Smrg
341.1SmrgCLEANFILES+=	content-bozo-small.c bozohttpd-small.c
351.1Smrg
361.1Smrg.PATH: $(.CURDIR)/..
371.1Smrg
381.1Smrg.include <bsd.prog.mk>
39

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