This is helpful when the ar executable is named differently, for
example with an arch specific prefix.
# read mdb.c before changing any of them.
#
CC = gcc
+AR = ar
W = -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized
THREADS = -pthread
OPT = -O2 -g
./mtest && ./mdb_stat testdb
liblmdb.a: mdb.o midl.o
- ar rs $@ mdb.o midl.o
+ $(AR) rs $@ mdb.o midl.o
liblmdb.so: mdb.lo midl.lo
# $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS)