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

# FIXME: ignore freebsd
ifneq ($(shell uname),FreeBSD)
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)

else
all:

endif