--- Makefile.orig 2008-04-10 15:19:43.000000000 -0400 +++ Makefile 2010-09-11 14:58:25.000000000 -0400 @@ -2,20 +2,25 @@ # (c) 1998--2008 Martin Mares OPT=-O2 -CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes +CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -D__GNUC__ + +CC=mipsel-linux-gcc +CPP=mipsel-linux-cpp +CPPFLAGS=-I/mnt/include -I. -I.. -I/opt/nasoc/src/include +LDFLAGS=-L/mnt/lib VERSION=3.0.0 DATE=2008-04-10 # Host OS and release (override if you are cross-compiling) -HOST= +HOST=mipsel-linux RELEASE= # Support for compressed pci.ids (yes/no, default: detect) -ZLIB= +ZLIB=yes # Support for resolving ID's by DNS (yes/no, default: detect) -DNS= +DNS=yes # Build libpci as a shared library (yes/no; or local for testing; requires GCC) SHARED=no @@ -24,7 +29,7 @@ ABI_VERSION=.3 # Installation directories -PREFIX=/usr/local +PREFIX=/mnt SBINDIR=$(PREFIX)/sbin SHAREDIR=$(PREFIX)/share IDSDIR=$(SHAREDIR) @@ -36,9 +41,12 @@ # Commands INSTALL=install DIRINSTALL=install -d -STRIP=-s -AR=ar -RANLIB=ranlib +#STRIP=-s +STRIP= +#AR=ar +#RANLIB=ranlib +AR=mipsel-linux-ar +RANLIB=mipsel-linux-ranlib # Base name of the library (overriden on NetBSD, which has its own libpci) LIBNAME=libpci