aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ac7e938
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+.POSIX:
+
+PREFIX = zig-out
+
+all: install
+
+install:
+ zig build --prefix "$(PREFIX)" --release=small --verbose
+
+test:
+ zig build test --summary all
+
+freebsd:
+ zig build --prefix "$(PREFIX)" --release=small --verbose -Dpath-prefix=/usr/local -Dtarget=x86_64-freebsd