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

EXTRAFLAGS := $(EXTRACFLAGS)

# FIXME: ignore freebsd
ifneq ($(shell uname),FreeBSD)
all:
	$(RUSTC) foo.rs
	$(CC) bar.c -lfoo -o $(call RUN_BINFILE,bar) $(EXTRAFLAGS) $(EXTRACXXFLAGS)
	$(call RUN,bar)
	rm $(call STATICLIB,foo*)
	$(call RUN,bar)

else
all:

endif