From f8d264f2b18fccdc3b96d8fb66656128a25137f2 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sun, 20 Aug 2017 11:57:02 +0200 Subject: Separate lib into object file --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 $@ -- cgit v1.2.3-70-g09d2