]> git.proxmox.com Git - rustc.git/blob - src/test/run-make/c-link-to-rust-staticlib/Makefile
56c09b895f1417005d324c4e326f2f8cdcec3bdc
[rustc.git] / src / test / run-make / c-link-to-rust-staticlib / Makefile
1 -include ../tools.mk
2
3 ifndef IS_WINDOWS
4 EXTRAFLAGS := $(EXTRACFLAGS)
5 endif
6
7 # FIXME: ignore freebsd
8 ifneq ($(shell uname),FreeBSD)
9 all:
10 $(RUSTC) foo.rs
11 $(CC) bar.c -lfoo -o $(call RUN_BINFILE,bar) $(EXTRAFLAGS) $(EXTRACXXFLAGS)
12 $(call RUN,bar)
13 rm $(call STATICLIB,foo*)
14 $(call RUN,bar)
15
16 else
17 all:
18
19 endif