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>
|
|
|
|
##
|
|
|
|
## $Log$
|
2004-10-07 16:16:34 +00:00
|
|
|
## Revision 1.10 2004/10/07 16:16:34 marc
|
|
|
|
## forgotten to save before last checkin...
|
|
|
|
##
|
2004-10-07 09:29:17 +00:00
|
|
|
## Revision 1.9 2004/10/07 09:29:17 marc
|
|
|
|
## new classes
|
|
|
|
## new versioning
|
|
|
|
## link tests with unexpected handler
|
|
|
|
## check doxygen.error
|
|
|
|
##
|
2004-09-09 20:09:06 +00:00
|
|
|
## Revision 1.8 2004/09/09 20:09:06 marc
|
|
|
|
## library versioning now works how i want it
|
|
|
|
##
|
2004-08-31 16:23:57 +00:00
|
|
|
## Revision 1.7 2004/08/31 16:23:57 marc
|
|
|
|
## added .PHONY
|
|
|
|
##
|
2004-08-28 16:21:25 +00:00
|
|
|
## Revision 1.6 2004/08/28 16:21:25 marc
|
|
|
|
## mrw-c++-0.92 (mrw)
|
|
|
|
## - new file: version.cpp
|
|
|
|
## - new file header for all sources
|
|
|
|
## - work around warning in mrw::auto<T>
|
|
|
|
## - possibility to compile without log4cxx
|
|
|
|
## - work around bugs in demangle.h and libiberty.h
|
|
|
|
## - corrections in documentation
|
|
|
|
## - added simple tracing mechanism
|
|
|
|
## - more warnings
|
|
|
|
## - small corrections in Auto<>::Free and a new test for it
|
|
|
|
## - possibility to compile without stack trace
|
|
|
|
##
|
|
|
|
|
|
|
|
AM_CPPFLAGS += -I..
|
|
|
|
|
|
|
|
if HAVE_STACKTRACE
|
|
|
|
AM_CPPFLAGS += -DHAVE_STACKTRACE
|
|
|
|
endif
|
2004-04-21 06:39:20 +00:00
|
|
|
|
2004-09-09 20:09:06 +00:00
|
|
|
CLEANFILES = doxygen.errors
|
2004-04-21 19:03:38 +00:00
|
|
|
examplesdir = ${pkgdatadir}/examples
|
|
|
|
examples_DATA = examples/*
|
|
|
|
htmldir = ${pkgdatadir}/doc/html
|
2004-08-28 16:21:25 +00:00
|
|
|
html_DATA = doc/html/index.html doc/html/*
|
2004-04-23 16:03:29 +00:00
|
|
|
pdfdir = ${pkgdatadir}/doc/pdf
|
2004-09-09 20:09:06 +00:00
|
|
|
pdf_DATA = doc/latex/@PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf
|
2004-04-23 16:03:29 +00:00
|
|
|
EXTRA_DIST = test.dat ${examples_DATA} ${html_DATA} ${pdf_DATA}
|
2004-04-21 19:03:38 +00:00
|
|
|
|
2004-08-28 16:21:25 +00:00
|
|
|
lib_LTLIBRARIES = libmrw.la
|
|
|
|
if HAVE_STACKTRACE
|
|
|
|
lib_LTLIBRARIES += libmrwexcstderr.la
|
|
|
|
if HAVE_LOG4CXX
|
|
|
|
lib_LTLIBRARIES += libmrwexclog4cxx.la
|
|
|
|
endif
|
|
|
|
endif
|
2004-04-21 06:39:20 +00:00
|
|
|
|
|
|
|
libmrw_la_SOURCES = mrw.hpp \
|
2004-10-07 16:16:34 +00:00
|
|
|
auto.hpp unistd.hpp \
|
|
|
|
stacktrace.hpp exception.hpp exception.cpp \
|
|
|
|
exec.hpp exec.cpp arg.hpp arg.cpp smartpointer.hpp \
|
2004-10-07 09:29:17 +00:00
|
|
|
string.hpp \
|
|
|
|
list.hpp vector.hpp deque.hpp \
|
|
|
|
set.hpp map.hpp \
|
|
|
|
multiset.hpp multimap.hpp \
|
|
|
|
version.cpp
|
2004-08-28 16:21:25 +00:00
|
|
|
if HAVE_STACKTRACE
|
|
|
|
libmrw_la_SOURCES += stacktrace.hpp stacktrace.cpp
|
|
|
|
endif
|
2004-10-07 09:29:17 +00:00
|
|
|
libmrw_la_LDFLAGS = -version-info @LIB_VERSION@
|
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@
|
2004-08-28 16:21:25 +00:00
|
|
|
libmrwexcstderr_la_LIBADD = -lmrw
|
2004-04-21 06:39:20 +00:00
|
|
|
|
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@
|
2004-08-28 16:21:25 +00:00
|
|
|
libmrwexclog4cxx_la_LIBADD = -lmrw
|
|
|
|
endif
|
|
|
|
endif
|
2004-04-23 16:03:29 +00:00
|
|
|
|
2004-10-07 09:29:17 +00:00
|
|
|
check_PROGRAMS = auto_test smartpointer_test exec_test stdext_test
|
2004-08-28 16:21:25 +00:00
|
|
|
if HAVE_STACKTRACE
|
|
|
|
check_PROGRAMS += stacktrace_test mrwexcstderr_test
|
|
|
|
if HAVE_LOG4CXX
|
|
|
|
check_PROGRAMS += mrwexclog4cxx_test
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
auto_test_SOURCES = auto_test.cpp version.cpp
|
2004-04-21 19:03:38 +00:00
|
|
|
auto_test_CPPFLAGS = -I.. -g3
|
|
|
|
auto_test_LDADD = -lmrw -lcppunit
|
2004-10-07 09:29:17 +00:00
|
|
|
if HAVE_STACKTRACE
|
|
|
|
auto_test_LDADD += -lmrwexcstderr
|
|
|
|
endif
|
2004-08-28 16:21:25 +00:00
|
|
|
smartpointer_test_SOURCES = smartpointer_test.cpp version.cpp
|
2004-04-27 20:26:50 +00:00
|
|
|
smartpointer_test_CPPFLAGS = -I.. -g3
|
|
|
|
smartpointer_test_LDADD = -lmrw -lcppunit
|
2004-10-07 09:29:17 +00:00
|
|
|
if HAVE_STACKTRACE
|
|
|
|
smartpointer_test_LDADD += -lmrwexcstderr
|
|
|
|
endif
|
2004-08-28 16:21:25 +00:00
|
|
|
exec_test_SOURCES = exec_test.cpp version.cpp
|
2004-04-21 19:03:38 +00:00
|
|
|
exec_test_CPPFLAGS = -I.. -g3
|
|
|
|
exec_test_LDADD = -lmrw -lcppunit
|
2004-10-07 09:29:17 +00:00
|
|
|
if HAVE_STACKTRACE
|
|
|
|
exec_test_LDADD += -lmrwexcstderr
|
|
|
|
endif
|
|
|
|
stdext_test_SOURCES = stdext_test.cpp version.cpp
|
|
|
|
stdext_test_CPPFLAGS = -I.. -g3
|
|
|
|
stdext_test_LDADD = -lmrw -lcppunit
|
|
|
|
if HAVE_STACKTRACE
|
|
|
|
stdext_test_LDADD += -lmrwexcstderr
|
|
|
|
endif
|
2004-08-28 16:21:25 +00:00
|
|
|
if HAVE_STACKTRACE
|
|
|
|
stacktrace_test_SOURCES = stacktrace_test.cpp version.cpp
|
|
|
|
stacktrace_test_CPPFLAGS = -I.. -g3
|
2004-10-07 09:29:17 +00:00
|
|
|
stacktrace_test_LDADD = -lmrw -lcppunit -lmrwexcstderr
|
2004-08-28 16:21:25 +00:00
|
|
|
mrwexcstderr_test_SOURCES = mrwexcstderr_test.cpp version.cpp
|
|
|
|
mrwexcstderr_test_CPPFLAGS = -I.. -g3
|
|
|
|
mrwexcstderr_test_LDADD = -lmrwexcstderr -lcppunit
|
|
|
|
if HAVE_LOG4CXX
|
|
|
|
mrwexclog4cxx_test_SOURCES = mrwexclog4cxx_test.cpp version.cpp
|
|
|
|
mrwexclog4cxx_test_CPPFLAGS = -I.. -g3
|
|
|
|
mrwexclog4cxx_test_LDADD = -lmrwexclog4cxx -lcppunit -llog4cxx
|
|
|
|
endif
|
|
|
|
endif
|
2004-04-21 19:03:38 +00:00
|
|
|
TESTS = ${check_PROGRAMS}
|
2004-04-21 06:39:20 +00:00
|
|
|
|
2004-08-31 16:23:57 +00:00
|
|
|
.PHONY: doc clean-local distclean-local
|
|
|
|
|
2004-04-23 16:03:29 +00:00
|
|
|
deps = ../COPYING ../README ../INSTALL ../NEWS ../ChangeLog
|
2004-09-09 20:09:06 +00:00
|
|
|
doc: doc/html/index.html doc/latex/@PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf
|
2004-04-23 16:03:29 +00:00
|
|
|
doc/html/index.html: doxyfile *.[ch]pp ${deps}
|
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
|
2004-09-09 20:09:06 +00:00
|
|
|
doc/latex/@PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf: doxyfile *.[ch]pp ${deps}
|
2004-04-23 16:03:29 +00:00
|
|
|
cd doc/latex && make && \
|
2004-10-07 09:29:17 +00:00
|
|
|
mv refman.pdf @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf
|
2004-08-28 16:21:25 +00:00
|
|
|
clean-local:
|
|
|
|
- rm doxygen.err libmrw.doxytag
|
|
|
|
distclean-local:
|
|
|
|
- rm -r doc/html/* doc/latex/*
|
|
|
|
- rm makefile makefile.in doxygen.err libmrw.doxytag
|