darkhttpd/Makefile
Miles Elam 35c488b95f
Dockerize (#3)
Add static build option to Makefile and create Dockerfile to run it.
2021-04-03 18:08:52 +11:00

17 lines
362 B
Makefile

CC?=cc
CFLAGS?=-O
LIBS=`[ \`uname\` = "SunOS" ] && echo -lsocket -lnsl`
all: darkhttpd
darkhttpd: darkhttpd.c
$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) darkhttpd.c -o $@
darkhttpd-static: darkhttpd.c
$(CC) -static $(CFLAGS) $(LDFLAGS) $(LIBS) darkhttpd.c -o $@
clean:
rm -f darkhttpd core darkhttpd.core darkhttpd-static darkhttpd-static.core
.PHONY: all clean