diff options
| author | salmonik <salmonik@tuta.io> | 2026-08-27 18:39:29 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-08-27 18:39:29 +0200 |
| commit | 277218fe1ba1e3616bd147c9d9abecfc56b9957f (patch) | |
| tree | 0b57bdd8244db6e457dcc3203096d8b5465933fe /Makefile | |
| parent | scripts: migrate all QEMU/test scripts to single system image (diff) | |
| download | rs-dos-277218fe1ba1e3616bd147c9d9abecfc56b9957f.tar.gz rs-dos-277218fe1ba1e3616bd147c9d9abecfc56b9957f.zip | |
build: default profile is release (debug too slow for dev loop)
Makefile: PROFILE=release, CARGO_FLAGS=--release; make release target
kept as no-op (now default). boot.sh: PROFILE=release default;
--debug flag opt-in. mksystem.sh: PROFILE=release default.
test-disk/fault/gfx/mouse/msg: all use --release.
All scripts syntax-checked.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,7 +1,7 @@ | |||
| 1 | # shellcheck shell=sh disable=SC2046,SC2091,SC2086,SC2155 | 1 | # shellcheck shell=sh disable=SC2046,SC2091,SC2086,SC2155 |
| 2 | # NOTE: $(VAR) in this file is MAKE syntax, not shell substitution. | 2 | # NOTE: $(VAR) in this file is MAKE syntax, not shell substitution. |
| 3 | export TARGET=x86_64-unknown-uefi | 3 | export TARGET=x86_64-unknown-uefi |
| 4 | export PROFILE=debug | 4 | export PROFILE=release |
| 5 | export OUT_DIR=target/$(TARGET)/$(PROFILE) | 5 | export OUT_DIR=target/$(TARGET)/$(PROFILE) |
| 6 | export ESP_DIR=esp | 6 | export ESP_DIR=esp |
| 7 | export KERNEL=$(OUT_DIR)/rsdos.efi | 7 | export KERNEL=$(OUT_DIR)/rsdos.efi |
| @@ -25,8 +25,8 @@ release: export OUT_DIR=target/$(TARGET)/release | |||
| 25 | release: CARGO_FLAGS=--release | 25 | release: CARGO_FLAGS=--release |
| 26 | release: all | 26 | release: all |
| 27 | 27 | ||
| 28 | # shellcheck disable=SC2034 | 28 | # CARGO_FLAGS set by PROFILE above |
| 29 | CARGO_FLAGS= | 29 | CARGO_FLAGS=--release |
| 30 | 30 | ||
| 31 | $(OUT_DIR)/rsdos.efi: $(shell find rsnix shell rsdos -name '*.rs') Cargo.toml rsnix/Cargo.toml shell/Cargo.toml rsdos/Cargo.toml | 31 | $(OUT_DIR)/rsdos.efi: $(shell find rsnix shell rsdos -name '*.rs') Cargo.toml rsnix/Cargo.toml shell/Cargo.toml rsdos/Cargo.toml |
| 32 | cargo build --package rsdos --target $(TARGET) $(CARGO_FLAGS) | 32 | cargo build --package rsdos --target $(TARGET) $(CARGO_FLAGS) |
