This commit is contained in:
Niklas Gollenstede
2025-10-31 22:37:36 +01:00
commit 174fe17e89
197 changed files with 79558 additions and 0 deletions

35
tools/common.mk Normal file
View File

@@ -0,0 +1,35 @@
# Common include Makefile
# Hide commands
VERBOSE = @
# Prefix for toolchain binaries
PREFIX ?=
# Project name
PROJECT ?= "StuBSmI"
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: