PageRenderTime 43ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 1ms

/Makefile.am

http://protocol-buffers-actionscript.googlecode.com/
Makefile | 258 lines | 221 code | 21 blank | 16 comment | 1 complexity | 1e1c48270a86ae1776fff21cc8786a28 MD5 | raw file
  1. ## Process this file with automake to produce Makefile.in
  2. if GCC
  3. # These are good warnings to turn on by default
  4. AM_CXXFLAGS = $(PTHREAD_CFLAGS) -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare
  5. else
  6. AM_CXXFLAGS = $(PTHREAD_CFLAGS)
  7. endif
  8. AM_LDFLAGS = $(PTHREAD_CFLAGS)
  9. # If I say "dist_include_DATA", automake complains that $(includedir) is not
  10. # a "legitimate" directory for DATA. Screw you, automake.
  11. protodir = $(includedir)
  12. nobase_dist_proto_DATA = google/protobuf/descriptor.proto
  13. # Not sure why these don't get cleaned automatically.
  14. clean-local:
  15. rm -f *.loT
  16. CLEANFILES = $(protoc_outputs) unittest_proto_middleman
  17. MAINTAINERCLEANFILES = \
  18. Makefile.in
  19. nobase_include_HEADERS = \
  20. google/protobuf/stubs/common.h \
  21. google/protobuf/descriptor.h \
  22. google/protobuf/descriptor.pb.h \
  23. google/protobuf/descriptor_database.h \
  24. google/protobuf/dynamic_message.h \
  25. google/protobuf/extension_set.h \
  26. google/protobuf/generated_message_reflection.h \
  27. google/protobuf/message.h \
  28. google/protobuf/reflection_ops.h \
  29. google/protobuf/repeated_field.h \
  30. google/protobuf/service.h \
  31. google/protobuf/text_format.h \
  32. google/protobuf/unknown_field_set.h \
  33. google/protobuf/wire_format.h \
  34. google/protobuf/wire_format_inl.h \
  35. google/protobuf/io/coded_stream.h \
  36. google/protobuf/io/printer.h \
  37. google/protobuf/io/tokenizer.h \
  38. google/protobuf/io/zero_copy_stream.h \
  39. google/protobuf/io/zero_copy_stream_impl.h \
  40. google/protobuf/compiler/code_generator.h \
  41. google/protobuf/compiler/command_line_interface.h \
  42. google/protobuf/compiler/importer.h \
  43. google/protobuf/compiler/parser.h \
  44. google/protobuf/compiler/cpp/cpp_generator.h \
  45. google/protobuf/compiler/java/java_generator.h \
  46. google/protobuf/compiler/python/python_generator.h
  47. lib_LTLIBRARIES = libprotobuf.la libprotoc.la
  48. libprotobuf_la_LIBADD = $(PTHREAD_LIBS)
  49. libprotobuf_la_LDFLAGS = -version-info 0:0:0
  50. libprotobuf_la_SOURCES = \
  51. google/protobuf/stubs/common.cc \
  52. google/protobuf/stubs/hash.cc \
  53. google/protobuf/stubs/hash.h \
  54. google/protobuf/stubs/map-util.cc \
  55. google/protobuf/stubs/map-util.h \
  56. google/protobuf/stubs/stl_util-inl.cc \
  57. google/protobuf/stubs/stl_util-inl.h \
  58. google/protobuf/stubs/substitute.cc \
  59. google/protobuf/stubs/substitute.h \
  60. google/protobuf/stubs/strutil.cc \
  61. google/protobuf/stubs/strutil.h \
  62. google/protobuf/descriptor.cc \
  63. google/protobuf/descriptor.pb.cc \
  64. google/protobuf/descriptor_database.cc \
  65. google/protobuf/dynamic_message.cc \
  66. google/protobuf/extension_set.cc \
  67. google/protobuf/generated_message_reflection.cc \
  68. google/protobuf/message.cc \
  69. google/protobuf/reflection_ops.cc \
  70. google/protobuf/repeated_field.cc \
  71. google/protobuf/service.cc \
  72. google/protobuf/text_format.cc \
  73. google/protobuf/unknown_field_set.cc \
  74. google/protobuf/wire_format.cc \
  75. google/protobuf/io/coded_stream.cc \
  76. google/protobuf/io/printer.cc \
  77. google/protobuf/io/tokenizer.cc \
  78. google/protobuf/io/zero_copy_stream.cc \
  79. google/protobuf/io/zero_copy_stream_impl.cc \
  80. google/protobuf/compiler/importer.cc \
  81. google/protobuf/compiler/parser.cc
  82. libprotoc_la_LIBADD = $(PTHREAD_LIBS) libprotobuf.la
  83. libprotoc_la_LDFLAGS = -version-info 0:0:0
  84. libprotoc_la_SOURCES = \
  85. google/protobuf/compiler/code_generator.cc \
  86. google/protobuf/compiler/command_line_interface.cc \
  87. google/protobuf/compiler/cpp/cpp_enum.cc \
  88. google/protobuf/compiler/cpp/cpp_enum.h \
  89. google/protobuf/compiler/cpp/cpp_enum_field.cc \
  90. google/protobuf/compiler/cpp/cpp_enum_field.h \
  91. google/protobuf/compiler/cpp/cpp_extension.cc \
  92. google/protobuf/compiler/cpp/cpp_extension.h \
  93. google/protobuf/compiler/cpp/cpp_field.cc \
  94. google/protobuf/compiler/cpp/cpp_field.h \
  95. google/protobuf/compiler/cpp/cpp_file.cc \
  96. google/protobuf/compiler/cpp/cpp_file.h \
  97. google/protobuf/compiler/cpp/cpp_generator.cc \
  98. google/protobuf/compiler/cpp/cpp_helpers.cc \
  99. google/protobuf/compiler/cpp/cpp_helpers.h \
  100. google/protobuf/compiler/cpp/cpp_message.cc \
  101. google/protobuf/compiler/cpp/cpp_message.h \
  102. google/protobuf/compiler/cpp/cpp_message_field.cc \
  103. google/protobuf/compiler/cpp/cpp_message_field.h \
  104. google/protobuf/compiler/cpp/cpp_primitive_field.cc \
  105. google/protobuf/compiler/cpp/cpp_primitive_field.h \
  106. google/protobuf/compiler/cpp/cpp_service.cc \
  107. google/protobuf/compiler/cpp/cpp_service.h \
  108. google/protobuf/compiler/cpp/cpp_string_field.cc \
  109. google/protobuf/compiler/cpp/cpp_string_field.h \
  110. google/protobuf/compiler/java/java_enum.cc \
  111. google/protobuf/compiler/java/java_enum.h \
  112. google/protobuf/compiler/java/java_enum_field.cc \
  113. google/protobuf/compiler/java/java_enum_field.h \
  114. google/protobuf/compiler/java/java_extension.cc \
  115. google/protobuf/compiler/java/java_extension.h \
  116. google/protobuf/compiler/java/java_field.cc \
  117. google/protobuf/compiler/java/java_field.h \
  118. google/protobuf/compiler/java/java_file.cc \
  119. google/protobuf/compiler/java/java_file.h \
  120. google/protobuf/compiler/java/java_generator.cc \
  121. google/protobuf/compiler/java/java_helpers.cc \
  122. google/protobuf/compiler/java/java_helpers.h \
  123. google/protobuf/compiler/java/java_message.cc \
  124. google/protobuf/compiler/java/java_message.h \
  125. google/protobuf/compiler/java/java_message_field.cc \
  126. google/protobuf/compiler/java/java_message_field.h \
  127. google/protobuf/compiler/java/java_primitive_field.cc \
  128. google/protobuf/compiler/java/java_primitive_field.h \
  129. google/protobuf/compiler/java/java_service.cc \
  130. google/protobuf/compiler/java/java_service.h \
  131. google/protobuf/compiler/python/python_generator.cc \
  132. google/protobuf/compiler/as3/as3_enum.cc \
  133. google/protobuf/compiler/as3/as3_enum_field.cc \
  134. google/protobuf/compiler/as3/as3_extension.cc \
  135. google/protobuf/compiler/as3/as3_field.cc \
  136. google/protobuf/compiler/as3/as3_file.cc \
  137. google/protobuf/compiler/as3/as3_generator.cc \
  138. google/protobuf/compiler/as3/as3_helpers.cc \
  139. google/protobuf/compiler/as3/as3_message.cc \
  140. google/protobuf/compiler/as3/as3_message_field.cc \
  141. google/protobuf/compiler/as3/as3_primitive_field.cc \
  142. google/protobuf/compiler/as3/as3_service.cc
  143. bin_PROGRAMS = protoc
  144. protoc_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la
  145. protoc_SOURCES = google/protobuf/compiler/main.cc
  146. # Tests ==============================================================
  147. protoc_inputs = \
  148. google/protobuf/unittest.proto \
  149. google/protobuf/unittest_import.proto \
  150. google/protobuf/unittest_mset.proto \
  151. google/protobuf/unittest_optimize_for.proto \
  152. google/protobuf/unittest_embed_optimize_for.proto \
  153. google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto
  154. EXTRA_DIST = \
  155. $(protoc_inputs) \
  156. solaris/libstdc++.la \
  157. google/protobuf/testdata/golden_message \
  158. google/protobuf/testdata/text_format_unittest_data.txt \
  159. google/protobuf/testdata/text_format_unittest_extensions_data.txt
  160. protoc_outputs = \
  161. google/protobuf/unittest.pb.cc \
  162. google/protobuf/unittest.pb.h \
  163. google/protobuf/unittest_import.pb.cc \
  164. google/protobuf/unittest_import.pb.h \
  165. google/protobuf/unittest_mset.pb.cc \
  166. google/protobuf/unittest_mset.pb.h \
  167. google/protobuf/unittest_optimize_for.pb.cc \
  168. google/protobuf/unittest_optimize_for.pb.h \
  169. google/protobuf/unittest_embed_optimize_for.pb.cc \
  170. google/protobuf/unittest_embed_optimize_for.pb.h \
  171. google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.cc \
  172. google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.h
  173. BUILT_SOURCES = $(protoc_outputs)
  174. # This rule is a little weird. The first prereq is the protoc executable
  175. # and the rest are its inputs. Therefore, $^ -- which expands to the
  176. # list of prereqs -- is actually a valid command. We have to place "./" in
  177. # front of it in case protoc is in the current directory. protoc allows
  178. # flags to appear after input file names, so we happily stick the flags on
  179. # the end.
  180. #
  181. # For reference, if we didn't have to worry about VPATH (i.e., building from
  182. # a directory other than the package root), we could have just written this:
  183. # ./protoc$(EXEEXT) -I$(srcdir) --cpp_out=. $(protoc_inputs)
  184. unittest_proto_middleman: protoc$(EXEEXT) $(protoc_inputs)
  185. ./$^ -I$(srcdir) --cpp_out=.
  186. touch unittest_proto_middleman
  187. $(protoc_outputs): unittest_proto_middleman
  188. noinst_PROGRAMS = protobuf-test
  189. protobuf_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la
  190. protobuf_test_SOURCES = \
  191. google/protobuf/stubs/common_unittest.cc \
  192. google/protobuf/stubs/strutil_unittest.cc \
  193. google/protobuf/descriptor_database_unittest.cc \
  194. google/protobuf/descriptor_unittest.cc \
  195. google/protobuf/dynamic_message_unittest.cc \
  196. google/protobuf/extension_set_unittest.cc \
  197. google/protobuf/generated_message_reflection_unittest.cc \
  198. google/protobuf/message_unittest.cc \
  199. google/protobuf/reflection_ops_unittest.cc \
  200. google/protobuf/repeated_field_unittest.cc \
  201. google/protobuf/text_format_unittest.cc \
  202. google/protobuf/unknown_field_set_unittest.cc \
  203. google/protobuf/wire_format_unittest.cc \
  204. google/protobuf/io/coded_stream_unittest.cc \
  205. google/protobuf/io/printer_unittest.cc \
  206. google/protobuf/io/tokenizer_unittest.cc \
  207. google/protobuf/io/zero_copy_stream_unittest.cc \
  208. google/protobuf/compiler/command_line_interface_unittest.cc \
  209. google/protobuf/compiler/importer_unittest.cc \
  210. google/protobuf/compiler/parser_unittest.cc \
  211. google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc \
  212. google/protobuf/compiler/cpp/cpp_unittest.cc \
  213. google/protobuf/test_util.cc \
  214. google/protobuf/test_util.h \
  215. google/protobuf/testing/googletest.cc \
  216. google/protobuf/testing/googletest.h \
  217. google/protobuf/testing/file.cc \
  218. google/protobuf/testing/file.h \
  219. gtest/gtest.cc \
  220. gtest/gtest.h \
  221. gtest/gtest-death-test.cc \
  222. gtest/gtest-death-test.h \
  223. gtest/gtest-filepath.cc \
  224. gtest/gtest-internal-inl.h \
  225. gtest/gtest-message.h \
  226. gtest/gtest-port.cc \
  227. gtest/gtest-spi.h \
  228. gtest/gtest_main.cc \
  229. gtest/gtest_pred_impl.h \
  230. gtest/gtest_prod.h \
  231. gtest/internal/gtest-death-test-internal.h \
  232. gtest/internal/gtest-filepath.h \
  233. gtest/internal/gtest-internal.h \
  234. gtest/internal/gtest-port.h \
  235. gtest/internal/gtest-string.h
  236. nodist_protobuf_test_SOURCES = $(protoc_outputs)
  237. TESTS = protobuf-test