Makefile 308 B

12345678910111213
  1. rust_helloworld_objs:=
  2. ifneq ("$(RUSTC)", "")
  3. rust_helloworld_objs += helloworld.o
  4. endif
  5. all: $(rust_helloworld_objs)
  6. helloworld.o: helloworld.rs
  7. @echo Compile helloworld.o
  8. @echo rustc=$(which rustc)
  9. $(shell $(RUSTC) --crate-type staticlib --target x86_64-unknown-none -o helloworld.o helloworld.rs)