aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2024-02-18 12:04:44 +0100
committerMartin Mares <mj@ucw.cz>2024-02-18 12:04:44 +0100
commita8798cb1a28fe9e8db23b0962a2d3abe03e4cfea (patch)
treece28b762ea39242e7aed275cf4979f29120ccdd2
parent1154602d08c2d8e4bcf04ea4420e1e261ca8b8f0 (diff)
downloadpciutils-a8798cb1a28fe9e8db23b0962a2d3abe03e4cfea.tar.gz
Makefile: Additions to CFLAGS require an override
Otherwise, they are ignored when "make CFLAGS=something" is used.
-rw-r--r--Makefile4
1 files 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)