]> git.proxmox.com Git - rustc.git/blame - src/test/run-make/cdylib/Makefile
New upstream version 1.17.0+dfsg1
[rustc.git] / src / test / run-make / cdylib / Makefile
CommitLineData
a7813a04
XL
1include ../tools.mk
2
3all: $(call RUN_BINFILE,foo)
4 $(call RUN,foo)
5 rm $(call DYLIB,foo)
6 $(RUSTC) foo.rs -C lto
7 $(call RUN,foo)
8
9ifdef IS_MSVC
10$(call RUN_BINFILE,foo): $(call DYLIB,foo)
8bb4bdeb 11 $(CC) $(CFLAGS) foo.c $(TMPDIR)/foo.dll.lib $(call OUT_EXE,foo)
a7813a04
XL
12else
13$(call RUN_BINFILE,foo): $(call DYLIB,foo)
14 $(CC) $(CFLAGS) foo.c -lfoo -o $(call RUN_BINFILE,foo) -L $(TMPDIR)
15endif
16
17$(call DYLIB,foo):
18 $(RUSTC) bar.rs
19 $(RUSTC) foo.rs