--- Makefile.orig 2020-05-30 22:17:26 UTC +++ Makefile @@ -1,8 +1,8 @@ # Makefile for The PCI Utilities # (c) 1998--2020 Martin Mares -OPT=-O2 -CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes +# OPT=-O2 +CFLAGS+=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes VERSION=3.7.0 DATE=2020-05-31 @@ -32,10 +32,10 @@ HWDB= ABI_VERSION=.3 # Installation directories -PREFIX=/usr/local +# PREFIX=/usr/local SBINDIR=$(PREFIX)/sbin SHAREDIR=$(PREFIX)/share -IDSDIR=$(SHAREDIR) +IDSDIR=$(SHAREDIR)/pciids MANDIR:=$(shell if [ -d $(PREFIX)/share/man ] ; then echo $(PREFIX)/share/man ; else echo $(PREFIX)/man ; fi) INCDIR=$(PREFIX)/include LIBDIR=$(PREFIX)/lib @@ -45,7 +45,7 @@ PKGCFDIR=$(LIBDIR)/pkgconfig INSTALL=install DIRINSTALL=install -d STRIP=-s -CC=$(CROSS_COMPILE)gcc +# CC=$(CROSS_COMPILE)gcc AR=$(CROSS_COMPILE)ar RANLIB=$(CROSS_COMPILE)ranlib