2013-11-16 18:00:53 -05:00
|
|
|
bin_PROGRAMS =
|
|
|
|
check_PROGRAMS =
|
|
|
|
noinst_PROGRAMS =
|
|
|
|
lib_LTLIBRARIES =
|
|
|
|
nobase_include_HEADERS =
|
|
|
|
pkgconfig_DATA =
|
|
|
|
BUILT_SOURCES =
|
|
|
|
TESTS =
|
|
|
|
CLEANFILES =
|
|
|
|
DISTCLEANFILES =
|
|
|
|
EXTRA_DIST =
|
|
|
|
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
|
|
|
|
2014-04-03 19:08:21 -04:00
|
|
|
EXTRA_DIST += LICENSE
|
|
|
|
EXTRA_DIST += README.md
|
|
|
|
|
2013-11-16 18:00:53 -05:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-include $(top_builddir)/config.h \
|
2013-11-18 13:53:28 -05:00
|
|
|
-I${top_srcdir}/protobuf-c \
|
|
|
|
-I${top_builddir} \
|
|
|
|
-I${top_srcdir}
|
2013-11-16 18:00:53 -05:00
|
|
|
AM_CFLAGS = ${my_CFLAGS}
|
|
|
|
AM_LDFLAGS =
|
|
|
|
|
2014-06-02 17:50:57 -04:00
|
|
|
# code coverage
|
|
|
|
|
|
|
|
AM_CFLAGS += ${CODE_COVERAGE_CFLAGS}
|
|
|
|
AM_LDFLAGS += ${CODE_COVERAGE_LDFLAGS}
|
|
|
|
CODE_COVERAGE_LCOV_OPTIONS = --no-external
|
|
|
|
CODE_COVERAGE_IGNORE_PATTERN = "$(abs_top_builddir)/t/*"
|
|
|
|
@CODE_COVERAGE_RULES@
|
|
|
|
|
2013-11-16 18:00:53 -05:00
|
|
|
#
|
|
|
|
# libprotobuf-c
|
|
|
|
#
|
|
|
|
|
2013-11-20 15:04:24 -05:00
|
|
|
LIBPROTOBUF_C_CURRENT=1
|
2013-11-16 18:00:53 -05:00
|
|
|
LIBPROTOBUF_C_REVISION=0
|
|
|
|
LIBPROTOBUF_C_AGE=0
|
|
|
|
|
|
|
|
lib_LTLIBRARIES += \
|
|
|
|
protobuf-c/libprotobuf-c.la
|
|
|
|
|
|
|
|
nobase_include_HEADERS += \
|
2014-01-13 18:09:18 -05:00
|
|
|
protobuf-c/protobuf-c.h
|
2013-11-16 18:00:53 -05:00
|
|
|
|
|
|
|
protobuf_c_libprotobuf_c_la_SOURCES = \
|
|
|
|
protobuf-c/protobuf-c.c \
|
2014-01-13 18:09:18 -05:00
|
|
|
protobuf-c/protobuf-c.h
|
2013-11-16 18:00:53 -05:00
|
|
|
|
|
|
|
protobuf_c_libprotobuf_c_la_LDFLAGS = $(AM_LDFLAGS) \
|
|
|
|
-version-info $(LIBPROTOBUF_C_CURRENT):$(LIBPROTOBUF_C_REVISION):$(LIBPROTOBUF_C_AGE) \
|
|
|
|
-no-undefined
|
|
|
|
|
2014-03-27 15:22:55 -04:00
|
|
|
if HAVE_LD_VERSION_SCRIPT
|
|
|
|
protobuf_c_libprotobuf_c_la_LDFLAGS += \
|
|
|
|
-Wl,--version-script=$(top_srcdir)/protobuf-c/libprotobuf-c.sym
|
|
|
|
else
|
|
|
|
protobuf_c_libprotobuf_c_la_LDFLAGS += \
|
|
|
|
-export-symbols-regex "^(protobuf_c_[a-z].*)"
|
|
|
|
endif
|
|
|
|
EXTRA_DIST += protobuf-c/libprotobuf-c.sym
|
|
|
|
|
2013-11-16 18:00:53 -05:00
|
|
|
pkgconfig_DATA += protobuf-c/libprotobuf-c.pc
|
|
|
|
CLEANFILES += protobuf-c/libprotobuf-c.pc
|
2014-01-17 11:10:39 -05:00
|
|
|
EXTRA_DIST += protobuf-c/libprotobuf-c.pc.in
|
2013-11-16 18:00:53 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# protoc-c
|
|
|
|
#
|
|
|
|
|
2014-01-13 17:25:29 -05:00
|
|
|
if BUILD_COMPILER
|
|
|
|
|
2013-11-16 18:00:53 -05:00
|
|
|
bin_PROGRAMS += protoc-c/protoc-c
|
|
|
|
protoc_c_protoc_c_SOURCES = \
|
|
|
|
protoc-c/c_bytes_field.cc \
|
|
|
|
protoc-c/c_bytes_field.h \
|
|
|
|
protoc-c/c_enum.cc \
|
|
|
|
protoc-c/c_enum.h \
|
|
|
|
protoc-c/c_enum_field.cc \
|
|
|
|
protoc-c/c_enum_field.h \
|
|
|
|
protoc-c/c_extension.cc \
|
|
|
|
protoc-c/c_extension.h \
|
|
|
|
protoc-c/c_field.cc \
|
|
|
|
protoc-c/c_field.h \
|
|
|
|
protoc-c/c_file.cc \
|
|
|
|
protoc-c/c_file.h \
|
|
|
|
protoc-c/c_generator.cc \
|
|
|
|
protoc-c/c_generator.h \
|
|
|
|
protoc-c/c_helpers.cc \
|
|
|
|
protoc-c/c_helpers.h \
|
|
|
|
protoc-c/c_message.cc \
|
|
|
|
protoc-c/c_message.h \
|
|
|
|
protoc-c/c_message_field.cc \
|
|
|
|
protoc-c/c_message_field.h \
|
|
|
|
protoc-c/c_primitive_field.cc \
|
|
|
|
protoc-c/c_primitive_field.h \
|
|
|
|
protoc-c/c_service.cc \
|
|
|
|
protoc-c/c_service.h \
|
|
|
|
protoc-c/c_string_field.cc \
|
|
|
|
protoc-c/c_string_field.h \
|
|
|
|
protoc-c/main.cc
|
2014-03-28 13:58:41 -04:00
|
|
|
protoc_c_protoc_c_CXXFLAGS = \
|
|
|
|
$(AM_CXXFLAGS) \
|
2013-11-16 18:00:53 -05:00
|
|
|
$(protobuf_CFLAGS)
|
|
|
|
protoc_c_protoc_c_LDADD = \
|
|
|
|
$(protobuf_LIBS) \
|
|
|
|
-lprotoc
|
|
|
|
|
|
|
|
#
|
|
|
|
# protobuf-c tests
|
|
|
|
#
|
|
|
|
|
2014-01-14 13:46:19 -05:00
|
|
|
LOG_COMPILER = $(VALGRIND)
|
2013-12-03 10:26:51 -08:00
|
|
|
|
2013-11-16 18:00:53 -05:00
|
|
|
check_PROGRAMS += \
|
|
|
|
t/generated-code/test-generated-code \
|
2014-04-03 17:08:33 -04:00
|
|
|
t/generated-code2/test-generated-code2 \
|
|
|
|
t/version/version
|
2013-11-16 18:00:53 -05:00
|
|
|
|
|
|
|
TESTS += \
|
|
|
|
t/generated-code/test-generated-code \
|
2014-04-03 17:08:33 -04:00
|
|
|
t/generated-code2/test-generated-code2 \
|
|
|
|
t/version/version
|
2013-11-16 18:00:53 -05:00
|
|
|
|
|
|
|
t_generated_code_test_generated_code_SOURCES = \
|
|
|
|
t/generated-code/test-generated-code.c \
|
|
|
|
t/test.pb-c.c
|
|
|
|
t_generated_code_test_generated_code_LDADD = \
|
|
|
|
protobuf-c/libprotobuf-c.la
|
|
|
|
|
|
|
|
t_generated_code2_test_generated_code2_SOURCES = \
|
|
|
|
t/generated-code2/test-generated-code2.c \
|
2015-02-14 17:27:24 -08:00
|
|
|
t/test-full.pb-c.c \
|
|
|
|
t/test-optimized.pb-c.c
|
2013-11-16 18:00:53 -05:00
|
|
|
t_generated_code2_test_generated_code2_LDADD = \
|
|
|
|
protobuf-c/libprotobuf-c.la
|
|
|
|
|
|
|
|
noinst_PROGRAMS += \
|
|
|
|
t/generated-code2/cxx-generate-packed-data
|
|
|
|
|
|
|
|
t_generated_code2_cxx_generate_packed_data_SOURCES = \
|
|
|
|
t/generated-code2/cxx-generate-packed-data.cc \
|
|
|
|
t/test-full.pb.cc
|
2014-09-08 13:42:32 +02:00
|
|
|
$(t_generated_code2_cxx_generate_packed_data_OBJECTS): t/test-full.pb.h
|
2014-03-28 13:58:41 -04:00
|
|
|
t_generated_code2_cxx_generate_packed_data_CXXFLAGS = \
|
|
|
|
$(AM_CXXFLAGS) \
|
2013-11-16 18:00:53 -05:00
|
|
|
$(protobuf_CFLAGS)
|
|
|
|
t_generated_code2_cxx_generate_packed_data_LDADD = \
|
|
|
|
$(protobuf_LIBS)
|
|
|
|
|
|
|
|
t/test.pb-c.c t/test.pb-c.h: $(top_builddir)/protoc-c/protoc-c$(EXEEXT) $(top_srcdir)/t/test.proto
|
2013-11-18 13:53:28 -05:00
|
|
|
$(AM_V_GEN)$(top_builddir)/protoc-c/protoc-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/test.proto
|
2013-11-16 18:00:53 -05:00
|
|
|
|
2015-02-14 17:27:24 -08:00
|
|
|
t/test-optimized.pb-c.c t/test-optimized.pb-c.h: $(top_builddir)/protoc-c/protoc-c$(EXEEXT) $(top_srcdir)/t/test-optimized.proto
|
|
|
|
$(AM_V_GEN)$(top_builddir)/protoc-c/protoc-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/test-optimized.proto
|
|
|
|
|
2013-11-16 18:00:53 -05:00
|
|
|
t/test-full.pb-c.c t/test-full.pb-c.h: $(top_builddir)/protoc-c/protoc-c$(EXEEXT) $(top_srcdir)/t/test-full.proto
|
2013-11-18 13:53:28 -05:00
|
|
|
$(AM_V_GEN)$(top_builddir)/protoc-c/protoc-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/test-full.proto
|
2013-11-16 18:00:53 -05:00
|
|
|
|
|
|
|
t/test-full.pb.cc t/test-full.pb.h: @PROTOC@ $(top_srcdir)/t/test-full.proto
|
2013-11-18 13:53:28 -05:00
|
|
|
$(AM_V_GEN)@PROTOC@ -I$(top_srcdir) --cpp_out=$(top_builddir) $(top_srcdir)/t/test-full.proto
|
2013-11-16 18:00:53 -05:00
|
|
|
|
|
|
|
t/generated-code2/test-full-cxx-output.inc: t/generated-code2/cxx-generate-packed-data$(EXEEXT)
|
|
|
|
$(AM_V_GEN)$(top_builddir)/t/generated-code2/cxx-generate-packed-data$(EXEEXT) > $(top_builddir)/t/generated-code2/test-full-cxx-output.inc
|
|
|
|
|
|
|
|
BUILT_SOURCES += \
|
|
|
|
t/test.pb-c.c t/test.pb-c.h \
|
|
|
|
t/test-full.pb-c.c t/test-full.pb-c.h \
|
2015-02-14 17:27:24 -08:00
|
|
|
t/test-optimized.pb-c.c t/test-optimized.pb-c.h \
|
2013-11-16 18:00:53 -05:00
|
|
|
t/test-full.pb.cc t/test-full.pb.h \
|
|
|
|
t/generated-code2/test-full-cxx-output.inc
|
|
|
|
|
2014-04-03 17:08:33 -04:00
|
|
|
t_version_version_SOURCES = \
|
|
|
|
t/version/version.c
|
|
|
|
t_version_version_LDADD = \
|
|
|
|
protobuf-c/libprotobuf-c.la
|
|
|
|
|
2014-01-13 17:25:29 -05:00
|
|
|
endif # BUILD_COMPILER
|
|
|
|
|
2013-11-16 18:00:53 -05:00
|
|
|
EXTRA_DIST += \
|
|
|
|
t/test.proto \
|
|
|
|
t/test-full.proto \
|
2015-02-14 17:27:24 -08:00
|
|
|
t/test-optimized.proto \
|
2013-11-16 18:00:53 -05:00
|
|
|
t/generated-code2/common-test-arrays.h
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
CLEANFILES += $(BUILT_SOURCES)
|
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
rm -vf `find $(top_distdir) -name '*.pb-c.[ch]' -o -name '*.pb.cc' -o -name '*.pb.h'`
|
2014-01-13 17:32:12 -05:00
|
|
|
|
|
|
|
install-data-hook:
|
2014-01-25 15:56:40 +00:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(includedir)/google/protobuf-c
|
|
|
|
cd $(DESTDIR)$(includedir)/google/protobuf-c && rm -vf protobuf-c.h
|
|
|
|
cd $(DESTDIR)$(includedir)/google/protobuf-c && $(LN_S) ../../protobuf-c/protobuf-c.h protobuf-c.h
|
2014-02-16 21:45:02 +00:00
|
|
|
|
2014-06-03 17:26:59 -04:00
|
|
|
#
|
|
|
|
# documentation
|
|
|
|
#
|
2014-02-17 09:24:51 +00:00
|
|
|
|
2014-06-03 17:26:59 -04:00
|
|
|
if HAVE_DOXYGEN
|
|
|
|
stamp-html: $(DOXYGEN_INPUT_FILES) $(top_builddir)/Doxyfile $(top_srcdir)/DoxygenLayout.xml $(include_HEADERS) $(nobase_include_HEADERS)
|
|
|
|
$(AM_V_GEN) $(DOXYGEN)
|
|
|
|
@touch $@
|
|
|
|
html-local: stamp-html
|
2014-02-16 21:45:02 +00:00
|
|
|
|
2014-06-03 17:26:59 -04:00
|
|
|
clean-local:
|
|
|
|
rm -rf $(top_builddir)/html $(top_builddir)/stamp-html
|
|
|
|
endif
|
2014-02-17 09:24:51 +00:00
|
|
|
|
2014-06-03 17:26:59 -04:00
|
|
|
EXTRA_DIST += Doxyfile.in
|
|
|
|
EXTRA_DIST += DoxygenLayout.xml
|
2014-09-08 16:56:43 -04:00
|
|
|
EXTRA_DIST += build-cmake/CMakeLists.txt
|