Modularise makefiles
This commit is contained in:
parent
b7a19200a8
commit
e3f3f27fbc
1 changed files with 525 additions and 526 deletions
12
mk/userspace/userutils.mk
Normal file
12
mk/userspace/userutils.mk
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
userutils: \
|
||||
filesystem/bin/getty \
|
||||
filesystem/bin/id \
|
||||
filesystem/bin/login \
|
||||
filesystem/bin/passwd \
|
||||
filesystem/bin/su \
|
||||
filesystem/bin/sudo
|
||||
|
||||
filesystem/bin/%: programs/userutils/Cargo.toml programs/userutils/src/bin/%.rs $(BUILD)/libstd.rlib
|
||||
mkdir -p filesystem/bin
|
||||
$(CARGO) rustc --manifest-path $< --bin $* $(CARGOFLAGS) -o $@
|
||||
$(STRIP) $@
|
||||
Loading…
Reference in a new issue