]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/cdylib/Makefile
Merge commit 'e228f0c16ea8c34794a6285bf57aab627c26b147' into libgccjit-codegen
[rust.git] / src / test / run-make-fulldeps / cdylib / Makefile
1 include ../tools.mk
2
3 all: $(call RUN_BINFILE,foo)
4         $(call RUN,foo)
5         rm $(call DYLIB,foo)
6         $(RUSTC) foo.rs -C lto
7         $(call RUN,foo)
8
9 ifdef IS_MSVC
10 $(call RUN_BINFILE,foo): $(call DYLIB,foo)
11         $(CC) $(CFLAGS) foo.c $(TMPDIR)/foo.dll.lib $(call OUT_EXE,foo)
12 else
13 $(call RUN_BINFILE,foo): $(call DYLIB,foo)
14         $(CC) $(CFLAGS) foo.c -lfoo -o $(call RUN_BINFILE,foo) -L $(TMPDIR)
15 endif
16
17 $(call DYLIB,foo):
18         $(RUSTC) bar.rs
19         $(RUSTC) foo.rs