Cross Reference: Makefile
xref: /src/libexec/httpd/small/Makefile
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/libexec/httpd/small/
11.6Srillig#	$NetBSD: Makefile,v 1.6 2021/04/08 06:52:42 rillig Exp $
21.1Smrg#	$eterna: Makefile,v 1.1 2009/05/22 21:51:39 mrg Exp $
31.1Smrg
41.1Smrg# build a 100% lean bozohttpd-small.c
51.1SmrgPROG=	bozohttpd-small
61.1SmrgNOMAN=	# defined
71.6SrilligSRCS=	bozohttpd-small.c content-bozo-small.c ssl-bozo.c main.c
81.1Smrg
91.1SmrgLEAN_IFDEF_FLAGS=	-UDEBUG -DNO_USER_SUPPORT \
101.1Smrg			-DNO_CGIBIN_SUPPORT -DNO_DIRINDEX_SUPPORT \
111.1Smrg			-DNO_DAEMON_MODE -DNO_DYNAMIC_CONTENT \
121.2Smrg			-DNO_SSL_SUPPORT -UDO_HTPASSWD \
131.4Sjruoho			-DNO_LUA_SUPPORT -DNO_BLOCKLIST_SUPPORT
141.1Smrg
151.6SrilligCPPFLAGS=	-I$(.CURDIR)/.. ${LEAN_IFDEF_FLAGS}
161.1Smrg
171.1Smrgbozohttpd-small.c: bozohttpd.c
181.5Srillig	unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp;			\
191.5Srillig	status=$$?;							\
201.5Srillig	if [ $$status -ne 1 ]; then					\
211.5Srillig		echo "unifdef returned $$status, expecting 1" 2>&1;	\
221.5Srillig		false;							\
231.5Srillig	fi
241.1Smrg	mv -f $@.tmp $@
251.1Smrg
261.1Smrgcontent-bozo-small.c: content-bozo.c
271.5Srillig	unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp;			\
281.5Srillig	status=$$?;							\
291.5Srillig	if [ $$status -ne 1 ]; then					\
301.5Srillig		echo "unifdef returned $$status, expecting 1" 2>&1;	\
311.5Srillig		false;							\
321.5Srillig	fi
331.1Smrg	mv -f $@.tmp $@
341.1Smrg
351.1SmrgCLEANFILES+=	content-bozo-small.c bozohttpd-small.c
361.1Smrg
371.1Smrg.PATH: $(.CURDIR)/..
381.1Smrg
391.1Smrg.include <bsd.prog.mk>
40

Indexes created Thu Nov 27 21:09:29 GMT 2025