blob: ae3b82537db52ccb4d456dfde6b0d5d89d8b49ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
include ../tools.mk
all: $(call RUN_BINFILE,foo)
$(call RUN,foo)
rm $(call DYLIB,foo)
$(RUSTC) foo.rs -C lto
$(call RUN,foo)
ifdef IS_MSVC
$(call RUN_BINFILE,foo): $(call DYLIB,foo)
$(CC) $(CFLAGS) foo.c $(TMPDIR)/foo.dll.lib -Fe:`cygpath -w $@`
else
$(call RUN_BINFILE,foo): $(call DYLIB,foo)
$(CC) $(CFLAGS) foo.c -lfoo -o $(call RUN_BINFILE,foo) -L $(TMPDIR)
endif
$(call DYLIB,foo):
$(RUSTC) bar.rs
$(RUSTC) foo.rs
|