redox/Makefile

74 lines
1.3 KiB
Makefile
Raw Normal View History

2017-01-05 22:07:20 +01:00
# Configuration and variables
include mk/config.mk
2016-09-10 03:08:04 +02:00
2020-06-07 05:29:53 +02:00
# Dependencies
include mk/depends.mk
2022-09-07 16:28:12 +02:00
all: build/harddrive.img
2022-09-07 16:28:12 +02:00
live: build/livedisk.iso
2022-08-27 01:47:07 +02:00
rebuild:
2022-09-12 15:51:13 +02:00
-$(FUMOUNT) build/filesystem/ || true
-$(FUMOUNT) /tmp/redox_installer/ || true
2022-09-12 15:51:13 +02:00
rm -rf build
2022-08-27 01:47:07 +02:00
$(MAKE) all
2016-09-10 03:08:04 +02:00
clean:
cd cookbook && ./clean.sh
2017-06-18 23:59:43 +02:00
cargo clean --manifest-path cookbook/pkgutils/Cargo.toml
cargo clean --manifest-path installer/Cargo.toml
cargo clean --manifest-path redoxfs/Cargo.toml
2022-07-27 17:43:13 +02:00
cargo clean --manifest-path relibc/Cargo.toml
-$(FUMOUNT) build/filesystem/ || true
-$(FUMOUNT) /tmp/redox_installer/ || true
2016-09-10 03:08:04 +02:00
rm -rf build
2016-11-02 15:32:14 +01:00
2018-01-01 23:56:56 +01:00
distclean:
$(MAKE) clean
2018-01-01 23:56:56 +01:00
cd cookbook && ./unfetch.sh
2016-12-14 17:49:05 +01:00
pull:
git pull --recurse-submodules
git submodule sync --recursive
2016-12-14 17:49:05 +01:00
git submodule update --recursive --init
2017-06-18 23:59:43 +02:00
2022-09-12 15:51:13 +02:00
fetch: build/fetch.tag
2016-12-14 17:49:05 +01:00
2022-09-12 15:51:13 +02:00
repo: build/repo.tag
2017-07-11 05:04:40 +02:00
2018-08-17 04:30:54 +02:00
# Cross compiler recipes
2018-08-18 02:47:48 +02:00
include mk/prefix.mk
2016-11-07 01:35:56 +01:00
2022-09-12 15:51:13 +02:00
# Repository maintenance
include mk/repo.mk
2022-02-08 01:13:28 +01:00
2017-01-05 22:07:20 +01:00
# Disk images
include mk/disk.mk
2018-08-17 04:30:54 +02:00
# Emulation recipes
include mk/qemu.mk
include mk/bochs.mk
include mk/virtualbox.mk
2022-10-11 17:12:33 +02:00
# CI
include mk/ci.mk
env: prefix FORCE
export PATH="$(PREFIX_PATH):$$PATH" && \
bash
2020-04-18 22:25:53 +02:00
gdb: FORCE
2022-07-24 17:02:48 +02:00
gdb cookbook/recipes/kernel/build/kernel.sym --eval-command="target remote localhost:1234"
2020-04-18 22:25:53 +02:00
2017-01-10 05:54:38 +01:00
# An empty target
FORCE:
# Gzip any binary
%.gz: %
gzip -k -f $<
2017-01-10 05:54:38 +01:00
# Wireshark
wireshark: FORCE
wireshark build/network.pcap