Master makefile builds everything

This commit is contained in:
Bruce Leidl 2017-10-18 21:09:06 +00:00
parent 5a3bf75c36
commit adb43bf2ae

29
Makefile Normal file
View 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)