summaryrefslogtreecommitdiffstats
path: root/src/test/run-make-fulldeps/c-link-to-rust-staticlib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-make-fulldeps/c-link-to-rust-staticlib/Makefile')
-rw-r--r--src/test/run-make-fulldeps/c-link-to-rust-staticlib/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/run-make-fulldeps/c-link-to-rust-staticlib/Makefile b/src/test/run-make-fulldeps/c-link-to-rust-staticlib/Makefile
new file mode 100644
index 000000000..687b59ac0
--- /dev/null
+++ b/src/test/run-make-fulldeps/c-link-to-rust-staticlib/Makefile
@@ -0,0 +1,12 @@
+-include ../tools.mk
+
+# ignore-freebsd
+# FIXME
+
+all:
+ $(RUSTC) foo.rs
+ $(CC) bar.c $(call STATICLIB,foo) $(call OUT_EXE,bar) \
+ $(EXTRACFLAGS) $(EXTRACXXFLAGS)
+ $(call RUN,bar)
+ rm $(call STATICLIB,foo)
+ $(call RUN,bar)