2004-08-28 16:21:25 +00:00
|
|
|
## @file
|
|
|
|
##
|
|
|
|
## $Id$
|
|
|
|
##
|
|
|
|
## $Date$
|
|
|
|
## $Author$
|
|
|
|
##
|
|
|
|
## @copy © Marc Wäckerlin
|
|
|
|
## @license LGPL, see file <a href="license.html">COPYING</a>
|
|
|
|
##
|
|
|
|
|
2005-04-10 15:01:28 +00:00
|
|
|
AM_CPPFLAGS += -I${top_srcdir}
|
2004-08-28 16:21:25 +00:00
|
|
|
|
|
|
|
if HAVE_STACKTRACE
|
|
|
|
AM_CPPFLAGS += -DHAVE_STACKTRACE
|
|
|
|
endif
|
2004-04-21 06:39:20 +00:00
|
|
|
|
2005-03-11 23:20:54 +00:00
|
|
|
CLEANFILES = doxygen.errors functiontrace_test.log \
|
|
|
|
mrwautofunctiontracelog4cxx_test.log \
|
|
|
|
mrwautofunctiontracelog4cxx_test-mt.log
|
2005-04-07 21:26:28 +00:00
|
|
|
examplesdir = ${pkgdatadir}/examples
|
2005-04-07 20:58:57 +00:00
|
|
|
dist_examples_DATA = ${top_srcdir}/mrw/examples/*
|
2004-04-21 19:03:38 +00:00
|
|
|
htmldir = ${pkgdatadir}/doc/html
|
2005-04-10 15:01:28 +00:00
|
|
|
html_DATA = ${top_builddir}/doc/html/index.html
|
2004-04-23 16:03:29 +00:00
|
|
|
pdfdir = ${pkgdatadir}/doc/pdf
|
2005-04-07 20:58:57 +00:00
|
|
|
dist_pdf_DATA = ${top_builddir}/doc/latex/@PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf
|
2004-04-21 19:03:38 +00:00
|
|
|
|
2004-08-28 16:21:25 +00:00
|
|
|
lib_LTLIBRARIES = libmrw.la
|
2005-03-11 23:20:54 +00:00
|
|
|
if HAVE_BOOST_THREAD
|
|
|
|
lib_LTLIBRARIES += libmrw-mt.la
|
|
|
|
endif
|
2004-08-28 16:21:25 +00:00
|
|
|
if HAVE_STACKTRACE
|
|
|
|
lib_LTLIBRARIES += libmrwexcstderr.la
|
2005-03-11 23:20:54 +00:00
|
|
|
if HAVE_THREADS
|
|
|
|
if HAVE_BOOST_THREAD
|
|
|
|
lib_LTLIBRARIES += libmrwexcstderr-mt.la
|
|
|
|
endif
|
|
|
|
endif
|
2005-11-29 10:46:34 +00:00
|
|
|
if AUTOFNTRACE
|
|
|
|
lib_LTLIBRARIES += libmrwautofunctiontracestdlog.la
|
|
|
|
if HAVE_THREADS
|
|
|
|
if HAVE_BOOST_THREAD
|
|
|
|
lib_LTLIBRARIES += libmrwautofunctiontracestdlog-mt.la
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2004-08-28 16:21:25 +00:00
|
|
|
if HAVE_LOG4CXX
|
2005-04-07 20:58:57 +00:00
|
|
|
lib_LTLIBRARIES += libmrwexclog4cxx.la \
|
|
|
|
libmrwlog4cxxconfiguration.la
|
2005-03-11 23:20:54 +00:00
|
|
|
if HAVE_THREADS
|
2005-04-07 20:58:57 +00:00
|
|
|
lib_LTLIBRARIES += libmrwlog4cxxconfiguration-mt.la
|
2005-03-11 23:20:54 +00:00
|
|
|
if HAVE_BOOST_THREAD
|
|
|
|
lib_LTLIBRARIES += libmrwexclog4cxx-mt.la
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
if AUTOFNTRACE
|
|
|
|
lib_LTLIBRARIES += libmrwautofunctiontracelog4cxx.la
|
|
|
|
if HAVE_THREADS
|
|
|
|
if HAVE_BOOST_THREAD
|
|
|
|
lib_LTLIBRARIES += libmrwautofunctiontracelog4cxx-mt.la
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2004-08-28 16:21:25 +00:00
|
|
|
endif
|
|
|
|
endif
|
2004-04-21 06:39:20 +00:00
|
|
|
|
2005-03-11 23:20:54 +00:00
|
|
|
libmrw_la_SOURCES = \
|
2004-11-25 18:33:18 +00:00
|
|
|
mrw.hpp version.cpp \
|
2004-10-11 18:33:53 +00:00
|
|
|
arg.cpp arg.hpp auto.hpp deque.hpp \
|
|
|
|
exception.cpp exception.hpp \
|
|
|
|
exec.cpp exec.hpp list.hpp \
|
|
|
|
map.hpp multimap.hpp multiset.hpp \
|
2005-02-28 07:14:58 +00:00
|
|
|
set.hpp \
|
2004-10-13 11:17:21 +00:00
|
|
|
smartpointer.hpp stdext.cpp stdext.hpp \
|
2004-12-17 16:30:06 +00:00
|
|
|
string.hpp unistd.hpp vector.hpp regexp.hpp regexp.cpp \
|
2005-02-08 12:34:14 +00:00
|
|
|
tokenizer.hpp configfile.hpp configfile.cpp file.hpp \
|
2005-02-28 08:10:24 +00:00
|
|
|
errno.hpp errno.cpp
|
|
|
|
if HAVE_LTDL
|
|
|
|
libmrw_la_SOURCES += dynamiclibrary.hpp
|
|
|
|
endif
|
2005-02-28 07:14:58 +00:00
|
|
|
if HAVE_LOG4CXX
|
|
|
|
libmrw_la_SOURCES += functiontrace.cpp functiontrace.hpp
|
|
|
|
endif
|
2004-08-28 16:21:25 +00:00
|
|
|
if HAVE_STACKTRACE
|
2005-03-11 23:20:54 +00:00
|
|
|
libmrw_la_SOURCES += \
|
2004-11-25 18:33:18 +00:00
|
|
|
stacktrace.hpp stacktrace.cpp
|
2004-08-28 16:21:25 +00:00
|
|
|
endif
|
2004-10-07 09:29:17 +00:00
|
|
|
libmrw_la_LDFLAGS = -version-info @LIB_VERSION@
|
2005-03-11 23:20:54 +00:00
|
|
|
libmrw_la_LIBADD =
|
2005-02-28 07:14:58 +00:00
|
|
|
if HAVE_STACKTRACE
|
2005-03-11 23:20:54 +00:00
|
|
|
libmrw_la_LIBADD += -lltdl
|
2005-02-28 07:14:58 +00:00
|
|
|
endif
|
2004-11-25 18:33:18 +00:00
|
|
|
|
2005-03-11 23:20:54 +00:00
|
|
|
if HAVE_THREADS
|
|
|
|
if HAVE_BOOST_THREAD
|
|
|
|
libmrw_mt_la_SOURCES = ${libmrw_la_SOURCES}
|
|
|
|
libmrw_mt_la_CXXFLAGS = @THREADS@
|
2006-09-25 15:12:47 +00:00
|
|
|
libmrw_mt_la_LDFLAGS = ${libmrw_la_LDFLAGS} -version-info @LIB_VERSION@ \
|
|
|
|
@THREADS@
|
2005-03-11 23:20:54 +00:00
|
|
|
libmrw_mt_la_LIBADD = ${libmrw_la_LIBADD} @BOOST_THREAD_LIB@
|
|
|
|
endif
|
|
|
|
endif
|
2004-11-25 18:33:18 +00:00
|
|
|
|
2004-08-28 16:21:25 +00:00
|
|
|
if HAVE_STACKTRACE
|
|
|
|
libmrwexcstderr_la_SOURCES = autostacktracestderr.cpp version.cpp
|
2004-10-07 09:29:17 +00:00
|
|
|
libmrwexcstderr_la_LDFLAGS = -version-info @LIB_VERSION@
|
2005-04-07 20:58:57 +00:00
|
|
|
libmrwexcstderr_la_LIBADD = ${top_builddir}/mrw/libmrw.la
|
2005-03-11 23:20:54 +00:00
|
|
|
if HAVE_THREADS
|
|
|
|
if HAVE_BOOST_THREAD
|
|
|
|
libmrwexcstderr_mt_la_SOURCES = autostacktracestderr.cpp version.cpp
|
|
|
|
libmrwexcstderr_mt_la_CXXFLAGS = @THREADS@
|
|
|
|
libmrwexcstderr_mt_la_LDFLAGS = -version-info @LIB_VERSION@ @THREADS@
|
2005-04-07 20:58:57 +00:00
|
|
|
libmrwexcstderr_mt_la_LIBADD = ${top_builddir}/mrw/libmrw-mt.la
|
2005-03-11 23:20:54 +00:00
|
|
|
endif
|
|
|
|
endif
|
2004-04-21 06:39:20 +00:00
|
|
|
|
2005-11-29 10:46:34 +00:00
|
|
|
if AUTOFNTRACE
|
|
|
|
libmrwautofunctiontracestdlog_la_SOURCES = autofunctiontracestdlog.cpp \
|
|
|
|
version.cpp
|
|
|
|
libmrwautofunctiontracestdlog_la_CXXFLAGS = -w
|
|
|
|
libmrwautofunctiontracestdlog_la_LDFLAGS = -version-info @LIB_VERSION@
|
|
|
|
libmrwautofunctiontracestdlog_la_LIBADD = ${top_builddir}/mrw/libmrw.la
|
|
|
|
if HAVE_THREADS
|
|
|
|
if HAVE_BOOST_THREAD
|
|
|
|
libmrwautofunctiontracestdlog_mt_la_SOURCES = \
|
|
|
|
autofunctiontracelog4cxx.cpp version.cpp
|
|
|
|
libmrwautofunctiontracestdlog_mt_la_CXXFLAGS = @THREADS@ -w
|
|
|
|
libmrwautofunctiontracestdlog_mt_la_LDFLAGS = \
|
|
|
|
-version-info @LIB_VERSION@ @THREADS@
|
|
|
|
libmrwautofunctiontracestdlog_mt_la_LIBADD = \
|
|
|
|
${top_builddir}/mrw/libmrw-mt.la
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2004-08-28 16:21:25 +00:00
|
|
|
if HAVE_LOG4CXX
|
|
|
|
libmrwexclog4cxx_la_SOURCES = autostacktracelog4cxx.cpp version.cpp
|
2004-10-07 09:29:17 +00:00
|
|
|
libmrwexclog4cxx_la_LDFLAGS = -version-info @LIB_VERSION@
|
2005-04-07 20:58:57 +00:00
|
|
|
libmrwexclog4cxx_la_LIBADD = ${top_builddir}/mrw/libmrw.la -llog4cxx
|
|
|
|
libmrwlog4cxxconfiguration_la_SOURCES = log4cxxconfiguration.cpp version.cpp
|
|
|
|
libmrwlog4cxxconfiguration_la_LDFLAGS = -version-info @LIB_VERSION@
|
|
|
|
libmrwlog4cxxconfiguration_la_LIBADD = -llog4cxx
|
2005-03-11 23:20:54 +00:00
|
|
|
if HAVE_THREADS
|
|
|
|
if HAVE_BOOST_THREAD
|
|
|
|
libmrwexclog4cxx_mt_la_SOURCES = autostacktracelog4cxx.cpp version.cpp
|
|
|
|
libmrwexclog4cxx_mt_la_CXXFLAGS = @THREADS@
|
|
|
|
libmrwexclog4cxx_mt_la_LDFLAGS = -version-info @LIB_VERSION@ @THREADS@
|
2005-04-07 20:58:57 +00:00
|
|
|
libmrwexclog4cxx_mt_la_LIBADD = ${top_builddir}/mrw/libmrw-mt.la -llog4cxx
|
|
|
|
libmrwlog4cxxconfiguration_mt_la_SOURCES = log4cxxconfiguration.cpp \
|
|
|
|
version.cpp
|
|
|
|
libmrwlog4cxxconfiguration_mt_la_CXXFLAGS = @THREADS@
|
|
|
|
libmrwlog4cxxconfiguration_mt_la_LDFLAGS = -version-info @LIB_VERSION@ \
|
|
|
|
@THREADS@
|
|
|
|
libmrwlog4cxxconfiguration_mt_la_LIBADD = -llog4cxx
|
2005-03-11 23:20:54 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
if AUTOFNTRACE
|
|
|
|
libmrwautofunctiontracelog4cxx_la_SOURCES = autofunctiontracelog4cxx.cpp \
|
|
|
|
version.cpp
|
|
|
|
libmrwautofunctiontracelog4cxx_la_CXXFLAGS = -w
|
|
|
|
libmrwautofunctiontracelog4cxx_la_LDFLAGS = -version-info @LIB_VERSION@
|
2005-04-07 20:58:57 +00:00
|
|
|
libmrwautofunctiontracelog4cxx_la_LIBADD = ${top_builddir}/mrw/libmrw.la -llog4cxx
|
2005-03-11 23:20:54 +00:00
|
|
|
if HAVE_THREADS
|
|
|
|
if HAVE_BOOST_THREAD
|
|
|
|
libmrwautofunctiontracelog4cxx_mt_la_SOURCES = \
|
|
|
|
autofunctiontracelog4cxx.cpp version.cpp
|
|
|
|
libmrwautofunctiontracelog4cxx_mt_la_CXXFLAGS = @THREADS@ -w
|
|
|
|
libmrwautofunctiontracelog4cxx_mt_la_LDFLAGS = \
|
|
|
|
-version-info @LIB_VERSION@ @THREADS@
|
|
|
|
libmrwautofunctiontracelog4cxx_mt_la_LIBADD = \
|
2005-04-07 20:58:57 +00:00
|
|
|
${top_builddir}/mrw/libmrw-mt.la -llog4cxx
|
2005-03-11 23:20:54 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2004-08-28 16:21:25 +00:00
|
|
|
endif
|
|
|
|
endif
|
2004-04-23 16:03:29 +00:00
|
|
|
|
2004-12-17 16:30:06 +00:00
|
|
|
check_PROGRAMS = auto_test smartpointer_test exec_test stdext_test regexp_test \
|
2005-11-29 10:46:34 +00:00
|
|
|
tokenizer_test configfile_test string_test
|
2005-02-28 08:10:24 +00:00
|
|
|
if HAVE_LTDL
|
|
|
|
check_PROGRAMS += dynamiclibrary_test
|
|
|
|
endif
|
2005-02-28 07:14:58 +00:00
|
|
|
if HAVE_LOG4CXX
|
|
|
|
check_PROGRAMS += functiontrace_test
|
|
|
|
endif
|
2005-04-07 20:58:57 +00:00
|
|
|
dist_check_SCRIPTS = configfile_check.sh
|
2004-08-28 16:21:25 +00:00
|
|
|
if HAVE_STACKTRACE
|
|
|
|
check_PROGRAMS += stacktrace_test mrwexcstderr_test
|
|
|
|
if HAVE_LOG4CXX
|
|
|
|
check_PROGRAMS += mrwexclog4cxx_test
|
2005-03-11 23:20:54 +00:00
|
|
|
if AUTOFNTRACE
|
|
|
|
check_PROGRAMS += mrwautofunctiontracelog4cxx_test
|
|
|
|
if HAVE_THREADS
|
|
|
|
if HAVE_BOOST_THREAD
|
|
|
|
check_PROGRAMS += mrwautofunctiontracelog4cxx_test-mt
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2004-08-28 16:21:25 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
auto_test_SOURCES = auto_test.cpp version.cpp
|
2005-04-10 15:01:28 +00:00
|
|
|
auto_test_CPPFLAGS = -I${top_srcdir} @CPPUNIT_CFLAGS@ -g3 -O0
|
2005-03-11 23:20:54 +00:00
|
|
|
auto_test_CXXFLAGS = -g3 -O0
|
2005-01-28 11:22:32 +00:00
|
|
|
auto_test_LDFLAGS = @CPPUNIT_LIBS@
|
2005-04-07 20:58:57 +00:00
|
|
|
auto_test_LDADD = ${top_builddir}/mrw/libmrw.la
|
2004-10-07 09:29:17 +00:00
|
|
|
if HAVE_STACKTRACE
|
2005-04-07 20:58:57 +00:00
|
|
|
auto_test_LDADD += ${top_builddir}/mrw/libmrwexcstderr.la
|
2004-10-07 09:29:17 +00:00
|
|
|
endif
|
2004-08-28 16:21:25 +00:00
|
|
|
smartpointer_test_SOURCES = smartpointer_test.cpp version.cpp
|
2005-04-10 15:01:28 +00:00
|
|
|
smartpointer_test_CPPFLAGS = -I${top_srcdir} @CPPUNIT_CFLAGS@ -g3 -O0
|
2005-03-11 23:20:54 +00:00
|
|
|
smartpointer_test_CXXFLAGS = -g3 -O0
|
2005-01-28 11:22:32 +00:00
|
|
|
smartpointer_test_LDFLAGS = @CPPUNIT_LIBS@
|
2005-04-07 20:58:57 +00:00
|
|
|
smartpointer_test_LDADD = ${top_builddir}/mrw/libmrw.la
|
2004-10-07 09:29:17 +00:00
|
|
|
if HAVE_STACKTRACE
|
2005-04-07 20:58:57 +00:00
|
|
|
smartpointer_test_LDADD += ${top_builddir}/mrw/libmrwexcstderr.la
|
2004-10-07 09:29:17 +00:00
|
|
|
endif
|
2004-08-28 16:21:25 +00:00
|
|
|
exec_test_SOURCES = exec_test.cpp version.cpp
|
2005-04-10 15:01:28 +00:00
|
|
|
exec_test_CPPFLAGS = -I${top_srcdir} @CPPUNIT_CFLAGS@ -g3 -O0
|
2005-03-11 23:20:54 +00:00
|
|
|
exec_test_CXXFLAGS = -g3 -O0
|
2005-01-28 11:22:32 +00:00
|
|
|
exec_test_LDFLAGS = @CPPUNIT_LIBS@
|
2005-04-07 20:58:57 +00:00
|
|
|
exec_test_LDADD = ${top_builddir}/mrw/libmrw.la
|
2004-10-07 09:29:17 +00:00
|
|
|
if HAVE_STACKTRACE
|
2005-04-07 20:58:57 +00:00
|
|
|
exec_test_LDADD += ${top_builddir}/mrw/libmrwexcstderr.la
|
2004-10-07 09:29:17 +00:00
|
|
|
endif
|
|
|
|
stdext_test_SOURCES = stdext_test.cpp version.cpp
|
2005-04-10 15:01:28 +00:00
|
|
|
stdext_test_CPPFLAGS = -I${top_srcdir} @CPPUNIT_CFLAGS@ -g3 -O0
|
2005-03-11 23:20:54 +00:00
|
|
|
stdext_test_CXXFLAGS = -g3 -O0
|
2005-01-28 11:22:32 +00:00
|
|
|
stdext_test_LDFLAGS = @CPPUNIT_LIBS@
|
2005-04-07 20:58:57 +00:00
|
|
|
stdext_test_LDADD = ${top_builddir}/mrw/libmrw.la
|
2004-10-07 09:29:17 +00:00
|
|
|
if HAVE_STACKTRACE
|
2005-04-07 20:58:57 +00:00
|
|
|
stdext_test_LDADD += ${top_builddir}/mrw/libmrwexcstderr.la
|
2004-10-07 09:29:17 +00:00
|
|
|
endif
|
2005-11-29 10:46:34 +00:00
|
|
|
string_test_SOURCES = string_test.cpp version.cpp
|
|
|
|
string_test_CPPFLAGS = -I${top_srcdir} @CPPUNIT_CFLAGS@ -g3 -O0
|
|
|
|
string_test_CXXFLAGS = -g3 -O0
|
|
|
|
string_test_LDFLAGS = @CPPUNIT_LIBS@
|
|
|
|
string_test_LDADD = ${top_builddir}/mrw/libmrw.la
|
|
|
|
if HAVE_STACKTRACE
|
|
|
|
string_test_LDADD += ${top_builddir}/mrw/libmrwexcstderr.la
|
|
|
|
endif
|
2004-12-14 20:22:42 +00:00
|
|
|
regexp_test_SOURCES = regexp_test.cpp version.cpp
|
2005-04-10 15:01:28 +00:00
|
|
|
regexp_test_CPPFLAGS = -I${top_srcdir} @CPPUNIT_CFLAGS@ -g3 -O0
|
2005-03-11 23:20:54 +00:00
|
|
|
regexp_test_CXXFLAGS = -g3 -O0
|
2005-01-28 11:22:32 +00:00
|
|
|
regexp_test_LDFLAGS = @CPPUNIT_LIBS@
|
2005-04-07 20:58:57 +00:00
|
|
|
regexp_test_LDADD = ${top_builddir}/mrw/libmrw.la
|
2004-12-14 20:22:42 +00:00
|
|
|
if HAVE_STACKTRACE
|
2005-04-07 20:58:57 +00:00
|
|
|
regexp_test_LDADD += ${top_builddir}/mrw/libmrwexcstderr.la
|
2004-12-14 20:22:42 +00:00
|
|
|
endif
|
2004-12-17 16:30:06 +00:00
|
|
|
tokenizer_test_SOURCES = tokenizer_test.cpp version.cpp
|
2005-04-10 15:01:28 +00:00
|
|
|
tokenizer_test_CPPFLAGS = -I${top_srcdir} @CPPUNIT_CFLAGS@ -g3 -O0
|
2005-03-11 23:20:54 +00:00
|
|
|
tokenizer_test_CXXFLAGS = -g3 -O0
|
2005-01-28 11:22:32 +00:00
|
|
|
tokenizer_test_LDFLAGS = @CPPUNIT_LIBS@
|
2005-04-07 20:58:57 +00:00
|
|
|
tokenizer_test_LDADD = ${top_builddir}/mrw/libmrw.la
|
2004-12-17 16:30:06 +00:00
|
|
|
if HAVE_STACKTRACE
|
2005-04-07 20:58:57 +00:00
|
|
|
tokenizer_test_LDADD += ${top_builddir}/mrw/libmrwexcstderr.la
|
2004-12-17 16:30:06 +00:00
|
|
|
endif
|
2005-01-07 00:33:51 +00:00
|
|
|
configfile_test_SOURCES = configfile_test.cpp version.cpp
|
2005-04-10 15:01:28 +00:00
|
|
|
configfile_test_CPPFLAGS = -I${top_srcdir} @CPPUNIT_CFLAGS@ -g3 -O0
|
2005-03-11 23:20:54 +00:00
|
|
|
configfile_test_CXXFLAGS = -g3 -O0
|
2005-01-28 11:22:32 +00:00
|
|
|
configfile_test_LDFLAGS = @CPPUNIT_LIBS@
|
2005-04-07 20:58:57 +00:00
|
|
|
configfile_test_LDADD = ${top_builddir}/mrw/libmrw.la
|
2005-01-07 00:33:51 +00:00
|
|
|
if HAVE_STACKTRACE
|
2005-04-07 20:58:57 +00:00
|
|
|
configfile_test_LDADD += ${top_builddir}/mrw/libmrwexcstderr.la
|
2005-01-07 00:33:51 +00:00
|
|
|
endif
|
2005-02-28 08:10:24 +00:00
|
|
|
if HAVE_LTDL
|
|
|
|
check_LTLIBRARIES = libdynamiclibrary_testlib.la
|
|
|
|
libdynamiclibrary_testlib_la_SOURCES = dynamiclibrary_testlib.cpp
|
|
|
|
libdynamiclibrary_testlib_la_LDFLAGS = -module -rpath /bullshit
|
|
|
|
dynamiclibrary_test_SOURCES = dynamiclibrary_test.cpp version.cpp
|
2005-04-10 15:01:28 +00:00
|
|
|
dynamiclibrary_test_CPPFLAGS = -I${top_srcdir} @CPPUNIT_CFLAGS@ -g3 -O0
|
2005-03-11 23:20:54 +00:00
|
|
|
dynamiclibrary_test_CXXFLAGS = -g3 -O0
|
2005-02-28 08:10:24 +00:00
|
|
|
dynamiclibrary_test_LDFLAGS = @CPPUNIT_LIBS@
|
2005-04-07 20:58:57 +00:00
|
|
|
dynamiclibrary_test_LDADD = ${top_builddir}/mrw/libmrw.la -lltdl
|
2005-02-28 08:10:24 +00:00
|
|
|
endif
|
2005-02-28 07:14:58 +00:00
|
|
|
if HAVE_LOG4CXX
|
|
|
|
functiontrace_test_SOURCES = functiontrace_test.cpp version.cpp
|
2005-04-10 15:01:28 +00:00
|
|
|
functiontrace_test_CPPFLAGS = -I${top_srcdir} @CPPUNIT_CFLAGS@ -g3 -O0
|
2005-03-11 23:20:54 +00:00
|
|
|
functiontrace_test_CXXFLAGS = -g3 -O0
|
2005-02-28 07:14:58 +00:00
|
|
|
functiontrace_test_LDFLAGS = @CPPUNIT_LIBS@
|
2005-04-07 20:58:57 +00:00
|
|
|
functiontrace_test_LDADD = ${top_builddir}/mrw/libmrw.la -llog4cxx
|
2005-02-18 15:51:08 +00:00
|
|
|
if HAVE_STACKTRACE
|
2005-04-07 20:58:57 +00:00
|
|
|
functiontrace_test_LDADD += ${top_builddir}/mrw/libmrwexcstderr.la
|
2005-02-28 07:14:58 +00:00
|
|
|
endif
|
2005-02-18 15:51:08 +00:00
|
|
|
endif
|
2004-08-28 16:21:25 +00:00
|
|
|
if HAVE_STACKTRACE
|
|
|
|
stacktrace_test_SOURCES = stacktrace_test.cpp version.cpp
|
2005-04-10 15:01:28 +00:00
|
|
|
stacktrace_test_CPPFLAGS = -I${top_srcdir} @CPPUNIT_CFLAGS@ -g3 -O0
|
2005-03-11 23:20:54 +00:00
|
|
|
stacktrace_test_CXXFLAGS = -g3 -O0
|
2005-01-28 11:22:32 +00:00
|
|
|
stacktrace_test_LDFLAGS = @CPPUNIT_LIBS@
|
2005-04-07 20:58:57 +00:00
|
|
|
stacktrace_test_LDADD = ${top_builddir}/mrw/libmrw.la ${top_builddir}/mrw/libmrwexcstderr.la
|
2004-08-28 16:21:25 +00:00
|
|
|
mrwexcstderr_test_SOURCES = mrwexcstderr_test.cpp version.cpp
|
2005-04-10 15:01:28 +00:00
|
|
|
mrwexcstderr_test_CPPFLAGS = -I${top_srcdir} @CPPUNIT_CFLAGS@ -g3 -O0
|
2005-03-11 23:20:54 +00:00
|
|
|
mrwexcstderr_test_CXXFLAGS = -g3 -O0
|
2005-01-28 11:22:32 +00:00
|
|
|
mrwexcstderr_test_LDFLAGS = @CPPUNIT_LIBS@
|
2005-04-07 20:58:57 +00:00
|
|
|
mrwexcstderr_test_LDADD = ${top_builddir}/mrw/libmrwexcstderr.la
|
2004-08-28 16:21:25 +00:00
|
|
|
if HAVE_LOG4CXX
|
|
|
|
mrwexclog4cxx_test_SOURCES = mrwexclog4cxx_test.cpp version.cpp
|
2005-04-10 15:01:28 +00:00
|
|
|
mrwexclog4cxx_test_CPPFLAGS = -I${top_srcdir} @CPPUNIT_CFLAGS@ -g3 -O0
|
2005-03-11 23:20:54 +00:00
|
|
|
mrwexclog4cxx_test_CXXFLAGS = -g3 -O0
|
2005-01-28 11:22:32 +00:00
|
|
|
mrwexclog4cxx_test_LDFLAGS = @CPPUNIT_LIBS@
|
2005-04-07 20:58:57 +00:00
|
|
|
mrwexclog4cxx_test_LDADD = ${top_builddir}/mrw/libmrwexclog4cxx.la -llog4cxx
|
2005-03-11 23:20:54 +00:00
|
|
|
if AUTOFNTRACE
|
|
|
|
mrwautofunctiontracelog4cxx_test_SOURCES = \
|
|
|
|
mrwautofunctiontracelog4cxx_test.cpp version.cpp
|
|
|
|
mrwautofunctiontracelog4cxx_test_CPPFLAGS = \
|
2005-04-10 15:01:28 +00:00
|
|
|
-I${top_srcdir} @CPPUNIT_CFLAGS@ -finstrument-functions -g3 -O0
|
2005-03-11 23:20:54 +00:00
|
|
|
mrwautofunctiontracelog4cxx_test_CXXFLAGS = -g3 -O0 -finstrument-functions
|
|
|
|
mrwautofunctiontracelog4cxx_test_LDFLAGS = \
|
|
|
|
@CPPUNIT_LIBS@ -finstrument-functions
|
|
|
|
mrwautofunctiontracelog4cxx_test_LDADD = \
|
2005-04-07 20:58:57 +00:00
|
|
|
-llog4cxx ${top_builddir}/mrw/libmrwautofunctiontracelog4cxx.la
|
2005-03-11 23:20:54 +00:00
|
|
|
if HAVE_THREADS
|
|
|
|
if HAVE_BOOST_THREAD
|
|
|
|
mrwautofunctiontracelog4cxx_test_mt_SOURCES = \
|
|
|
|
mrwautofunctiontracelog4cxx_test.cpp version.cpp
|
|
|
|
mrwautofunctiontracelog4cxx_test_mt_CPPFLAGS = \
|
2005-04-10 15:01:28 +00:00
|
|
|
-I${top_srcdir} @CPPUNIT_CFLAGS@ -finstrument-functions -g3 -O0
|
2005-03-11 23:20:54 +00:00
|
|
|
mrwautofunctiontracelog4cxx_test_mt_CXXFLAGS = -g3 -O0 \
|
|
|
|
-finstrument-functions @THREADS@
|
|
|
|
mrwautofunctiontracelog4cxx_test_mt_LDFLAGS = \
|
|
|
|
@CPPUNIT_LIBS@ @THREADS@ -finstrument-functions
|
|
|
|
mrwautofunctiontracelog4cxx_test_mt_LDADD = \
|
2005-04-07 20:58:57 +00:00
|
|
|
-llog4cxx ${top_builddir}/mrw/libmrwautofunctiontracelog4cxx-mt.la @BOOST_THREAD_LIB@
|
2005-03-11 23:20:54 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2004-08-28 16:21:25 +00:00
|
|
|
endif
|
|
|
|
endif
|
2005-04-07 20:58:57 +00:00
|
|
|
|
|
|
|
dist_check_DATA = test.dat configfile.ini configfile.ini.result
|
2005-04-10 15:01:28 +00:00
|
|
|
EXTRA_DIST = head.html foot.html style.css
|
2005-04-07 20:58:57 +00:00
|
|
|
TESTS = ${check_PROGRAMS} ${dist_check_SCRIPTS}
|
2004-04-21 06:39:20 +00:00
|
|
|
|
2005-04-14 15:56:07 +00:00
|
|
|
.PHONY: doc clean-local distclean-local dist-hool install-data-hook \
|
|
|
|
uninstall-hook
|
2004-08-31 16:23:57 +00:00
|
|
|
|
2005-04-07 20:58:57 +00:00
|
|
|
deps = ${top_srcdir}/COPYING ${top_srcdir}/README ${top_srcdir}/INSTALL ${top_srcdir}/NEWS ${top_srcdir}/ChangeLog
|
2005-04-10 15:01:28 +00:00
|
|
|
|
2005-04-07 20:58:57 +00:00
|
|
|
doc: ${top_builddir}/doc/html/index.html ${top_builddir}/doc/latex/@PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf
|
2005-04-10 15:01:28 +00:00
|
|
|
|
|
|
|
${html_DATA}: doxyfile *.[ch]pp ${deps} style.css head.html foot.html
|
2005-04-07 20:58:57 +00:00
|
|
|
test -d ${top_builddir}/doc/latex || mkdir -p ${top_builddir}/doc/latex
|
|
|
|
test -d ${top_builddir}/doc/html || mkdir -p ${top_builddir}/doc/html
|
|
|
|
@test -f ${top_builddir}/doc/html/hintergrund.png || \
|
|
|
|
cp ~/www/marc/linux/hintergrund.png \
|
|
|
|
${top_builddir}/doc/html || \
|
2005-11-29 10:46:34 +00:00
|
|
|
( \
|
|
|
|
echo "**** sorry, you are missing the html background image"; \
|
|
|
|
echo " (after distclean doc/html/hintergrund.png is deleted)" \
|
|
|
|
)
|
2004-04-21 06:39:20 +00:00
|
|
|
doxygen doxyfile
|
2004-10-07 09:29:17 +00:00
|
|
|
if PEDANTIC
|
|
|
|
test \! -s doxygen.errors
|
|
|
|
endif
|
2005-04-10 15:01:28 +00:00
|
|
|
|
|
|
|
${top_builddir}/doc/latex/@PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf: doxyfile *.[ch]pp ${deps} ${html_DATA}
|
2005-04-07 20:58:57 +00:00
|
|
|
cd ${top_builddir}/doc/latex && make && \
|
2004-10-07 09:29:17 +00:00
|
|
|
mv refman.pdf @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf
|
2005-04-10 15:01:28 +00:00
|
|
|
|
2004-08-28 16:21:25 +00:00
|
|
|
clean-local:
|
|
|
|
- rm doxygen.err libmrw.doxytag
|
2005-04-10 15:01:28 +00:00
|
|
|
|
2005-04-14 15:56:07 +00:00
|
|
|
distclean-local:
|
|
|
|
- rm -r ${top_builddir}/doc/html/* ${top_builddir}/doc/latex/*
|
|
|
|
- rm makefile makefile.in doxygen.err libmrw.doxytag
|
|
|
|
|
2005-04-10 15:01:28 +00:00
|
|
|
dist-hook:
|
|
|
|
test -d ${distdir}/doc/html || \
|
|
|
|
mkdir -p ${distdir}/doc/html
|
|
|
|
cp ${top_builddir}/doc/html/* ${distdir}/doc/html/.
|
|
|
|
|
2005-04-07 20:58:57 +00:00
|
|
|
install-data-hook:
|
|
|
|
chmod -R u+w ${pkgdatadir}/doc
|
|
|
|
cp -rf ${top_builddir}/doc/html ${pkgdatadir}/doc/
|
|
|
|
|
|
|
|
uninstall-hook:
|
|
|
|
chmod -R u+w ${pkgdatadir}/doc
|
|
|
|
rm -rf ${pkgdatadir}/doc/html
|