mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-10 16:26:48 +00:00
13 lines
308 B
Makefile
13 lines
308 B
Makefile
|
|
rust_helloworld_objs:=
|
|
|
|
ifneq ("$(RUSTC)", "")
|
|
rust_helloworld_objs += helloworld.o
|
|
endif
|
|
|
|
all: $(rust_helloworld_objs)
|
|
|
|
helloworld.o: helloworld.rs
|
|
@echo Compile helloworld.o
|
|
@echo rustc=$(which rustc)
|
|
$(shell $(RUSTC) --crate-type staticlib --target x86_64-unknown-none -o helloworld.o helloworld.rs)
|