[ darkhttpd-1.7 release ]
[darkhttpd] / trunk / Makefile
1 CC?=cc
2 CFLAGS?=-O
3 LIBS=`[ \`uname\` = "SunOS" ] && echo -lsocket -lnsl`
4
5 TARGETS = bsd linux solaris
6 .PHONY: all $(TARGETS)
7
8 all: darkhttpd
9
10 darkhttpd: darkhttpd.c
11 $(CC) $(CFLAGS) $(LIBS) darkhttpd.c -o $@
12
13 clean:
14 rm -f darkhttpd core darkhttpd.core