fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
317 B17 linesraw
1# ignore-cross-compile
2include ../tools.mk
3
4TO_LINK := $(call DYLIB,bar)
5ifdef IS_MSVC
6LINK_ARG = $(TO_LINK:dll=dll.lib)
7else
8LINK_ARG = $(TO_LINK)
9endif
10
11all:
12	$(RUSTC) foo.rs
13	$(RUSTC) bar.rs
14	$(CC) main.c $(call OUT_EXE,main) $(LINK_ARG) $(EXTRACFLAGS)
15	rm $(TMPDIR)/*.rlib
16	rm $(call DYLIB,foo)
17	$(call RUN,main)