38 lines
1.2 KiB
Makefile
38 lines
1.2 KiB
Makefile
BUILD=./build
|
|
|
|
TOOLCHAIN = $(CURDIR)/../tools/bin/x86_64-unknown-redox/toolchain
|
|
CARGO = $(TOOLCHAIN)/bin/cargo
|
|
PATH := $(TOOLCHAIN)/bin:$(PATH)
|
|
|
|
export AR_x86_64_unknown_redox=x86_64-unknown-redox-ar
|
|
export CARGO_TARGET_X86_64_UNKNOWN_REDOX_LINKER=x86_64-unknown-redox-gcc
|
|
export CARGO_TARGET_X86_64_UNKNOWN_REDOX_RUNNER=../../redoxer/target/release/redoxer exec --folder .
|
|
export CC_x86_64_unknown_redox=x86_64-unknown-redox-gcc
|
|
export CFLAGS_riscv64gc_unknown_redox=-march=rv64gc -mabi=lp64d
|
|
export CXX_x86_64_unknown_redox=x86_64-unknown-redox-g++
|
|
export GNU_TARGET=x86_64-unknown-redox
|
|
export RUSTFLAGS=-L native=${TOOLCHAIN}/lib
|
|
export RUSTUP_TOOLCHAIN=${TOOLCHAIN}
|
|
export TARGET=x86_64-unknown-redox
|
|
|
|
.PHONY: all
|
|
all: \
|
|
$(BUILD)/bin/init $(BUILD)/bin/logd \
|
|
$(BUILD)/bin/ramfs $(BUILD)/bin/randd \
|
|
$(BUILD)/bin/redoxfs $(BUILD)/bin/zerod \
|
|
$(BUILD)/boot/bootstrap \
|
|
$(BUILD)/bin/acpid $(BUILD)/bin/fbcond \
|
|
$(BUILD)/bin/inputd $(BUILD)/bin/lived \
|
|
$(BUILD)/bin/nvmed $(BUILD)/bin/pcid \
|
|
$(BUILD)/bin/vesad \
|
|
$(BUILD)/bin/ahcid $(BUILD)/bin/ided \
|
|
$(BUILD)/bin/ps2d \
|
|
$(BUILD)/bin/virtio-blkd $(BUILD)/bin/virtio-gpud \
|
|
$(BUILD)/etc/pcid/initfs.toml
|
|
|
|
|
|
|
|
include make/simple
|
|
include make/bootstrap
|
|
include make/drivers
|
|
include make/zerod |