rust/src/test/run-make/linkage-attr-on-static/Makefile

8 lines
171 B
Makefile
Raw Normal View History

2014-11-11 20:34:18 -06:00
-include ../tools.mk
all:
$(CC) foo.c -c -o $(TMPDIR)/foo.o
$(AR) rcs $(TMPDIR)/libfoo.a $(TMPDIR)/foo.o
$(RUSTC) bar.rs -lfoo -L $(TMPDIR)
$(call RUN,bar) || exit 1