head	1.4;
access;
symbols
	httpd-base:1.1.1.1 MRG:1.1.1;
locks; strict;
comment	@# @;


1.4
date	2009.11.05.08.06.09;	author agc;	state Exp;
branches;
next	1.3;
commitid	14iMYV7xK3F2Uiau;

1.3
date	2009.11.04.23.10.20;	author agc;	state Exp;
branches;
next	1.2;
commitid	I8wKONRY5KieWfau;

1.2
date	2009.11.04.21.11.02;	author agc;	state Exp;
branches;
next	1.1;
commitid	WghG8zd8VKxihfau;

1.1
date	2009.11.03.04.55.18;	author agc;	state Exp;
branches
	1.1.1.1;
next	;
commitid	VqJxsN5LGNAxU1au;

1.1.1.1
date	2009.11.03.04.55.18;	author agc;	state Exp;
branches;
next	;
commitid	VqJxsN5LGNAxU1au;


desc
@@


1.4
log
@make this compile ssl small
@
text
@#	$eterna: Makefile,v 1.1 2009/05/22 21:51:39 mrg Exp $

# build a 100% lean bozohttpd-small.c
PROG=	bozohttpd-small
NOMAN=	# defined
SRCS=	bozohttpd-small.c content-bozo-small.c ssl-bozo-small.c main-small.c

LEAN_IFDEF_FLAGS=	-UDEBUG -DNO_USER_SUPPORT \
			-DNO_CGIBIN_SUPPORT -DNO_DIRINDEX_SUPPORT \
			-DNO_DAEMON_MODE -DNO_DYNAMIC_CONTENT \
			-DNO_SSL_SUPPORT -UDO_HTPASSWD

CFLAGS=	-I$(.CURDIR)/.. ${LEAN_IFDEF_FLAGS}

bozohttpd-small.c: bozohttpd.c
	unifdef $(LEAN_IFDEF_FLAGS) < $> > $@@.tmp ;\
	if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
	mv -f $@@.tmp $@@

content-bozo-small.c: content-bozo.c
	unifdef $(LEAN_IFDEF_FLAGS) < $> > $@@.tmp ;\
	if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
	mv -f $@@.tmp $@@

ssl-bozo-small.c: ssl-bozo.c
	unifdef $(LEAN_IFDEF_FLAGS) < $> > $@@.tmp ;\
	if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
	mv -f $@@.tmp $@@

main-small.c: main.c
	unifdef $(LEAN_IFDEF_FLAGS) < $> > $@@.tmp ;\
	if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
	mv -f $@@.tmp $@@

CLEANFILES+=	content-bozo-small.c bozohttpd-small.c main-small.c
CLEANFILES+=	ssl-bozo-small.c

.PATH: $(.CURDIR)/..

.include <bsd.prog.mk>
@


1.3
log
@make ssl a small object file too
@
text
@d6 1
a6 1
SRCS=	bozohttpd-small.c content-bozo-small.c ssl-bozo.c main-small.c
@


1.2
log
@changes from "make small" run
@
text
@d25 5
d36 1
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
SRCS=	bozohttpd-small.c content-bozo-small.c
d25 6
a30 1
CLEANFILES+=	content-bozo-small.c bozohttpd-small.c
@


1.1.1.1
log
@initial import of mrg's bozohttpd
@
text
@@
