aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7318f60
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+.POSIX:
+.SUFFIXES:
+HARE = hare
+HAREFLAGS = -lSDL2
+
+DESTDIR =
+PREFIX = /usr/local
+
+all: hare-chip8
+
+hare-chip8:
+ $(HARE) build $(HAREFLAGS) -o $@ .
+
+check:
+ $(HARE) test $(HAREFLAGS)
+
+clean:
+ rm -f hare-chip8
+
+.PHONY: all check clean