summaryrefslogtreecommitdiffstats
path: root/tests/run-make/c-link-to-rust-staticlib/Makefile
blob: e14775f5c181c0a8e2bc0c328275d1b1cb934c3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# ignore-cross-compile
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)