summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3785f70
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+CFLAGS += -O2 -DPWD=\"$(shell pwd)\"
+
+PROG := sutxr.cgi
+
+.PHONY: all
+all: $(PROG) perms
+
+$(PROG):: $(PROG).c
+
+$(PROG)::
+ chmod u+s $@
+
+.PHONY: perms
+
+perms:
+ chmod u+s main.txr
+
+clean:
+ -rm $(PROG)