]> mj.ucw.cz Git - pciutils.git/commitdiff
Allow to override ar and ranlib.
authorMartin Mares <mj@ucw.cz>
Fri, 31 Aug 2007 08:59:45 +0000 (10:59 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 31 Aug 2007 08:59:45 +0000 (10:59 +0200)
ChangeLog
Makefile
lib/Makefile

index 6b5905cbbd781366e2943f13f306503deed11afb..962d6426b836f7b3e231b2c055c1f4c06a1c794f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-31  Martin Mares <mj@ucw.cz>
+
+       * Makefile, lib/Makefile: `ar' and `ranlib' can be overriden to allow
+       cross-compilation.
+
 2007-08-27  Martin Mares  <mj@ucw.cz>
 
        * lib/names.c (pci_open): When calling gzopen(), use "rb" file mode
index 192205c473bdd986b1cbc3630c34815ac8f5795b..016cdaa79dc8baa62ee7e6a2adc35c6955359f33 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,8 @@ LIBDIR=$(PREFIX)/lib
 PKGCFDIR=$(LIBDIR)/pkgconfig
 INSTALL=install
 DIRINSTALL=install -d
+AR=ar
+RANLIB=ranlib
 PCILIB=lib/libpci.a
 PCILIBPC=lib/libpci.pc
 PCIINC=lib/config.h lib/header.h lib/pci.h lib/types.h lib/sysdep.h
index 9751eb5b1376ba59d2c614fd2133285eab017e04..2b6dac6420b819c1d15696feaf6a46657b534c15 100644 (file)
@@ -54,8 +54,8 @@ all: $(PCILIB) $(PCILIBPC)
 
 $(PCILIB): $(OBJS)
        rm -f $@
-       ar rcs $@ $^
-       ranlib $@
+       $(AR) rcs $@ $^
+       $(RANLIB) $@
 
 $(PCILIBPC): $(PCILIBPC).in
        sed <$< >$@ -e 's,@PREFIX@,$(PREFIX),' \