From a8798cb1a28fe9e8db23b0962a2d3abe03e4cfea Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 18 Feb 2024 12:04:44 +0100 Subject: [PATCH] Makefile: Additions to CFLAGS require an override Otherwise, they are ignored when "make CFLAGS=something" is used. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2f25691..cb98813 100644 --- a/Makefile +++ b/Makefile @@ -104,7 +104,7 @@ common.o: common.c pciutils.h $(PCIINC) compat/getopt.o: compat/getopt.c lspci$(EXEEXT): LDLIBS+=$(LIBKMOD_LIBS) -ls-kernel.o: CFLAGS+=$(LIBKMOD_CFLAGS) +ls-kernel.o: override CFLAGS+=$(LIBKMOD_CFLAGS) update-pciids: update-pciids.sh sed <$< >$@ "s@^DEST=.*@DEST=$(if $(IDSDIR),$(IDSDIR)/,)$(PCI_IDS)@;s@^PCI_COMPRESSED_IDS=.*@PCI_COMPRESSED_IDS=$(PCI_COMPRESSED_IDS)@;s@VERSION=.*@VERSION=$(VERSION)@" @@ -114,7 +114,7 @@ update-pciids: update-pciids.sh example$(EXEEXT): example.o lib/$(PCIIMPLIB) example.o: example.c $(PCIINC) -$(LMROBJS) pcilmr.o: CFLAGS+=-I . +$(LMROBJS) pcilmr.o: override CFLAGS+=-I . $(LMROBJS): %.o: %.c $(LMRINC) $(PCIINC) pciutils.h pcilmr: pcilmr.o $(LMROBJS) $(COMMON) lib/$(PCIIMPLIB) -- 2.39.2