pkgconfig_DATA += thrift-z.pc
endif
-common_cxxflags = -Wall -Isrc $(BOOST_CPPFLAGS)
-common_ldflags = -Wall $(BOOST_LDFLAGS)
+AM_CXXFLAGS = -Wall
+AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(srcdir)/src
# Define the source files for the module
# Flags for the various libraries
-
-libthrift_la_CXXFLAGS = $(common_cxxflags)
-
-libthriftnb_la_CXXFLAGS = $(common_cxxflags)
-libthriftnb_la_CPPFLAGS = $(LIBEVENT_CPPFLAGS)
-
-libthriftz_la_CXXFLAGS = $(common_cxxflags)
-libthriftz_la_CPPFLAGS = $(ZLIB_CPPFLAGS)
+libthriftnb_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBEVENT_CPPFLAGS)
+libthriftz_la_CPPFLAGS = $(AM_CPPFLAGS) $(ZLIB_CPPFLAGS)
include_thriftdir = $(includedir)/thrift
include_thrift_HEADERS = \
- $(top_srcdir)/config.h \
+ $(top_builddir)/config.h \
src/Thrift.h \
src/TReflectionLocal.h \
src/reflection_limited_types.h \
concurrency_test_LDADD = libthrift.la
-concurrency_test_CXXFLAGS = $(common_cxxflags)
-concurrency_test_LDFLAGS = $(common_ldflags)
-
EXTRA_DIST = \
README \
thrift-nb.pc.in \
gen-cpp/ThriftTest.cpp \
gen-cpp/ThriftTest_types.cpp
-libtestgencpp_la_LIBADD = $(top_srcdir)/lib/cpp/libthrift.la
+libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
noinst_PROGRAMS = Benchmark
TFDTransportTest.cpp
TFDTransportTest_LDADD = \
- $(top_srcdir)/lib/cpp/libthrift.la
+ $(top_builddir)/lib/cpp/libthrift.la
#
TPipedTransportTest.cpp
TPipedTransportTest_LDADD = \
- $(top_srcdir)/lib/cpp/libthrift.la
+ $(top_builddir)/lib/cpp/libthrift.la
#
# DebugProtoTest
#
# Common thrift code generation rules
#
-THRIFT = $(top_srcdir)/compiler/cpp/thrift
+THRIFT = $(top_builddir)/compiler/cpp/thrift
gen-cpp/DebugProtoTest_types.cpp gen-cpp/PartiallyReflectable.cpp: DebugProtoTest.thrift
$(THRIFT) --gen cpp:dense,reflection_limited $<