summaryrefslogtreecommitdiffstats
path: root/src/test/run-make-fulldeps/c-link-to-rust-staticlib/Makefile
blob: 687b59ac00e8f64d4e9642a9e8b307d0412ed6f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
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)