aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-08-20 11:57:02 +0200
committertomsmeding <tom.smeding@gmail.com>2017-08-20 11:57:02 +0200
commitf8d264f2b18fccdc3b96d8fb66656128a25137f2 (patch)
treec4da71e1b7bed93b9f2728503212b6fc43cc9e32 /Makefile
parent965f8bf85d7850be074bad735d815b15a85a3de0 (diff)
Separate lib into object file
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3ce6d7e..0c27b69 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,9 @@ run: $(TARGET)
./$(TARGET) $(RUNFLAGS)
-$(TARGET): $(wildcard *.hs)
+$(TARGET): $(wildcard *.hs) liblang.o
@mkdir -p obj
ghc $(GHCFLAGS) Main.hs -o $@
+
+liblang.o: liblang.asm
+ yasm -w+all -fmacho64 $< -o $@