From 228b485736a454d5f4d003722f0cda34662accce Mon Sep 17 00:00:00 2001 From: Miles Elam <30807186+miles-po@users.noreply.github.com> Date: Fri, 2 Apr 2021 09:24:53 -0700 Subject: [PATCH] Update Makefile Add static builds --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8fc9b18..480c231 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,10 @@ 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 + rm -f darkhttpd core darkhttpd.core darkhttpd-static darkhttpd-static.core .PHONY: all clean