X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Makefile.am;h=3756465fe5b73e745b56cd73347b76b6635e8f09;hb=f5cc8631a49cb33714a46845b66ffea5cf2c282b;hp=d9fde841ad86d661c0e37aab4145cac6aa8b6eb8;hpb=e334c48314062ac1a1843c741ac4f925ac7e2db2;p=platform%2Fupstream%2Fglog.git diff --git a/Makefile.am b/Makefile.am index d9fde84..3756465 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,7 @@ ## Process this file with automake to produce Makefile.in +AUTOMAKE_OPTIONS=subdir-objects + # Make sure that when we re-make ./configure, we get the macros we need ACLOCAL_AMFLAGS = -I m4 @@ -25,6 +27,10 @@ else endif endif +if DISABLE_RTTI + AM_CXXFLAGS += -fno-rtti +endif + glogincludedir = $(includedir)/glog ## The .h files you want to install (that is, .h files that people ## who install this package can include in their own applications.) @@ -47,7 +53,8 @@ lib_LTLIBRARIES = # The libraries libglog depends on. COMMON_LIBS = $(PTHREAD_LIBS) $(GFLAGS_LIBS) $(UNWIND_LIBS) # Compile switches for our unittest. -TEST_CFLAGS = $(GTEST_CFLAGS) $(GMOCK_CFLAGS) $(GFLAGS_CFLAGS) +TEST_CFLAGS = $(GTEST_CFLAGS) $(GMOCK_CFLAGS) $(GFLAGS_CFLAGS) \ + $(MINGW_CFLAGS) $(AM_CXXFLAGS) # Libraries for our unittest. TEST_LIBS = $(GTEST_LIBS) $(GMOCK_LIBS) $(GFLAGS_LIBS) @@ -81,13 +88,13 @@ logging_striplog_test_sh: logging_striptest0 logging_striptest2 logging_striptes check_SCRIPTS += demangle_unittest_sh noinst_SCRIPTS += src/demangle_unittest.sh demangle_unittest_sh: demangle_unittest - $(top_srcdir)/demangle_unittest # force to create lt-demangle_unittest + $(builddir)/demangle_unittest # force to create lt-demangle_unittest $(top_srcdir)/src/demangle_unittest.sh check_SCRIPTS += signalhandler_unittest_sh noinst_SCRIPTS += src/signalhandler_unittest.sh signalhandler_unittest_sh: signalhandler_unittest - $(top_srcdir)/signalhandler_unittest # force to create lt-signalhandler_unittest + $(builddir)/signalhandler_unittest # force to create lt-signalhandler_unittest $(top_srcdir)/src/signalhandler_unittest.sh TEST_BINARIES += logging_striptest0 @@ -191,7 +198,8 @@ libglog_la_SOURCES = $(gloginclude_HEADERS) \ src/base/commandlineflags.h src/googletest.h nodist_libglog_la_SOURCES = $(nodist_gloginclude_HEADERS) -libglog_la_CXXFLAGS = $(PTRHEAD_CFLAGS) $(GFLAGS_CFLAGS) -DNDEBUG +libglog_la_CXXFLAGS = $(PTRHEAD_CFLAGS) $(GFLAGS_CFLAGS) $(MINGW_CFLAGS) \ + $(AM_CXXFLAGS) -DNDEBUG libglog_la_LDFLAGS = $(PTRHEAD_CFLAGS) $(GFLAGS_LDFLAGS) libglog_la_LIBADD = $(COMMON_LIBS) @@ -223,7 +231,8 @@ dist-hook: libtool: $(LIBTOOL_DEPS) $(SHELL) ./config.status --recheck -EXTRA_DIST = packages/rpm.sh packages/rpm/rpm.spec packages/deb.sh packages/deb \ +EXTRA_DIST = packages/rpm.sh packages/rpm/rpm.spec \ + packages/deb.sh packages/deb/* \ $(SCRIPTS) src/logging_unittest.err src/demangle_unittest.txt \ src/windows/config.h src/windows/port.h src/windows/port.cc \ src/windows/preprocess.sh \ @@ -232,6 +241,9 @@ EXTRA_DIST = packages/rpm.sh packages/rpm/rpm.spec packages/deb.sh packages/deb src/windows/glog/vlog_is_on.h \ $(WINDOWS_PROJECTS) +CLEANFILES = core demangle.dm demangle.nm signalhandler.out* \ + signalhandler_unittest.*.log.INFO.* + # Add pkgconfig file pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libglog.pc