]> git.proxmox.com Git - rustc.git/blob - tests/run-make-fulldeps/cdylib/Makefile
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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