2003-12-13 17:08:36 +03:00
|
|
|
#
|
|
|
|
# darkhttpd (c) 2003, Emil Mikulic.
|
|
|
|
#
|
2003-06-04 18:29:28 +04:00
|
|
|
|
2003-12-13 17:19:06 +03:00
|
|
|
CC?=cc
|
2004-12-27 15:54:54 +03:00
|
|
|
CFLAGS?=-O
|
2003-12-13 17:08:36 +03:00
|
|
|
|
|
|
|
TARGETS = bsd linux solaris
|
|
|
|
.PHONY: all $(TARGETS)
|
2003-02-20 07:25:12 +03:00
|
|
|
|
|
|
|
all:
|
2003-12-13 17:08:36 +03:00
|
|
|
@echo "+----- ---- --- -- -"
|
|
|
|
@echo "| Please run:"
|
|
|
|
@echo "| make <target>"
|
|
|
|
@echo "| Where target is one of the following:"
|
|
|
|
@echo "| $(TARGETS)"
|
|
|
|
@echo "+----- ---- --- -- -"
|
|
|
|
|
|
|
|
bsd linux:
|
|
|
|
make darkhttpd
|
|
|
|
|
|
|
|
solaris:
|
2006-07-21 11:11:56 +04:00
|
|
|
make darkhttpd LIBS="-lxnet -lsendfile"
|
2003-12-13 17:08:36 +03:00
|
|
|
|
|
|
|
darkhttpd: darkhttpd.c
|
2003-12-13 17:19:06 +03:00
|
|
|
$(CC) $(CFLAGS) $(LIBS) darkhttpd.c -o darkhttpd
|
2003-02-20 07:25:12 +03:00
|
|
|
|
2003-12-13 17:08:36 +03:00
|
|
|
clean:
|
|
|
|
rm -f darkhttpd core darkhttpd.core
|