Master makefile builds everything
This commit is contained in:
parent
5a3bf75c36
commit
adb43bf2ae
29
Makefile
Normal file
29
Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
|
||||
RUST_BUILD_RELEASE = rust/target/release
|
||||
|
||||
RUST_PH = $(RUST_BUILD_RELEASE)/pH
|
||||
|
||||
CARGO = cargo
|
||||
CARGO_OPTS = --manifest-path rust/Cargo.toml --release
|
||||
|
||||
KERNEL = kernel/ph_linux
|
||||
|
||||
CP = cp
|
||||
|
||||
.PHONY: all clean $(RUST_PH)
|
||||
|
||||
all: pH $(KERNEL)
|
||||
|
||||
$(KERNEL):
|
||||
$(MAKE) -C kernel/
|
||||
|
||||
pH: $(RUST_PH)
|
||||
$(CP) $(RUST_PH) pH
|
||||
|
||||
$(RUST_PH):
|
||||
$(CARGO) build --bins $(CARGO_OPTS)
|
||||
|
||||
clean:
|
||||
rm -f pH
|
||||
$(CARGO) clean $(CARGO_OPTS)
|
||||
|
Loading…
Reference in New Issue
Block a user