summaryrefslogtreecommitdiffstats
path: root/src/test/run-make-fulldeps/archive-duplicate-names/Makefile
blob: bbdcd2a34fe04e7e71d4534b61e1abcb9ba724b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
include ../tools.mk

all:
	mkdir $(TMPDIR)/a
	mkdir $(TMPDIR)/b
	$(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)