darkhttpd/trunk/Makefile
2013-04-28 19:56:51 +10:00

17 lines
309 B
Makefile

# darkhttpd (c) 2003, 2004, 2006 Emil Mikulic.
CC?=cc
CFLAGS?=-O
LIBS=`[ \`/usr/bin/uname\` = "SunOS" ] && echo -lsocket -lnsl`
TARGETS = bsd linux solaris
.PHONY: all $(TARGETS)
all: darkhttpd
darkhttpd: darkhttpd.c
$(CC) $(CFLAGS) $(LIBS) darkhttpd.c -o $@
clean:
rm -f darkhttpd core darkhttpd.core