aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 5 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index f9998fb..3ff9655 100644
--- a/Makefile
+++ b/Makefile
@@ -3,18 +3,13 @@
HARE = hare
HAREFLAGS = -lSDL2 -R
-DESTDIR =
-PREFIX = /usr/local
+PREFIX = /usr
+HAREPATH = $(PREFIX)/src/hare/stdlib:vendor/hare-sdl2
-all: hare-chip8
-
-hare-chip8:
- $(HARE) build $(HAREFLAGS) -o $@ .
-
-check:
- $(HARE) test $(HAREFLAGS)
+hare-chip8: main.ha sdl_audio.ha
+ HAREPATH=$(HAREPATH) $(HARE) build $(HAREFLAGS) -o $@ .
clean:
rm -f hare-chip8
-.PHONY: all check clean
+.PHONY: clean