xref: /rk3399_ARM-atf/make_helpers/common.mk (revision 6d415de83fe084c08558895837d0eb90210420a9)
1#
2# Copyright (c) 2024-2025, Arm Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifndef common-mk
8        common-mk := $(lastword $(MAKEFILE_LIST))
9
10        include $(dir $(common-mk))utilities.mk
11
12        silent := $(call bool,$(findstring s,$(firstword ~$(MAKEFLAGS))))
13        verbose := $(if $(silent),,$(call bool,$(V)))
14
15        s := @$(if $(or $(verbose),$(silent)),: )
16        q := $(if $(verbose),,@)
17
18        .exe := $(if $(filter Windows_NT,$(OS)),.exe)
19endif
20