aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2025-03-28 12:55:31 +0100
committercbdev <cb@cbcdn.com>2025-03-28 12:55:31 +0100
commit174ea72837225ea4f69b643afc7dbf81413d9a61 (patch)
tree13275809ec79cdbdf4d30fac53ba81b5a8534e81
parentaa43a7cbb02047b0ac19920149a8459f204fc1e3 (diff)
downloadpreload-slowloris-174ea72837225ea4f69b643afc7dbf81413d9a61.tar.gz
preload-slowloris-174ea72837225ea4f69b643afc7dbf81413d9a61.tar.bz2
preload-slowloris-174ea72837225ea4f69b643afc7dbf81413d9a61.zip
Make makefile more compatible (h/t nimaje)
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d729bb2..86fb0e5 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,17 @@ CFLAGS += -fPIC
LDFLAGS += -shared
LDLIBS += -ldl
-%.so : %.c
+RM ?= rm -f
+
+.SUFFIXES:
+.SUFFIXES: .c .so
+
+.c.so:
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) $(LDLIBS)
all: slowloris.so
clean:
$(RM) slowloris.so
+
+.PHONY: all clean