2023-03-30 08:46:31 -05:00
|
|
|
# ignore-cross-compile
|
2022-08-22 19:00:00 -05:00
|
|
|
include ../tools.mk
|
2014-07-01 10:37:54 -05:00
|
|
|
|
|
|
|
all:
|
|
|
|
$(RUSTC) foo.rs -C metadata=a -C extra-filename=-a
|
|
|
|
$(RUSTC) foo.rs -C metadata=b -C extra-filename=-b
|
|
|
|
$(RUSTC) bar.rs \
|
|
|
|
--extern foo1=$(TMPDIR)/libfoo-a.rlib \
|
|
|
|
--extern foo2=$(TMPDIR)/libfoo-b.rlib \
|
2021-12-06 16:09:24 -06:00
|
|
|
--print link-args
|
2014-07-01 10:37:54 -05:00
|
|
|
$(call RUN,bar)
|