diff options
author | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2009-05-06 17:49:37 +0000 |
---|---|---|
committer | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2009-05-06 17:49:37 +0000 |
commit | 9824eda6b558cd88c63064017593521ecad2029f (patch) | |
tree | 51283c7de8f20ac7f54331296c8743fd5ab62b8c /src/Makefile.am | |
parent | 42c81e1a764d565823c203e9e07376379639ffa7 (diff) | |
download | protobuf-9824eda6b558cd88c63064017593521ecad2029f.tar.gz protobuf-9824eda6b558cd88c63064017593521ecad2029f.tar.bz2 protobuf-9824eda6b558cd88c63064017593521ecad2029f.zip |
enable cross-compiling
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 260834de..3e32c25e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -206,6 +206,14 @@ protoc_outputs = \ BUILT_SOURCES = $(protoc_outputs) +if USE_EXTERNAL_PROTOC + +unittest_proto_middleman: $(protoc_inputs) + $(PROTOC) -I$(srcdir) --cpp_out=. $(protoc_inputs) + touch unittest_proto_middleman + +else + # This rule is a little weird. The first prereq is the protoc executable # and the rest are its inputs. Therefore, $^ -- which expands to the # list of prereqs -- is actually a valid command. We have to place "./" in @@ -220,6 +228,8 @@ unittest_proto_middleman: protoc$(EXEEXT) $(protoc_inputs) ./$^ -I$(srcdir) --cpp_out=. touch unittest_proto_middleman +endif + $(protoc_outputs): unittest_proto_middleman COMMON_TEST_SOURCES = \ |