This commit is contained in:
Niklas Gollenstede
2025-04-14 11:20:52 +02:00
commit 5a2e32aaeb
126 changed files with 16742 additions and 0 deletions

33
tools/common.mk Normal file
View File

@@ -0,0 +1,33 @@
# Common include Makefile
# Hide commands
VERBOSE = @
# Prefix for toolchain binaries
PREFIX ?=
# Project name
PROJECT ?= "MPStuBS"
help::
@$(echo) "\n" \
"\e[1mMAKEFILE for the teaching operating system $(PROJECT)\e[0m\n" \
"--------------------------------------------------\n\n" \
"Executing '\e[4mmake\e[0m' will compile the operating system from source.\n"
# Get current directory path
CURRENT_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
# Include Makefile scripts
include $(CURRENT_DIR)/build.mk
include $(CURRENT_DIR)/qemu.mk
include $(CURRENT_DIR)/image.mk
include $(CURRENT_DIR)/linter.mk
include $(CURRENT_DIR)/remote.mk
# Disable buitlin rules
MAKEFLAGS += --no-builtin-rules
# Disable buitlin rules
MAKEFLAGS += --no-print-directory
# Disable buitlin suffixes
.SUFFIXES: