Handout
This commit is contained in:
33
tools/common.mk
Normal file
33
tools/common.mk
Normal 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:
|
||||
Reference in New Issue
Block a user