--- Makefile.orig 2023-05-01 12:59:54 UTC +++ Makefile @@ -1,8 +1,8 @@ # Makefile for The PCI Utilities # (c) 1998--2023 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.10.0 DATE=2023-05-01 @@ -32,11 +32,11 @@ HWDB= ABI_VERSION=3 # Installation directories -PREFIX=/usr/local +#PREFIX=/usr/local BINDIR=$(PREFIX)/bin 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,13 +45,13 @@ PKGCFDIR=$(LIBDIR)/pkgconfig # Commands INSTALL=install DIRINSTALL=install -d -ifdef CROSS_COMPILE -STRIP=--strip-program $(CROSS_COMPILE)-strip -CC=$(CROSS_COMPILE)gcc -else -STRIP=-s -CC=cc -endif +#ifdef CROSS_COMPILE +#STRIP=--strip-program $(CROSS_COMPILE)-strip +#CC=$(CROSS_COMPILE)gcc +#else +#STRIP=-s +#CC=cc +#endif AR=$(CROSS_COMPILE)ar RANLIB=$(CROSS_COMPILE)ranlib DLLTOOL=$(CROSS_COMPILE)dlltool