2011-12-19 20:47:58 +00:00
|
|
|
SYSTEM_LIBRARY_SUBPATH:=compiled/native/$(shell racket -e '(display (path->string (system-library-subpath)))')
|
2013-03-20 15:14:29 +00:00
|
|
|
SYSTEM_LIBRARY_SUFFIX:=$(shell racket -e '(begin (require dynext/file) (display (path->string (append-extension-suffix "DUMMY"))))' | sed -e s:DUMMY::)
|
2011-12-19 20:47:58 +00:00
|
|
|
|
2013-03-20 15:14:29 +00:00
|
|
|
all: $(SYSTEM_LIBRARY_SUBPATH)/tty-raw-extension$(SYSTEM_LIBRARY_SUFFIX)
|
2011-12-19 20:47:58 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf compiled
|
|
|
|
|
|
|
|
$(SYSTEM_LIBRARY_SUBPATH):
|
|
|
|
mkdir -p $@
|
|
|
|
|
2013-03-20 15:14:29 +00:00
|
|
|
$(SYSTEM_LIBRARY_SUBPATH)/%$(SYSTEM_LIBRARY_SUFFIX): %.c $(SYSTEM_LIBRARY_SUBPATH)
|
2011-12-19 20:47:58 +00:00
|
|
|
mzc --xform $*.c
|
|
|
|
mzc --3m --cc $*.3m.c
|
|
|
|
mzc --3m --ld $@ $*_3m.o
|
|
|
|
rm -f $*.3m.c
|
|
|
|
rm -f $*_3m.o
|