2003-12-13 17:19:06 +03:00
|
|
|
CC?=cc
|
2004-12-27 15:54:54 +03:00
|
|
|
CFLAGS?=-O
|
2022-10-02 03:56:40 +03:00
|
|
|
LIBS=`[ \`uname\` = "SunOS" ] && echo -lsocket -lnsl -lsendfile`
|
2003-12-13 17:08:36 +03:00
|
|
|
|
2006-12-14 13:10:46 +03:00
|
|
|
all: darkhttpd
|
2003-12-13 17:08:36 +03:00
|
|
|
|
|
|
|
darkhttpd: darkhttpd.c
|
2017-11-29 01:28:33 +03:00
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) darkhttpd.c -o $@
|
2003-02-20 07:25:12 +03:00
|
|
|
|
2021-04-03 10:08:52 +03:00
|
|
|
darkhttpd-static: darkhttpd.c
|
|
|
|
$(CC) -static $(CFLAGS) $(LDFLAGS) $(LIBS) darkhttpd.c -o $@
|
|
|
|
|
2003-12-13 17:08:36 +03:00
|
|
|
clean:
|
2021-04-03 10:08:52 +03:00
|
|
|
rm -f darkhttpd core darkhttpd.core darkhttpd-static darkhttpd-static.core
|
2013-06-10 12:53:19 +04:00
|
|
|
|
|
|
|
.PHONY: all clean
|