2017-01-05 22:07:20 +01:00
|
|
|
userspace: \
|
|
|
|
drivers \
|
|
|
|
coreutils \
|
|
|
|
extrautils \
|
2017-01-10 06:18:35 +01:00
|
|
|
installer \
|
2017-01-05 22:07:20 +01:00
|
|
|
ion \
|
|
|
|
netutils \
|
|
|
|
orbutils \
|
|
|
|
pkgutils \
|
|
|
|
userutils \
|
|
|
|
schemes \
|
|
|
|
filesystem/bin/acid \
|
|
|
|
filesystem/bin/contain \
|
|
|
|
filesystem/bin/smith \
|
2017-05-04 06:09:58 +02:00
|
|
|
filesystem/bin/timeout \
|
|
|
|
filesystem/ui/bin/orbterm \
|
|
|
|
filesystem/ui/bin/sodium
|
2017-01-05 22:07:20 +01:00
|
|
|
|
|
|
|
include mk/userspace/coreutils.mk
|
|
|
|
include mk/userspace/drivers.mk
|
|
|
|
include mk/userspace/extrautils.mk
|
2017-01-10 06:18:35 +01:00
|
|
|
include mk/userspace/installer.mk
|
2017-01-05 22:07:20 +01:00
|
|
|
include mk/userspace/ion.mk
|
|
|
|
include mk/userspace/netutils.mk
|
|
|
|
include mk/userspace/orbutils.mk
|
|
|
|
include mk/userspace/pkgutils.mk
|
|
|
|
include mk/userspace/schemes.mk
|
|
|
|
include mk/userspace/userutils.mk
|
|
|
|
|
|
|
|
$(BUILD)/libstd.rlib: rust/src/libstd/Cargo.toml rust/src/libstd/**
|
|
|
|
mkdir -p $(BUILD)
|
2017-01-10 05:52:36 +01:00
|
|
|
$(CARGO) rustc --manifest-path $< --features "panic-unwind" $(CARGOFLAGS) -L native=libc-artifacts/usr/lib -o $@
|
2017-01-05 22:07:20 +01:00
|
|
|
cp rust/src/target/$(TARGET)/release/deps/*.rlib $(BUILD)
|
|
|
|
|
|
|
|
$(BUILD)/libtest.rlib: rust/src/libtest/Cargo.toml rust/src/libtest/** $(BUILD)/libstd.rlib
|
|
|
|
mkdir -p $(BUILD)
|
2017-01-10 05:52:36 +01:00
|
|
|
$(CARGO) rustc --manifest-path $< $(CARGOFLAGS) -L native=libc-artifacts/usr/lib -o $@
|
2017-01-05 22:07:20 +01:00
|
|
|
cp rust/src/target/$(TARGET)/release/deps/*.rlib $(BUILD)
|
|
|
|
|
|
|
|
filesystem/bin/%: programs/%/Cargo.toml programs/%/src/** $(BUILD)/libstd.rlib
|
|
|
|
mkdir -p filesystem/bin
|
|
|
|
$(CARGO) rustc --manifest-path $< --bin $* $(CARGOFLAGS) -o $@
|
|
|
|
$(STRIP) $@
|
2017-05-04 06:09:58 +02:00
|
|
|
|
|
|
|
filesystem/ui/bin/%: programs/%/Cargo.toml programs/%/src/**.rs $(BUILD)/libstd.rlib
|
|
|
|
mkdir -p filesystem/ui/bin
|
|
|
|
$(CARGO) rustc --manifest-path $< --bin $* $(CARGOFLAGS) -o $@
|
|
|
|
$(STRIP) $@
|
|
|
|
|