NetBSD/libexec/httpd/Makefile.boot

29 lines
863 B
Makefile
Raw Normal View History

2010-05-10 18:44:19 +04:00
# $eterna: Makefile.boot,v 1.9 2010/05/10 04:57:50 mrg Exp $
2009-04-18 11:48:02 +04:00
#
# very simple makefile to compile bozohttpd, should work with every make.
# see Makefile for a list of compile options that may be placed in CFLAGS.
CC= cc
2014-01-02 12:30:22 +04:00
OPT= -O
LARGE_CFLAGS= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
LOCAL_CFLAGS= -DNO_LUA_SUPPORT -DNO_BLOCKLIST_SUPPORT -D_GNU_SOURCE -D_DEFAULT_SOURCE
2014-01-02 12:30:22 +04:00
CFLAGS= $(OPT) $(LARGE_CFLAGS) $(LOCAL_CFLAGS)
2009-04-18 11:48:02 +04:00
GROFF= groff -Tascii
CRYPTOLIBDIR= # -L/usr/local/lib
CRYPTOLIBS= $(CRYPTOLIBDIR) -lcrypto -lssl
LIBS= $(CRYPTOLIBS) $(EXTRALIBS)
2009-04-18 11:48:02 +04:00
FILES= bozohttpd.c auth-bozo.c cgi-bozo.c content-bozo.c daemon-bozo.c \
2014-01-02 12:30:22 +04:00
dir-index-bozo.c lua-bozo.c ssl-bozo.c tilde-luzah-bozo.c main.c
2009-04-18 11:48:02 +04:00
all:
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o bozohttpd $(FILES) $(LIBS)
2009-04-18 11:48:02 +04:00
man:
$(GROFF) -mandoc bozohttpd.8 > bozohttpd.cat8
clean:
rm -f bozohttpd bozohttpd.cat8 *.o