]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/static-dylib-by-default/Makefile
Auto merge of #56079 - mark-i-m:patch-1, r=nikomatsakis
[rust.git] / src / test / run-make-fulldeps / static-dylib-by-default / Makefile
1 -include ../tools.mk
2
3 TO_LINK := $(call DYLIB,bar)
4 ifdef IS_MSVC
5 LINK_ARG = $(TO_LINK:dll=dll.lib)
6 else
7 LINK_ARG = $(TO_LINK)
8 endif
9
10 all:
11         $(RUSTC) foo.rs
12         $(RUSTC) bar.rs
13         $(CC) main.c $(call OUT_EXE,main) $(LINK_ARG) $(EXTRACFLAGS)
14         rm $(TMPDIR)/*.rlib
15         rm $(call DYLIB,foo)
16         $(call RUN,main)