aboutsummaryrefslogtreecommitdiffstats
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..5e2eb7b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+PREFIX ?= /usr/local
+DESTDIR ?=
+BINDIR ?= $(PREFIX)/bin
+MANDIR ?= $(PREFIX)/share/man
+
+CFLAGS ?= -O3 -march=native
+CFLAGS += -std=c99 -Wall
+
+all: cscript
+
+cscript:
+
+install: cscript
+ @install -v -d "$(DESTDIR)$(BINDIR)" && install -v -m 0755 cscript "$(DESTDIR)$(BINDIR)/cscript"
+
+clean:
+ rm -f cscript
+
+.PHONY: all clean install