From 82e57b704a4f7149112f7d5bca9199aa9953e51e Mon Sep 17 00:00:00 2001 From: Ricardo Salveti Date: Tue, 28 May 2024 00:07:06 -0300 Subject: [PATCH] Makefile: prefer append on CFLAGS / LDFLAGS Append allows an external build system to pass custom cflags/ldflags to the local build system (make). Useful with Yocto / OE as additional options can be given besides what is set with a force set in the Makefile. Signed-off-by: Ricardo Salveti --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2289897..4724858 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ QDL := qdl RAMDUMP := qdl-ramdump -CFLAGS := -O2 -Wall -g `pkg-config --cflags libxml-2.0 libusb-1.0` -LDFLAGS := `pkg-config --libs libxml-2.0 libusb-1.0` +CFLAGS += -O2 -Wall -g `pkg-config --cflags libxml-2.0 libusb-1.0` +LDFLAGS += `pkg-config --libs libxml-2.0 libusb-1.0` prefix := /usr/local QDL_SRCS := firehose.c qdl.c sahara.c util.c patch.c program.c ufs.c usb.c