diff options
author | Martin Mares <mj@ucw.cz> | 2024-02-18 12:04:44 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2024-02-18 12:04:44 +0100 |
commit | a8798cb1a28fe9e8db23b0962a2d3abe03e4cfea (patch) | |
tree | ce28b762ea39242e7aed275cf4979f29120ccdd2 | |
parent | 1154602d08c2d8e4bcf04ea4420e1e261ca8b8f0 (diff) | |
download | pciutils-a8798cb1a28fe9e8db23b0962a2d3abe03e4cfea.tar.gz |
Makefile: Additions to CFLAGS require an override
Otherwise, they are ignored when "make CFLAGS=something" is used.
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |