summary refs log tree commit diff
path: root/src/test/run-make/c-link-to-rust-staticlib/Makefile
blob: 3d44b3c256efcaa4da06c40f260b2f88fd0e88ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-include ../tools.mk

# FIXME: ignore freebsd
ifneq ($(shell uname),FreeBSD)
all:
	$(RUSTC) foo.rs
	cp $(TMPDIR)/libfoo.a $(call NATIVE_STATICLIB,foo2)
	$(CC) bar.c $(call NATIVE_STATICLIB,foo2) $(call OUT_EXE,bar) \
		$(EXTRACFLAGS) $(EXTRACXXFLAGS)
	$(call RUN,bar)
	rm $(call STATICLIB,foo*)
	$(call RUN,bar)

else
all:

endif