-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (31 loc) · 820 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Credit should go to Brett Vickers' project MonkOS
# for the idea of the build environment
DIR_ROOT := .
include $(DIR_ROOT)/config.mk
# -----------------------------------------------------------------------------
# Build targets
# -----------------------------------------------------------------------------
.PHONY: all docker iso run o_debug g_debug clean rust
all: iso
# rust:
# @$(DIR_SCRIPTS)/rust.sh
docker:
@$(DIR_DOCKER)/docker_build.sh
iso:
@echo "CREATING ISO"
@$(DIR_SCRIPTS)/build.sh
@$(DIR_SCRIPTS)/iso.sh
run:
@$(DIR_SCRIPTS)/run.sh
# lanuches qemu with remote gdb stub and waits
qdb:
@$(DIR_SCRIPTS)/debug.sh qemu
# launches and connects gdb to qemu stub
gdb:
@$(DIR_SCRIPTS)/debug.sh gdb
.PHONY: format
format:
clang-format
clean:
@$(RM) $(DIR_BUILD)
@$(DIR_SCRIPTS)/clean.sh