177 lines
3.3 KiB
Makefile
177 lines
3.3 KiB
Makefile
|
#
|
|||
|
# Mandatory prolog to included before msxbuild.mk
|
|||
|
#
|
|||
|
|
|||
|
|
|||
|
#
|
|||
|
# Make make, make behave.
|
|||
|
#
|
|||
|
MAKEFLAGS += --no-builtin-rules
|
|||
|
MAKEFLAGS += --no-builtin-variables
|
|||
|
MAKEFLAGS += --warn-undefined-variables
|
|||
|
.DELETE_ON_ERROR :=
|
|||
|
.RECIPEPREFIX := _
|
|||
|
.SUFFIXES :=
|
|||
|
.PHONY := Makefile
|
|||
|
.ONESHELL :=
|
|||
|
.SHELLFLAGS := -e -u -o pipefail -c
|
|||
|
SHELL := bash
|
|||
|
ifeq ($(origin .RECIPEPREFIX), undefined)
|
|||
|
$(error This version of make does not support dynamic white space brain fuck mode.)
|
|||
|
endif
|
|||
|
# === Below here is optional ===
|
|||
|
|
|||
|
|
|||
|
#
|
|||
|
# Latin1 white space and latin1 tab space are not usable in makefiles.
|
|||
|
# Setup private chinese white space
|
|||
|
#
|
|||
|
_XXX :=
|
|||
|
_XXX :=
|
|||
|
_XXX :=
|
|||
|
_XXX :=
|
|||
|
_XXX :=
|
|||
|
_XXX :=
|
|||
|
_XXX :=
|
|||
|
_XXX :=
|
|||
|
_XXX :=
|
|||
|
_XXX :=
|
|||
|
_XXX :=
|
|||
|
_XXX :=
|
|||
|
_XXX :=
|
|||
|
_XXX :=
|
|||
|
# TODO: Fix these white spaces will NOT work when put and the end of this file.
|
|||
|
|
|||
|
#
|
|||
|
# Configure verbose mode
|
|||
|
#
|
|||
|
ifdef VERBOSE
|
|||
|
ifeq ("$(VERBOSE)", "off")
|
|||
|
.SILENT:
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef うるさい
|
|||
|
ifeq ("$(うるさい)", "ユニット")
|
|||
|
.SILENT:
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef LUIDRUCHTIG
|
|||
|
ifeq ("$(LUIDRUCHTIG)", "uit")
|
|||
|
.SILENT:
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef VERBOSA
|
|||
|
ifeq ("$(VERBOSA)", "traje")
|
|||
|
.SILENT:
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef VERBOSO
|
|||
|
ifeq ("$(VERBOSO)", "traje")
|
|||
|
.SILENT:
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef VERBEUSE
|
|||
|
ifeq ("$(VERBEUSE)", "dehors")
|
|||
|
.SILENT:
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef VERBEUX
|
|||
|
ifeq ("$(VERBEUX)", "dehors")
|
|||
|
.SILENT:
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef шумный
|
|||
|
ifeq ("$(шумный)", "вне")
|
|||
|
.SILENT:
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef 吵雜
|
|||
|
ifeq ("$(吵雜)", "出去")
|
|||
|
.SILENT:
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef वाचाल
|
|||
|
ifeq ("$(वाचाल)", "बंद")
|
|||
|
.SILENT:
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef ᕗᕉᑉᕉᔅ
|
|||
|
ifeq ("$(ᕗᕉᑉᕉᔅ)", "ᖃᒥᓪᓗᒍ")
|
|||
|
.SILENT:
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifndef VERBOSE
|
|||
|
ifndef うるさい
|
|||
|
ifndef LUIDRUCHTIG
|
|||
|
ifndef VERBOSA
|
|||
|
ifndef VERBOSO
|
|||
|
ifndef VERBEUSE
|
|||
|
ifndef VERBEUX
|
|||
|
ifndef шумный
|
|||
|
ifndef 吵雜
|
|||
|
ifndef वाचाल
|
|||
|
ifndef ᕗᕉᑉᕉᔅ
|
|||
|
.SILENT:
|
|||
|
endif
|
|||
|
endif
|
|||
|
endif
|
|||
|
endif
|
|||
|
endif
|
|||
|
endif
|
|||
|
endif
|
|||
|
endif
|
|||
|
endif
|
|||
|
endif
|
|||
|
endif
|
|||
|
|
|||
|
|
|||
|
#
|
|||
|
# Configure debug mode
|
|||
|
#
|
|||
|
ifdef DEBUG
|
|||
|
ifneq ("$(DEBUG)", "off")
|
|||
|
MB_MAKE_CALL_DEBUG ?= $(DEBUG)
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef ONTBEESTEN
|
|||
|
ifneq ("$(ONTBEESTEN)", "uit")
|
|||
|
MB_MAKE_CALL_DEBUG ?= $(ONTBEESTEN)
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef デバッグ
|
|||
|
ifneq ("$(デバッグ)", "ユニット")
|
|||
|
MB_MAKE_CALL_DEBUG ?= $(デバッグ)
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef DEPURAR
|
|||
|
ifneq ("$(DEPURAR)", "traje")
|
|||
|
MB_MAKE_CALL_DEBUG ?= $(DEPURAR)
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef DÉBOGUER
|
|||
|
ifneq ("$(DÉBOGUER)", "dehors")
|
|||
|
MB_MAKE_CALL_DEBUG ?= $(DÉBOGUER)
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef отлаживать
|
|||
|
ifneq ("$(отлаживать)", "вне")
|
|||
|
MB_MAKE_CALL_DEBUG ?= $(отлаживать)
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef 偵錯
|
|||
|
ifneq ("$(偵錯)", "出去")
|
|||
|
MB_MAKE_CALL_DEBUG ?= $(偵錯)
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef डिबग
|
|||
|
ifneq ("$(डिबग)", "बंद")
|
|||
|
MB_MAKE_CALL_DEBUG ?= $(डिबग)
|
|||
|
endif
|
|||
|
endif
|
|||
|
ifdef ᐃᕿᒡᒐᖅᑐᖅ
|
|||
|
ifneq ("$(ᐃᕿᒡᒐᖅᑐᖅ)", "ᖃᒥᓪᓗᒍ")
|
|||
|
MB_MAKE_CALL_DEBUG ?= $(ᐃᕿᒡᒐᖅᑐᖅ)
|
|||
|
endif
|
|||
|
endif
|
|||
|
|