Home | History | Annotate | Line # | Download | only in small
Makefile revision 1.2.4.2
      1  1.2.4.2  msaitoh #	$eterna: Makefile,v 1.1 2009/05/22 21:51:39 mrg Exp $
      2  1.2.4.2  msaitoh 
      3  1.2.4.2  msaitoh # build a 100% lean bozohttpd-small.c
      4  1.2.4.2  msaitoh PROG=	bozohttpd-small
      5  1.2.4.2  msaitoh NOMAN=	# defined
      6  1.2.4.2  msaitoh SRCS=	bozohttpd-small.c content-bozo-small.c
      7  1.2.4.2  msaitoh 
      8  1.2.4.2  msaitoh LEAN_IFDEF_FLAGS=	-UDEBUG -DNO_USER_SUPPORT \
      9  1.2.4.2  msaitoh 			-DNO_CGIBIN_SUPPORT -DNO_DIRINDEX_SUPPORT \
     10  1.2.4.2  msaitoh 			-DNO_DAEMON_MODE -DNO_DYNAMIC_CONTENT \
     11  1.2.4.2  msaitoh 			-DNO_SSL_SUPPORT -UDO_HTPASSWD \
     12  1.2.4.2  msaitoh 			-DNO_LUA_SUPPORT
     13  1.2.4.2  msaitoh 
     14  1.2.4.2  msaitoh CFLAGS=	-I$(.CURDIR)/.. ${LEAN_IFDEF_FLAGS}
     15  1.2.4.2  msaitoh 
     16  1.2.4.2  msaitoh bozohttpd-small.c: bozohttpd.c
     17  1.2.4.2  msaitoh 	unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp ;\
     18  1.2.4.2  msaitoh 	if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
     19  1.2.4.2  msaitoh 	mv -f $@.tmp $@
     20  1.2.4.2  msaitoh 
     21  1.2.4.2  msaitoh content-bozo-small.c: content-bozo.c
     22  1.2.4.2  msaitoh 	unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp ;\
     23  1.2.4.2  msaitoh 	if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
     24  1.2.4.2  msaitoh 	mv -f $@.tmp $@
     25  1.2.4.2  msaitoh 
     26  1.2.4.2  msaitoh CLEANFILES+=	content-bozo-small.c bozohttpd-small.c
     27  1.2.4.2  msaitoh 
     28  1.2.4.2  msaitoh .PATH: $(.CURDIR)/..
     29  1.2.4.2  msaitoh 
     30  1.2.4.2  msaitoh .include <bsd.prog.mk>
     31