scummvm random work
[patches.git] / pciutils-build-touchup.patch
CommitLineData
5e993f12 1diff --git a/lib/Makefile b/lib/Makefile
2index 9751eb5..a98ef42 100644
3--- a/lib/Makefile
4+++ b/lib/Makefile
5@@ -50,12 +50,14 @@ OBJS += nbsd-libpci.o
6 PCILIB=libpciutils.a
7 endif
8
9+AR ?= ar
10+RANLIB ?= ranlib
11+
12 all: $(PCILIB) $(PCILIBPC)
13
14 $(PCILIB): $(OBJS)
15- rm -f $@
16- ar rcs $@ $^
17- ranlib $@
18+ $(AR) rcs $@ $^
19+ $(RANLIB) $@
20
21 $(PCILIBPC): $(PCILIBPC).in
22 sed <$< >$@ -e 's,@PREFIX@,$(PREFIX),' \