Makefile improvements for non-Linux builds, from Dec 19 2011.
This commit is contained in:
parent
428299d68e
commit
80b2f1c70b
5
Makefile
5
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
|
||||
|
|
Loading…
Reference in New Issue