rust/src/test/run-make/archive-duplicate-names/Makefile

12 lines
270 B
Makefile
Raw Normal View History

-include ../tools.mk
all:
mkdir $(TMPDIR)/a
mkdir $(TMPDIR)/b
2015-08-26 23:57:56 +00:00
$(call COMPILE_OBJ,$(TMPDIR)/a/foo.o,foo.c)
$(call COMPILE_OBJ,$(TMPDIR)/b/foo.o,bar.c)
ar crus $(TMPDIR)/libfoo.a $(TMPDIR)/a/foo.o $(TMPDIR)/b/foo.o
$(RUSTC) foo.rs
$(RUSTC) bar.rs
$(call RUN,bar)