Makefile improvements for non-Linux builds, from Dec 19 2011.

This commit is contained in:
Tony Garnock-Jones 2013-03-20 11:14:29 -04:00
parent 428299d68e
commit 80b2f1c70b
1 changed files with 3 additions and 2 deletions

View File

@ -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