From 42474bb6c851314d804c89b1501b49eed0e6005f Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 3 Apr 2023 08:57:02 -0500 Subject: It builds now --- Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7b5b337..506d366 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,20 @@ # wikme PREFIX = /usr/bin +CSC = csc -I$(PWD) -wikme: wikme.scm wikme-module.scm - csc -o $@ wikme.scm +OBJ = wikme.scm.o -.PHONY: install +wikme: main.scm $(OBJ) + $(CSC) -o $@ $(OBJ) -uses wikme main.scm + +$(OBJ): wikme.scm wikme-impl.scm + $(CSC) -c -J wikme.scm -unit wikme -o $@ + +.PHONY: install clean install: wikme install -Dt $(DESTDIR)$(PREFIX)/$@ $< + +clean: + rm -f *.import.scm *.so *.o -- cgit 1.4.1-21-gabe81