summary refs log tree commit diff
path: root/www/temp.causal.agency/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/temp.causal.agency/Makefile')
-rw-r--r--www/temp.causal.agency/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/www/temp.causal.agency/Makefile b/www/temp.causal.agency/Makefile
index 3e908305..a69a2b48 100644
--- a/www/temp.causal.agency/Makefile
+++ b/www/temp.causal.agency/Makefile
@@ -1,8 +1,7 @@
-WEBROOT = /usr/local/www/temp.causal.agency
+CGI_BIN = /var/www/cgi-bin
 
-CFLAGS += -std=c11 -Wall -Wextra -Wpedantic -I/usr/local/include
-LDFLAGS += -static -L/usr/local/lib
-LDLIBS = -lkcgihtml -lkcgi -lz -lmd
+CFLAGS += -std=c11 -Wall -Wextra -Wpedantic $$(pkg-config --cflags kcgi)
+LDLIBS = -static $$(pkg-config --static --libs kcgi-html)
 
 up:
 
@@ -10,7 +9,7 @@ clean:
 	rm -f up
 
 install: up
-	install -m 700 up ${WEBROOT}/up
+	install up ${CGI_BIN}/up
 
 uninstall:
-	rm -f ${WEBROOT}/up
+	rm -f ${CGI_BIN}/up