From 80b2f1c70b9f7683a1758c6c2119b2ccac6806ee Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Wed, 20 Mar 2013 11:14:29 -0400 Subject: [PATCH] Makefile improvements for non-Linux builds, from Dec 19 2011. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b4723b5..69ae8cd 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ SYSTEM_LIBRARY_SUBPATH:=compiled/native/$(shell racket -e '(display (path->string (system-library-subpath)))') +SYSTEM_LIBRARY_SUFFIX:=$(shell racket -e '(begin (require dynext/file) (display (path->string (append-extension-suffix "DUMMY"))))' | sed -e s:DUMMY::) -all: $(SYSTEM_LIBRARY_SUBPATH)/tty-raw-extension.so +all: $(SYSTEM_LIBRARY_SUBPATH)/tty-raw-extension$(SYSTEM_LIBRARY_SUFFIX) clean: rm -rf compiled @@ -8,7 +9,7 @@ clean: $(SYSTEM_LIBRARY_SUBPATH): mkdir -p $@ -$(SYSTEM_LIBRARY_SUBPATH)/%.so: %.c $(SYSTEM_LIBRARY_SUBPATH) +$(SYSTEM_LIBRARY_SUBPATH)/%$(SYSTEM_LIBRARY_SUFFIX): %.c $(SYSTEM_LIBRARY_SUBPATH) mzc --xform $*.c mzc --3m --cc $*.3m.c mzc --3m --ld $@ $*_3m.o