darkhttpd/trunk/Makefile
Emil Mikulic c4f78a124c [ darkhttpd-1.1 release ]
Make the Makefile work with Solaris make(1S)
2013-04-28 19:44:12 +10:00

30 lines
496 B
Makefile

#
# darkhttpd (c) 2003, Emil Mikulic.
#
CC?=cc
CFLAGS?=-pipe -O2
TARGETS = bsd linux solaris
.PHONY: all $(TARGETS)
all:
@echo "+----- ---- --- -- -"
@echo "| Please run:"
@echo "| make <target>"
@echo "| Where target is one of the following:"
@echo "| $(TARGETS)"
@echo "+----- ---- --- -- -"
bsd linux:
make darkhttpd
solaris:
make darkhttpd LIBS=-lxnet
darkhttpd: darkhttpd.c
$(CC) $(CFLAGS) $(LIBS) darkhttpd.c -o darkhttpd
clean:
rm -f darkhttpd core darkhttpd.core