darkhttpd/trunk/Makefile

30 lines
549 B
Makefile
Raw Normal View History

2006-07-21 11:26:13 +04:00
# darkhttpd (c) 2003, 2004, 2006 Emil Mikulic.
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)
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 "+----- ---- --- -- -"
2006-12-13 16:28:32 +03:00
bsd linux:
rm -f darkhttpd
${MAKE} darkhttpd
2003-12-13 17:08:36 +03:00
solaris:
2006-12-13 16:28:32 +03:00
rm -f darkhttpd
${MAKE} darkhttpd LIBS="-lxnet -lsendfile"
2003-12-13 17:08:36 +03:00
darkhttpd: darkhttpd.c
$(CC) $(CFLAGS) $(LIBS) darkhttpd.c -o darkhttpd
2003-12-13 17:08:36 +03:00
clean:
rm -f darkhttpd core darkhttpd.core