maybe_link lib/runtime ../runtime
maybe_link lib/mit-scheme.h ../microcode/pruxffi.h
maybe_link lib/ffi ../ffi
+maybe_link lib/ffi-test-shim.so ../ffi/ffi-test-shim.so
+maybe_link lib/ffi-test-types.bin ../ffi/ffi-test-types.bin
+maybe_link lib/ffi-test-const.bin ../ffi/ffi-test-const.bin
+
maybe_link config.sub microcode/config.sub
maybe_link config.guess microcode/config.guess
TARGET_DIR = $(AUXDIR)/ffi
-# Install the FFI option, and test lib.
+# Install the FFI option.
install:
rm -rf $(DESTDIR)$(TARGET_DIR)
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
$(INSTALL_DATA) *.bci $(DESTDIR)$(TARGET_DIR)/.
$(INSTALL_DATA) ffi-*.pkd $(DESTDIR)$(TARGET_DIR)/.
$(INSTALL_DATA) make.scm $(DESTDIR)$(TARGET_DIR)/.
- $(INSTALL_DATA) ffi-test-shim.so ffi-test-types.bin ffi-test-const.bin \
- $(DESTDIR)$(AUXDIR_DIR)/.
# Build a test library interface.
# This interface is for tests/ffi/test-ffi.scm, which uses its own
# wrapper, so there is no need for the compile-ffi procedure (hint).
-build: ../lib/ffi-test-types.bin ../lib/ffi-test-const.bin \
- ../lib/ffi-test-shim.so
+build: ffi-test-shim.so ffi-test-types.bin ffi-test-const.bin
-../lib/ffi-test-shim.so: ffi-test-shim.o ffi-test.o
+ffi-test-shim.so: ffi-test-shim.o ffi-test.o
$(LINK_SHIM) $^ -o $@
ffi-test-shim.o: ffi-test-shim.c ffi-test.h
$(COMPILE_SHIM) -o $@ -c $<
-ffi-test-shim.c ffi-test-const.c ../lib/ffi-test-types.bin: ffi-test.cdecl
+ffi-test-shim.c ffi-test-const.c ffi-test-types.bin: ffi-test.cdecl
(echo "(load-option 'FFI)"; \
echo '(C-generate "ffi-test" "#include \"ffi-test.h\"")') \
| ../microcode/scheme --library ../lib --batch-mode
- cp -p ffi-test-types.bin ../lib/ffi-test-types.bin
-../lib/ffi-test-const.bin: ffi-test-const.scm
+ffi-test-const.bin: ffi-test-const.scm
echo '(sf "ffi-test-const")' \
| ../microcode/scheme --library ../lib --batch-mode
- cp -p ffi-test-const.bin ../lib/ffi-test-const.bin
ffi-test-const.scm: ffi-test-const
./ffi-test-const