mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
35c488b95f
Add static build option to Makefile and create Dockerfile to run it.
17 lines
362 B
Makefile
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
|