mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
11 lines
213 B
Makefile
11 lines
213 B
Makefile
include ../tools.mk
|
|
|
|
all: foo
|
|
$(call RUN,foo) | $(CGREP) -v unreachable
|
|
|
|
foo: foo.rs $(call NATIVE_STATICLIB,foo)
|
|
$(RUSTC) $< -lfoo $(EXTRARSCXXFLAGS)
|
|
|
|
$(TMPDIR)/libfoo.o: foo.cpp
|
|
$(call COMPILE_OBJ_CXX,$@,$<)
|