From 533591712dd3bd1b44b9e749e2c0aa1eee950ff1 Mon Sep 17 00:00:00 2001 From: bzt Date: Sun, 28 May 2023 15:10:16 +0200 Subject: [PATCH] Configurable make --- uefi/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uefi/Makefile b/uefi/Makefile index 39da759..1b99b66 100644 --- a/uefi/Makefile +++ b/uefi/Makefile @@ -26,6 +26,7 @@ endif LIBSRCS = $(filter-out $(wildcard crt_*.c),$(wildcard *.c)) $(wildcard *.S) TMP2 = $(LIBSRCS:.c=.o) LIBOBJS = $(TMP2:.S=.o) +MAKE ?= make # detect toolchain ifeq ($(wildcard /usr/bin/clang)$(wildcard /usr/local/bin/clang)$(wildcard /usr/lib/llvm/*/bin/clang),) @@ -82,7 +83,7 @@ $(OUTDIR): endif uefi/libuefi.a: - @make --no-print-directory -C uefi libuefi.a USE_GCC=$(USE_GCC) ARCH=$(ARCH) + @$(MAKE) --no-print-directory -C uefi libuefi.a USE_GCC=$(USE_GCC) ARCH=$(ARCH) libuefi.lib: $(LIBOBJS)