summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2015-06-06 16:28:08 -0700
committerJosh Haberman <jhaberman@gmail.com>2015-06-06 16:28:08 -0700
commit7333db596e99aab35a98f884f15e975837247e45 (patch)
tree8de341ce68ee43bc8c20e0ac3258c83c1cda292b /Makefile
parentd9485c28ed42df3f1a418f446203c780b6e31e3a (diff)
Parameterize AR properly in the Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d67beb0..9d38583 100644
--- a/Makefile
+++ b/Makefile
@@ -46,6 +46,7 @@ UPB_FAIL_WARNINGS?=no
# We are C89/C++98, with the one exception that we need stdint and "long long."
CC?=cc
CXX?=c++
+AR?=ar
CFLAGS=
CXXFLAGS=
INCLUDE=-I.
@@ -221,11 +222,11 @@ endif
$(UPB_PICLIBS): lib/lib%_pic.a: $(call make_objs,lo)
$(E) AR $@
- $(Q) mkdir -p lib && ar rcs $@ $^
+ $(Q) mkdir -p lib && $(AR) rcs $@ $^
$(UPB_LIBS): lib/lib%.a: $(call make_objs,o)
$(E) AR $@
- $(Q) mkdir -p lib && ar rcs $@ $^
+ $(Q) mkdir -p lib && $(AR) rcs $@ $^
obj/upb/%.o: upb/%.c | $$(@D)/.
@@ -370,7 +371,7 @@ googlepbtests: googlepb $(GOOGLEPB_TESTS)
lib/libupb.bindings.googlepb.a: $(upb_bindings_googlepb_SRCS:upb/%.cc=obj/upb/%.o)
$(E) AR $@
- $(Q) mkdir -p lib && ar rcs $@ $^
+ $(Q) mkdir -p lib && $(AR) rcs $@ $^
# Generate C++ with Google's protobuf compiler, to test and benchmark against.
tests/google_messages.proto.pb: tests/google_messages.proto
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback