From 325a3c5008245e913a99832918b17276ee3949cb Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 31 Aug 2007 10:59:45 +0200 Subject: [PATCH] Allow to override ar and ranlib. --- ChangeLog | 5 +++++ Makefile | 2 ++ lib/Makefile | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6b5905c..962d642 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-08-31 Martin Mares + + * Makefile, lib/Makefile: `ar' and `ranlib' can be overriden to allow + cross-compilation. + 2007-08-27 Martin Mares * lib/names.c (pci_open): When calling gzopen(), use "rb" file mode diff --git a/Makefile b/Makefile index 192205c..016cdaa 100644 --- 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 diff --git a/lib/Makefile b/lib/Makefile index 9751eb5..2b6dac6 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -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),' \ -- 2.39.2