From 4357fe3d9fe6efde729218202bd1fa39422b3a23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Sat, 10 Dec 2011 10:15:28 +0000 Subject: [PATCH] middle of porting; unstable, don't checkout; refs #1 --- ChangeLog | 7 + bootstrap.sh | 4 +- configure.in | 144 +++++++---- debian/changelog | 5 + debian/changelog.in | 5 + debian/compat | 1 + debian/control | 22 ++ debian/copyright | 26 ++ debian/dirs | 0 debian/docs | 2 + debian/mrw-c++-dev.dirs | 3 + debian/mrw-c++-dev.install | 7 + debian/mrw-c++.dirs | 3 + debian/mrw-c++.doc-base.EX | 20 ++ debian/mrw-c++.install | 8 + debian/rules | 95 +++++++ debian/shlibs.local.ex | 1 + debian/watch.ex | 23 ++ makefile.am | 86 +++---- mrw/auto.hpp | 1 + mrw/exec.cpp | 5 + mrw/exec.hpp | 1 + mrw/file.hpp | 2 + src/main.cxx | 14 ++ src/makefile | 498 +++++++++++++++++++++++++++++++++++++ src/makefile.am | 39 +++ src/makefile.in | 498 +++++++++++++++++++++++++++++++++++++ src/mrw-c++.pc | 11 + src/mrw-c++.pc.in | 11 + src/version.cxx | 16 ++ src/version.cxx.in | 16 ++ 31 files changed, 1465 insertions(+), 109 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/changelog.in create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100644 debian/mrw-c++-dev.dirs create mode 100644 debian/mrw-c++-dev.install create mode 100644 debian/mrw-c++.dirs create mode 100644 debian/mrw-c++.doc-base.EX create mode 100644 debian/mrw-c++.install create mode 100755 debian/rules create mode 100644 debian/shlibs.local.ex create mode 100644 debian/watch.ex create mode 100644 src/main.cxx create mode 100644 src/makefile create mode 100644 src/makefile.am create mode 100644 src/makefile.in create mode 100644 src/mrw-c++.pc create mode 100644 src/mrw-c++.pc.in create mode 100644 src/version.cxx create mode 100644 src/version.cxx.in diff --git a/ChangeLog b/ChangeLog index b80f03f..15129e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +* Sat Dec 10 2011 Marc Waeckerlin - mrw-c++-4.0 (mrw) + - This is the last entry, further changes, see: + https://dev.marc.waeckerlin.org/projects/mrw-c++ +* Sat Dec 10 2011 Marc Waeckerlin - mrw-c++-4.0 (mrw) + - Ported to my usual project templates + - Started trac project managmenemt + - Some bugfixes for current compiler * Tue Mar 18 2008 Marc Waeckerlin - mrw-c++-3.3.0 (mrw) - Create Debian (Kubuntu) package - Adaptions for SuSE-Buildservice diff --git a/bootstrap.sh b/bootstrap.sh index 59aa175..6ca3020 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -10,10 +10,10 @@ ## @copy © Marc Wäckerlin ## @license LGPL, see file COPYING ## -## $Log$ +## $Log: bootstrap.sh,v $ ## Revision 1.3 2004/08/31 15:57:19 marc ## added file header ## -sed -e 's/^ *$/ ./g' -e 's/^/ /' < README > README.dpkg +test -f makefile && make distclean aclocal && libtoolize --force && automake -a && autoconf diff --git a/configure.in b/configure.in index 74791cd..28b91e2 100644 --- a/configure.in +++ b/configure.in @@ -1,56 +1,81 @@ -## @file -## -## $Id$ -## -## $Date$ -## $Author$ -## -## @copy © Marc Wäckerlin -## @license LGPL, see file COPYING -## -## 1 2 3 4 5 6 7 8 -## 45678901234567890123456789012345678901234567890123456789012345678901234567890 +# $Id$ +AC_ALIAS([AC_DEFINE_DIR], [AX_DEFINE_DIR]) +AC_DEFUN([AX_DEFINE_DIR], [ + prefix_NONE= + exec_prefix_NONE= + test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix + test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix +dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn +dnl refers to ${prefix}. Thus we have to use `eval' twice. + eval ax_define_dir="\"[$]$2\"" + eval ax_define_dir="\"$ax_define_dir\"" + AC_SUBST($1, "$ax_define_dir") + AC_DEFINE_UNQUOTED($1, "$ax_define_dir", [$3]) + test "$prefix_NONE" && prefix=NONE + test "$exec_prefix_NONE" && exec_prefix=NONE +]) -# init -AC_INIT([mrw/mrw.hpp.in]) -AC_CANONICAL_SYSTEM -PACKAGENAME=mrw-c++ -m4_define(x_major, 3) -m4_define(x_minor, 3) -m4_define(x_least, 0) -DEBBUILD=1 -RPMBUILD=1 -AC_SUBST(DEBBUILD) -AC_SUBST(RPMBUILD) +AC_INIT([README]) +SRC_DIR=src +TST_DIR=test +DOC_DIR=doc -# copy M4 to shell +m4_define(x_packagename, mrw-c++) +m4_define(x_major, 4) +m4_define(x_minor, 0) +PACKAGENAME=x_packagename MAJOR=x_major MINOR=x_minor -LEAST=x_least +BUILDDATE=$(date "+%d.%m.%Y/%H.%M") + +if svn info . 2>&1 > /dev/null; then + LEAST=$(LANG= svn info $path | sed -n 's/Revision: //p') + break; +else + LEAST=[$(pwd | sed -n 's,^.*/'${PACKAGENAME}'-'${MAJOR}'\.'${MINOR}'\.\([0-9]*\).*$,\1,p')] + if test -z "${LEAST}"; then + LEAST="ERROR CANNOT DETERMINE REVISION NUMBER from $(pwd)" + fi +fi + +AM_INIT_AUTOMAKE($PACKAGENAME, $MAJOR.$MINOR.$LEAST, [marc.waeckerlin@tech.swisssign.com]) + +# files to create +AC_CONFIG_FILES([makefile ${PACKAGENAME}.spec src/version.cxx + src/makefile test/makefile + doc/doxyfile doc/makefile + src/mrw/mrw.hxx + src/${PACKAGENAME}.pc debian/changelog]) + +# copy M4 to shell AC_SUBST(MAJOR) AC_SUBST(MINOR) AC_SUBST(LEAST) - -AM_INIT_AUTOMAKE($PACKAGENAME, $MAJOR.$MINOR.$LEAST, [marc@waeckerlin.org]) +AC_SUBST(BUILDDATE) # libtool versioning LIB_MAJOR=m4_eval(x_major+x_minor) -LIB_MINOR=x_least +LIB_MINOR=${LEAST} LIB_LEAST=x_minor LIB_VERSION="${LIB_MAJOR}:${LIB_MINOR}:${LIB_LEAST}" AC_SUBST(LIB_VERSION) +# home +AC_SUBST(HOME) + +# datadir for languages +AX_DEFINE_DIR([DATADIR], [datadir]) +#AC_SUBST(DATADIR) + # macros README=README AC_SUBST_FILE(README) -README_DEB=README.dpkg -AC_SUBST_FILE(README_DEB) CHANGE_LOG=ChangeLog AC_SUBST_FILE(CHANGE_LOG) -AUTHORS=AUTHORS -AC_SUBST_FILE(AUTHORS) -# Get rid of that stupid -O2 -g options! +AM_CPPFLAGS="-DPACKAGEVERSION='\"${VERSION}\"' -DPACKAGENAME='\"${PACKAGENAME}\"'" + +# Get rid of that stupid -O2 -g opions! CXXFLAGS="${CXXFLAGS:-}" # languages @@ -65,6 +90,7 @@ AC_PROG_MAKE_SET AC_PROG_LIBTOOL AC_CHECK_PROG(have_doxygen, doxygen, yes, no) AC_CHECK_PROG(have_dot, dot, yes, no) +PKG_PROG_PKG_CONFIG # solaris? AC_CHECK_HEADER(sys/old_procfs.h, [AM_CPPFLAGS=-D__solaris__]) @@ -92,22 +118,6 @@ AC_ARG_ENABLE(autofntrace, [ --disable-autofntrace disable automated function trace (requires gcc)], [with_autofntrace="$enableval"], [with_autofntrace="yes"]) AM_CONDITIONAL(AUTOFNTRACE, test "$with_autofntrace" = "yes" -a -n "$GCC") -AC_ARG_ENABLE(pedantic, - [ --enable-pedantic enable all warnings and checks, abort on warnings], - [have_pedantic="$enableval"; test "$enableval" = "yes" && \ - AM_CXXFLAGS="${AM_CXXFLAGS:-} -pedantic-errors -Wall -W -Wfloat-equal -Wundef -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-format-attribute -Wno-multichar -Wpacked -Wredundant-decls -Werror -Wshadow -Wcast-qual -Wno-ctor-dtor-privacy"], [have_pedantic="no"]) -dnl problem in libs: -Wshadow -Wcast-qual -dnl auto.hpp: -Wno-ctor-dtor-privacy (removed) -AM_CONDITIONAL(PEDANTIC, test "$have_pedantic" = "yes") -AC_ARG_ENABLE(dot, - [ --disable-dot disable dot graphic tools for documentation], - [have_dot="$enableval"]) -test "$enableval" = "yes" && HAVE_DOT="YES" || HAVE_DOT="NO"; -AC_ARG_ENABLE(doxygen, - [ --disable-doxygen disable build of documentation], - [have_doxygen="$enableval"]) -test "$enableval" = "yes" && HAVE_DOXYGEN="YES" || HAVE_DOXYGEN="NO"; -AM_CONDITIONAL(HAVE_DOXYGEN, test "$enableval" = "yes") AC_ARG_ENABLE(dir, [ --disable-dir disable POSIX directory access], [have_dir="$enableval"]) @@ -195,9 +205,41 @@ for ax_lib in $chk_libs; do done AC_SUBST(BOOST_THREAD_LIB) AM_CONDITIONAL(HAVE_BOOST_THREAD, test -n "$BOOST_THREAD_LIB") +AC_ARG_ENABLE(pedantic, + [AS_HELP_STRING([--enable-pedantic], + [enable all warnings and checks, abort on warnings])], + [have_pedantic="$enableval"; test "$enableval" = "yes" && \ + AM_CXXFLAGS="${AM_CXXFLAGS:-} -pedantic-errors -Wall -W -Wfloat-equal -Wundef -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-format-attribute -Wno-multichar -Wpacked -Wredundant-decls -Werror -Wshadow -Wcast-qual -Wno-ctor-dtor-privacy"]) +dnl problem in libs: -Wshadow -Wcast-qual +dnl auto.hpp: -Wno-ctor-dtor-privacy (removed) +AM_CONDITIONAL(PEDANTIC, test "$enableval" = "yes") +AC_ARG_ENABLE(dot, + [AS_HELP_STRING([--disable-dot], + [disable dot graphic tools for documentation])], + [have_dot="$enableval"]) +test "$enableval" = "yes" && HAVE_DOT="YES" || HAVE_DOT="NO"; +AC_ARG_ENABLE(doxygen, + [ --disable-doxygen disable build of documentation], + [have_doxygen="$enableval"]) +test "$enableval" = "yes" && HAVE_DOXYGEN="YES" || HAVE_DOXYGEN="NO"; +AM_CONDITIONAL(HAVE_DOXYGEN, test "$enableval" = "yes") AM_PATH_CPPUNIT([1.0.0], [have_cppunit="yes"], [have_cppunit="no"]) +MINGW32=no +MAC=no +case $host_os in + *mingw32*) MINGW32=yes;; + *darwin* | *rhapsody* | *macosx*) MAC=yes;; +esac +AM_CONDITIONAL(MINGW32, test "$MINGW32" = "yes") +AM_CONDITIONAL(MAC, test "$MAC" = "yes") + # export macros +SRCDIR=${srcdir} +AC_SUBST(SRCDIR) +AC_SUBST(SRC_DIR) +AC_SUBST(TST_DIR) +AC_SUBST(DOC_DIR) AC_SUBST(HAVE_DOT) AC_SUBST(HAVE_DOXYGEN) AC_SUBST(THREADS) @@ -207,11 +249,7 @@ AC_SUBST(AM_CPPFLAGS) AC_SUBST(LIBS) # create output -AC_CONFIG_FILES([makefile mrw-c++.spec mrw-c++-minimal.spec - mrw-c++.dsc debian.control debian.changelog debian.rules - mrw/makefile mrw/doxyfile mrw/mrw.hpp mrw/version.cpp]) AC_OUTPUT - # infos and warnings if test "$have_doxygen" = "no"; then AC_MSG_WARN([Missing program doxygen! diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..584edb0 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +mrw-c++ (0.0.267-1) unstable; urgency=low + + * see https://dev.swisssign.com/projects/mrw-c++ for changes + + -- Marc Wäckerlin (SwissSign AG) Wed, 07 Apr 2010 10:23:02 +0200 diff --git a/debian/changelog.in b/debian/changelog.in new file mode 100644 index 0000000..2bb697a --- /dev/null +++ b/debian/changelog.in @@ -0,0 +1,5 @@ +@PACKAGE@ (@VERSION@-1) unstable; urgency=low + + * see https://dev.swisssign.com/projects/mrw-c++ for changes + + -- Marc Wäckerlin (SwissSign AG) Wed, 07 Apr 2010 10:23:02 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..c1a2967 --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: mrw-c++ +Section: unknown +Priority: extra +Maintainer: Marc Wäckerlin (SwissSign AG) +Build-Depends: debhelper (>= 7), autotools-dev +Standards-Version: 3.8.1 +Section: libs +Homepage: https://dev.swisssign.com/projects/mrw-c++ + +Package: mrw-c++-dev +Section: libdevel +Architecture: any +Depends: mrw-c++ (= ${binary:Version}) +Description: mrw-c++ + . + +Package: mrw-c++ +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: mrw-c++ + . diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..9dcb31f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by Marc Wäckerlin (SwissSign AG) on +Wed, 07 Apr 2010 10:23:02 +0200. + +It was downloaded from https://dev.swisssign.com/projects/mrw-c++ + +Upstream Author(s): + + Marc Wäckerlin (SwissSign AG) + +Copyright: + + Marc Wäckerlin (SwissSign AG) + +License: + + LGPL version 3 + +The Debian packaging is: + + Copyright (C) 2010 Marc Wäckerlin (SwissSign AG) + +and is licensed under the GPL version 3, +see `/usr/share/common-licenses/GPL-3'. + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..e69de29 diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..50bd824 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +NEWS +README diff --git a/debian/mrw-c++-dev.dirs b/debian/mrw-c++-dev.dirs new file mode 100644 index 0000000..04e68f9 --- /dev/null +++ b/debian/mrw-c++-dev.dirs @@ -0,0 +1,3 @@ +#usr/lib +#usr/include +#usr/share diff --git a/debian/mrw-c++-dev.install b/debian/mrw-c++-dev.install new file mode 100644 index 0000000..f27f27f --- /dev/null +++ b/debian/mrw-c++-dev.install @@ -0,0 +1,7 @@ +usr/share/doc/mrw-c++ +#usr/include/* +#usr/lib/lib*.a +#usr/lib/lib*.so +#usr/lib/*.la +#usr/lib/pkgconfig +#usr/share/pkgconfig diff --git a/debian/mrw-c++.dirs b/debian/mrw-c++.dirs new file mode 100644 index 0000000..cd138e0 --- /dev/null +++ b/debian/mrw-c++.dirs @@ -0,0 +1,3 @@ +#usr/lib +#usr/bin +#usr/share diff --git a/debian/mrw-c++.doc-base.EX b/debian/mrw-c++.doc-base.EX new file mode 100644 index 0000000..721f3f5 --- /dev/null +++ b/debian/mrw-c++.doc-base.EX @@ -0,0 +1,20 @@ +Document: mrw-c++ +Title: Debian mrw-c++ Manual +Author: +Abstract: This manual describes what mrw-c++ is + and how it can be used to + manage online manuals on Debian systems. +Section: unknown + +Format: debiandoc-sgml +Files: /usr/share/doc/proxyface/proxyface.sgml.gz + +Format: postscript +Files: /usr/share/doc/proxyface/proxyface.ps.gz + +Format: text +Files: /usr/share/doc/proxyface/proxyface.text.gz + +Format: HTML +Index: /usr/share/doc/proxyface/html/index.html +Files: /usr/share/doc/proxyface/html/*.html diff --git a/debian/mrw-c++.install b/debian/mrw-c++.install new file mode 100644 index 0000000..b64de4e --- /dev/null +++ b/debian/mrw-c++.install @@ -0,0 +1,8 @@ +usr/bin/mrw-c++ +usr/share/doc/mrw-c++/AUTHORS +usr/share/doc/mrw-c++/NEWS +usr/share/doc/mrw-c++/README +usr/share/doc/mrw-c++/COPYING +usr/share/doc/mrw-c++/INSTALL +usr/share/doc/mrw-c++/ChangeLog +#usr/lib/lib*.so.* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..619c792 --- /dev/null +++ b/debian/rules @@ -0,0 +1,95 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +else +CROSS= --build $(DEB_BUILD_GNU_TYPE) +endif + + + +config.status: configure + dh_testdir +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" + + +build: build-stamp + +build-stamp: config.status + dh_testdir + $(MAKE) + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + [ ! -f [Mm]akefile ] || $(MAKE) distclean + rm -f config.sub config.guess + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + $(MAKE) prefix=$(CURDIR)/debian/tmp/usr install + + +# Build architecture-independent files here. +binary-indep: install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/debian/shlibs.local.ex b/debian/shlibs.local.ex new file mode 100644 index 0000000..2566e8d --- /dev/null +++ b/debian/shlibs.local.ex @@ -0,0 +1 @@ +libproxyface 1.0.34 proxyface (>> 1.0.34-0), proxyface (<< 1.0.34-99) diff --git a/debian/watch.ex b/debian/watch.ex new file mode 100644 index 0000000..9e3713b --- /dev/null +++ b/debian/watch.ex @@ -0,0 +1,23 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 3 file +version=3 + +# Uncomment to examine a Webpage +# +#http://www.example.com/downloads.php proxyface-(.*)\.tar\.gz + +# Uncomment to examine a Webserver directory +#http://www.example.com/pub/proxyface-(.*)\.tar\.gz + +# Uncommment to examine a FTP server +#ftp://ftp.example.com/pub/proxyface-(.*)\.tar\.gz debian uupdate + +# Uncomment to find new files on sourceforge, for devscripts >= 2.9 +# http://sf.net/proxyface/proxyface-(.*)\.tar\.gz + +# Uncomment to find new files on GooglePages +# http://example.googlepages.com/foo.html proxyface-(.*)\.tar\.gz diff --git a/makefile.am b/makefile.am index 93067fc..e232876 100644 --- a/makefile.am +++ b/makefile.am @@ -8,77 +8,55 @@ ## @copy © Marc Wäckerlin ## @license LGPL, see file COPYING ## +## 1 2 3 4 5 6 7 8 +## 45678901234567890123456789012345678901234567890123456789012345678901234567890 -SUBDIRS = mrw +SUBDIRS = @SRC_DIR@ @TST_DIR@ @DOC_DIR@ -EXTRA_DIST = bootstrap.sh checkinstall.sh +nobase_include_HEADERS = -nobase_include_HEADERS = mrw/arg.hpp mrw/list.hpp \ - mrw/unistd.hpp \ - mrw/auto.hpp mrw/map.hpp \ - mrw/smartpointer.hpp mrw/vector.hpp \ - mrw/deque.hpp mrw/multimap.hpp \ - mrw/exception.hpp mrw/multiset.hpp mrw/stdext.hpp \ - mrw/exec.hpp mrw/set.hpp mrw/string.hpp \ - mrw/regexp.hpp mrw/tokenizer.hpp \ - mrw/configfile.hpp mrw/file.hpp mrw/errno.hpp -if HAVE_STACKTRACE - nobase_include_HEADERS += mrw/stacktrace.hpp -endif -if HAVE_LTDL - nobase_include_HEADERS += mrw/dynamiclibrary.hpp -endif -if HAVE_LOG4CXX - nobase_include_HEADERS += mrw/functiontrace.hpp -endif -infosdir = ${pkgdatadir} -infos_DATA = AUTHORS NEWS README COPYING INSTALL ChangeLog \ - @PACKAGENAME@.spec @PACKAGENAME@.dsc debian.control debian.changelog debian.rules +EXTRA_DIST = bootstrap.sh debian -RPMS = /usr/src/packages/RPMS/i586/@PACKAGENAME@-minimal-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm \ - /usr/src/packages/RPMS/i586/@PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm \ - /usr/src/packages/RPMS/i586/@PACKAGENAME@-mt-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm \ +DISTCLEANFILES = debian/changelog + +deb: dist + tar xzvf @PACKAGE@-@VERSION@.tar.gz + cd @PACKAGE@-@VERSION@ && dpkg-buildpackage + rm -rf @PACKAGE@-@VERSION@ + +doc_DATA = AUTHORS NEWS README COPYING INSTALL ChangeLog @PACKAGENAME@.spec + +RPMS = /usr/src/packages/RPMS/i586/@PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm \ /usr/src/packages/RPMS/i586/@PACKAGENAME@-devel-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm \ /usr/src/packages/SRPMS/@PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@-1.src.rpm -.PHONY: release tag rpm webserver distclean-local +.PHONY: release tag rpm webserver \ + doc clean-local distclean-local dist-hool install-data-hook \ + uninstall-hook release: tag webserver -tag: distcheck - svn ci -m "Release @MAJOR@-@MINOR@-@LEAST@ with tag: REL_@PACKAGENAME@-@MAJOR@-@MINOR@-@LEAST@" . - svn cp . -m "Release @MAJOR@-@MINOR@-@LEAST@" file:///home/svn/pro/@PACKAGENAME@/tags/REL_@PACKAGENAME@-@MAJOR@-@MINOR@-@LEAST@ - rpm: dist - cp @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.tar.gz /usr/src/packages/SOURCES/ + cp @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.tar.gz \ + /usr/src/packages/SOURCES/ rpmbuild -ba --clean @PACKAGENAME@.spec - rpmbuild -bb --clean @PACKAGENAME@-minimal.spec -webserver: rpm webserver.en webserver.de webserver.zh - - rm -rf ~/www/marc/data/doxygen/mrw-cpp - mkdir -p ~/www/marc/data/doxygen/mrw-cpp - cp doc/html/*.html ~/www/marc/data/doxygen/mrw-cpp/ - cp doc/latex/@PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf \ - @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.tar.gz \ - ${RPMS} \ - log4cxx*.rpm \ - ~/www/marc/downloads/ - date +'%s 127.0.0.1 :computer:c_:mrw-c_:index mrw @PACKAGENAME@ version @MAJOR@.@MINOR@.@LEAST@' >> ~/www/marc/data/changes.log +deps = ${top_srcdir}/COPYING ${top_srcdir}/README ${top_srcdir}/INSTALL ${top_srcdir}/NEWS ${top_srcdir}/ChangeLog -webserver.%: - - rm -rf ~/www/marc/data/media/$(@:webserver.%=%)/computer/c_/mrw-c_ - mkdir -p ~/www/marc/data/media/$(@:webserver.%=%)/computer/c_/mrw-c_ - cp doc/html/*.png \ - doc/html/*.gif \ - ~/www/marc/data/media/$(@:webserver.%=%)/computer/c_/mrw-c_/ +clean-local: + - rm doxygen.err lib@PACKAGENAME@.doxytag + - rm @PACKAGENAME@-dev_@MAJOR@.@MINOR@.@LEAST@-*.deb \ + @PACKAGENAME@_@MAJOR@.@MINOR@.@LEAST@-*.changes \ + @PACKAGENAME@_@MAJOR@.@MINOR@.@LEAST@-1.tar.gz \ + @PACKAGENAME@_@MAJOR@.@MINOR@.@LEAST@-1.dsc \ + @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.tar.gz \ + @PACKAGENAME@_@MAJOR@.@MINOR@.@LEAST@-*.deb -maintainer-clean-local: +distclean-local: + - rm -r ${top_builddir}/@DOC_DIR@/html/* ${top_builddir}/@DOC_DIR@/latex/* + - rm makefile makefile.in doxygen.err libmrw.doxytag - find . -name '*~' | xargs rm - - rm -r doc - rm -r autom4te.cache - rm aclocal.m4 config.guess config.sub configure \ depcomp install-sh ltmain.sh makefile makefile.in \ missing mkinstalldirs - -CLEANFILES = README.dpkg -MAINTAINER_CLEANFILES = diff --git a/mrw/auto.hpp b/mrw/auto.hpp index f894e60..3242a3a 100644 --- a/mrw/auto.hpp +++ b/mrw/auto.hpp @@ -17,6 +17,7 @@ #include // close #include #include +#include // free // forward class bfd; diff --git a/mrw/exec.cpp b/mrw/exec.cpp index 652bcae..77ebfa4 100644 --- a/mrw/exec.cpp +++ b/mrw/exec.cpp @@ -62,6 +62,7 @@ #include // assert #include // kill #include // kill +#include // exit //=========================================================== ExecutionFailedExc @@ -246,11 +247,13 @@ mrw::Exec& mrw::Exec::execute(bool exc) throw(std::exception) { //------------------------------------------------------------------------------ mrw::Exec& mrw::Exec::execute(const std::string& input, bool exc) throw(std::exception) { +#ifdef SSIZE_MAX /// @c input length must be smaller than @c SSIZE_MAX. /// I'll only add support for longer strings upon request. assert(input.size()<=SSIZE_MAX && "sdin input exeeds C library limit in mrw::Exec " "please contact the author of the library"); +#endif /** This method calls @c fork, sets up a pipe connection to pass @c stdin, @c stdout and @c stderr between the child process and the parent process using mrw::Pipe and calls @c execvp to execute @@ -471,11 +474,13 @@ std::pair mrw::PartialExec::read(const std::string& input, bool exc) throw(std::exception) { std::pair output; +#ifdef SSIZE_MAX /** @note @c input length must be smaller than @c SSIZE_MAX. I'll only add support for longer strings upon request. */ assert(input.size()<=SSIZE_MAX && "sdin input exeeds C library limit in mrw::Exec " "please contact the author of the library"); +#endif /** @warning After calling finish(), it is forbidden to pass any @c input string, it must then always be empty, because the pipe is already closed! */ diff --git a/mrw/exec.hpp b/mrw/exec.hpp index 4e1d3b0..c31203c 100644 --- a/mrw/exec.hpp +++ b/mrw/exec.hpp @@ -43,6 +43,7 @@ #include #include +#include #include #include diff --git a/mrw/file.hpp b/mrw/file.hpp index ebfc8fe..3ba7dba 100644 --- a/mrw/file.hpp +++ b/mrw/file.hpp @@ -37,6 +37,8 @@ #include #include #include +#include // offsetof +#include // abort namespace mrw { diff --git a/src/main.cxx b/src/main.cxx new file mode 100644 index 0000000..b3e39e0 --- /dev/null +++ b/src/main.cxx @@ -0,0 +1,14 @@ +/*! @file + + @id $Id: main.cxx 9 2009-04-02 12:54:44Z marwae $ + +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + + +int main(int argv, char** argc) try { + } catch (...) { + // unexpected exception - just terminate + return 1; + } diff --git a/src/makefile b/src/makefile new file mode 100644 index 0000000..bfa75d2 --- /dev/null +++ b/src/makefile @@ -0,0 +1,498 @@ +# makefile.in generated by automake 1.11.1 from makefile.am. +# src/makefile. Generated from makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + + +pkgdatadir = $(datadir)/mrw-c++ +pkgincludedir = $(includedir)/mrw-c++ +pkglibdir = $(libdir)/mrw-c++ +pkglibexecdir = $(libexecdir)/mrw-c++ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +#am__append_1 = -I/opt/local/include +subdir = src +DIST_COMMON = $(include_HEADERS) $(srcdir)/${PACKAGENAME}.pc.in \ + $(srcdir)/makefile.am $(srcdir)/makefile.in \ + $(srcdir)/version.cxx.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = version.cxx ${PACKAGENAME}.pc +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__installdirs = "$(DESTDIR)$(pkgconfigdir)" \ + "$(DESTDIR)$(pkgconfig2dir)" "$(DESTDIR)$(includedir)" +DATA = $(pkgconfig_DATA) $(pkgconfig2_DATA) +HEADERS = $(include_HEADERS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/marc/svn/mrw-c++/missing --run aclocal-1.11 +AMTAR = ${SHELL} /home/marc/svn/mrw-c++/missing --run tar +AM_CPPFLAGS = -DPACKAGEVERSION='"0.0.267"' -DPACKAGENAME='"mrw-c++"' $(am__append_1) +AM_CXXFLAGS = +AR = ar +AUTOCONF = ${SHELL} /home/marc/svn/mrw-c++/missing --run autoconf +AUTOHEADER = ${SHELL} /home/marc/svn/mrw-c++/missing --run autoheader +AUTOMAKE = ${SHELL} /home/marc/svn/mrw-c++/missing --run automake-1.11 +AWK = gawk +BUILDDATE = 10.12.2011/10.17 +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CPPUNIT_CFLAGS = +CPPUNIT_CONFIG = /usr/bin/cppunit-config +CPPUNIT_LIBS = -lcppunit -ldl +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = +CYGPATH_W = echo +DATADIR = /usr/local/share +DEFS = -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DDATADIR=\"/usr/local/share\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" +DEPDIR = .deps +DLLTOOL = false +DOC_DIR = doc +DSYMUTIL = +DUMPBIN = +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +FGREP = /bin/grep -F +GREP = /bin/grep +HAVE_DOT = NO +HOME = /home/marc +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LD = /usr/bin/ld -m elf_x86_64 +LDFLAGS = +LEAST = 267 +LIBOBJS = +LIBS = +LIBTOOL = $(SHELL) $(top_builddir)/libtool +LIB_VERSION = 0:267:0 +LIPO = +LN_S = ln -s +LTLIBOBJS = +MAJOR = 0 +MAKEINFO = ${SHELL} /home/marc/svn/mrw-c++/missing --run makeinfo +MANIFEST_TOOL = : +MINOR = 0 +MKDIR_P = /bin/mkdir -p +NM = /usr/bin/nm -B +NMEDIT = +OBJDUMP = objdump +OBJEXT = o +OTOOL = +OTOOL64 = +PACKAGE = mrw-c++ +PACKAGENAME = mrw-c++ +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_URL = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PKG_CONFIG = /usr/bin/pkg-config +PKG_CONFIG_LIBDIR = +PKG_CONFIG_PATH = +RANLIB = ranlib +SED = /bin/sed +SET_MAKE = +SHELL = /bin/bash +SRCDIR = . +SRC_DIR = src +STRIP = strip +THREADS = +TST_DIR = test +VERSION = 0.0.267 +abs_builddir = /home/marc/svn/mrw-c++/src +abs_srcdir = /home/marc/svn/mrw-c++/src +abs_top_builddir = /home/marc/svn/mrw-c++ +abs_top_srcdir = /home/marc/svn/mrw-c++ +ac_ct_AR = ar +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_DUMPBIN = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +have_dot = yes +have_doxygen = yes +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = ${SHELL} /home/marc/svn/mrw-c++/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_build_prefix = ../ +top_builddir = .. +top_srcdir = .. +include_HEADERS = +# -I/Library/OpenSC/include +#AM_LDFLAGS = -L/opt/local/lib +# -F/System/Library/Frameworks/PCSC.framework +# AM_CPPFLAGS += -I/usr/include/PCSC +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = mrw-c++.pc +pkgconfig2dir = $(datarootdir)/pkgconfig +pkgconfig2_DATA = $(pkgconfig_DATA) +EXTRA_DIST = $(pkgconfig_DATA).in $(shell ls -1 *.doc) +libmrw-c++_la_LIBADD = +# libmrw-c++_la_LIBADD += -lpcsclite +libmrw-c++_LDFLAGS = -version-info ${LIB_VERSION} +CLEANFILES = +DISTCLEANFILES = $(pkgconfig_DATA) +MAINTAINERCLEANFILES = makefile.in +all: all-am + +.SUFFIXES: +$(srcdir)/makefile.in: $(srcdir)/makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu src/makefile +.PRECIOUS: makefile +makefile: $(srcdir)/makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +version.cxx: $(top_builddir)/config.status $(srcdir)/version.cxx.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +${PACKAGENAME}.pc: $(top_builddir)/config.status $(srcdir)/${PACKAGENAME}.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +install-pkgconfigDATA: $(pkgconfig_DATA) + @$(NORMAL_INSTALL) + test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ + done + +uninstall-pkgconfigDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files +install-pkgconfig2DATA: $(pkgconfig2_DATA) + @$(NORMAL_INSTALL) + test -z "$(pkgconfig2dir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfig2dir)" + @list='$(pkgconfig2_DATA)'; test -n "$(pkgconfig2dir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfig2dir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfig2dir)" || exit $$?; \ + done + +uninstall-pkgconfig2DATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgconfig2_DATA)'; test -n "$(pkgconfig2dir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(pkgconfig2dir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(pkgconfig2dir)" && rm -f $$files +install-includeHEADERS: $(include_HEADERS) + @$(NORMAL_INSTALL) + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)" + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ + done + +uninstall-includeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(includedir)" && rm -f $$files +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: makefile $(DATA) $(HEADERS) +installdirs: + for dir in "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkgconfig2dir)" "$(DESTDIR)$(includedir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-includeHEADERS install-pkgconfig2DATA \ + install-pkgconfigDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-includeHEADERS uninstall-pkgconfig2DATA \ + uninstall-pkgconfigDATA + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + distclean distclean-generic distclean-libtool distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-includeHEADERS install-info install-info-am \ + install-man install-pdf install-pdf-am install-pkgconfig2DATA \ + install-pkgconfigDATA install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ + uninstall-includeHEADERS uninstall-pkgconfig2DATA \ + uninstall-pkgconfigDATA + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/makefile.am b/src/makefile.am new file mode 100644 index 0000000..8f1ea7d --- /dev/null +++ b/src/makefile.am @@ -0,0 +1,39 @@ +## @file +## +## $Id: makefile.am 9 2009-04-02 12:54:44Z marwae $ +## +## 1 2 3 4 5 6 7 8 +## 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +include_HEADERS = + +if !MINGW32 +if MAC +AM_CPPFLAGS += -I/opt/local/include +# -I/Library/OpenSC/include +AM_LDFLAGS = -L/opt/local/lib +# -F/System/Library/Frameworks/PCSC.framework +else +# AM_CPPFLAGS += -I/usr/include/PCSC +endif +endif + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = @PACKAGENAME@.pc +pkgconfig2dir = $(datarootdir)/pkgconfig +pkgconfig2_DATA = $(pkgconfig_DATA) + +EXTRA_DIST = $(pkgconfig_DATA).in $(shell ls -1 *.doc) + +lib@PACKAGENAME@_la_LIBADD = +if !MINGW32 +if !MAC +# lib@PACKAGENAME@_la_LIBADD += -lpcsclite +endif +endif + +lib@PACKAGENAME@_LDFLAGS = -version-info ${LIB_VERSION} + +CLEANFILES = +DISTCLEANFILES = $(pkgconfig_DATA) +MAINTAINERCLEANFILES = makefile.in diff --git a/src/makefile.in b/src/makefile.in new file mode 100644 index 0000000..22b75db --- /dev/null +++ b/src/makefile.in @@ -0,0 +1,498 @@ +# makefile.in generated by automake 1.11.1 from makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@MAC_TRUE@@MINGW32_FALSE@am__append_1 = -I/opt/local/include +subdir = src +DIST_COMMON = $(include_HEADERS) $(srcdir)/${PACKAGENAME}.pc.in \ + $(srcdir)/makefile.am $(srcdir)/makefile.in \ + $(srcdir)/version.cxx.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = version.cxx ${PACKAGENAME}.pc +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__installdirs = "$(DESTDIR)$(pkgconfigdir)" \ + "$(DESTDIR)$(pkgconfig2dir)" "$(DESTDIR)$(includedir)" +DATA = $(pkgconfig_DATA) $(pkgconfig2_DATA) +HEADERS = $(include_HEADERS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_CPPFLAGS = @AM_CPPFLAGS@ $(am__append_1) +AM_CXXFLAGS = @AM_CXXFLAGS@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILDDATE = @BUILDDATE@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@ +CPPUNIT_CONFIG = @CPPUNIT_CONFIG@ +CPPUNIT_LIBS = @CPPUNIT_LIBS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIR = @DATADIR@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DOC_DIR = @DOC_DIR@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +HAVE_DOT = @HAVE_DOT@ +HOME = @HOME@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LEAST = @LEAST@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIB_VERSION = @LIB_VERSION@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAJOR = @MAJOR@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MINOR = @MINOR@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGENAME = @PACKAGENAME@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SRCDIR = @SRCDIR@ +SRC_DIR = @SRC_DIR@ +STRIP = @STRIP@ +THREADS = @THREADS@ +TST_DIR = @TST_DIR@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +have_dot = @have_dot@ +have_doxygen = @have_doxygen@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +include_HEADERS = +# -I/Library/OpenSC/include +@MAC_TRUE@@MINGW32_FALSE@AM_LDFLAGS = -L/opt/local/lib +# -F/System/Library/Frameworks/PCSC.framework +# AM_CPPFLAGS += -I/usr/include/PCSC +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = @PACKAGENAME@.pc +pkgconfig2dir = $(datarootdir)/pkgconfig +pkgconfig2_DATA = $(pkgconfig_DATA) +EXTRA_DIST = $(pkgconfig_DATA).in $(shell ls -1 *.doc) +lib@PACKAGENAME@_la_LIBADD = +# lib@PACKAGENAME@_la_LIBADD += -lpcsclite +lib@PACKAGENAME@_LDFLAGS = -version-info ${LIB_VERSION} +CLEANFILES = +DISTCLEANFILES = $(pkgconfig_DATA) +MAINTAINERCLEANFILES = makefile.in +all: all-am + +.SUFFIXES: +$(srcdir)/makefile.in: $(srcdir)/makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu src/makefile +.PRECIOUS: makefile +makefile: $(srcdir)/makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +version.cxx: $(top_builddir)/config.status $(srcdir)/version.cxx.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +${PACKAGENAME}.pc: $(top_builddir)/config.status $(srcdir)/${PACKAGENAME}.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +install-pkgconfigDATA: $(pkgconfig_DATA) + @$(NORMAL_INSTALL) + test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ + done + +uninstall-pkgconfigDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files +install-pkgconfig2DATA: $(pkgconfig2_DATA) + @$(NORMAL_INSTALL) + test -z "$(pkgconfig2dir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfig2dir)" + @list='$(pkgconfig2_DATA)'; test -n "$(pkgconfig2dir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfig2dir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfig2dir)" || exit $$?; \ + done + +uninstall-pkgconfig2DATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgconfig2_DATA)'; test -n "$(pkgconfig2dir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(pkgconfig2dir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(pkgconfig2dir)" && rm -f $$files +install-includeHEADERS: $(include_HEADERS) + @$(NORMAL_INSTALL) + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)" + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ + done + +uninstall-includeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(includedir)" && rm -f $$files +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: makefile $(DATA) $(HEADERS) +installdirs: + for dir in "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkgconfig2dir)" "$(DESTDIR)$(includedir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-includeHEADERS install-pkgconfig2DATA \ + install-pkgconfigDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-includeHEADERS uninstall-pkgconfig2DATA \ + uninstall-pkgconfigDATA + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + distclean distclean-generic distclean-libtool distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-includeHEADERS install-info install-info-am \ + install-man install-pdf install-pdf-am install-pkgconfig2DATA \ + install-pkgconfigDATA install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ + uninstall-includeHEADERS uninstall-pkgconfig2DATA \ + uninstall-pkgconfigDATA + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/mrw-c++.pc b/src/mrw-c++.pc new file mode 100644 index 0000000..8ef37b4 --- /dev/null +++ b/src/mrw-c++.pc @@ -0,0 +1,11 @@ +prefix=mrw-c++ +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: mrw-c++ +Description: +Version: 0.0.267 +Libs: -L${libdir} +Libs.private: +Cflags: -I${includedir} diff --git a/src/mrw-c++.pc.in b/src/mrw-c++.pc.in new file mode 100644 index 0000000..3338e8b --- /dev/null +++ b/src/mrw-c++.pc.in @@ -0,0 +1,11 @@ +prefix=@PACKAGENAME@ +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: @PACKAGENAME@ +Description: +Version: @VERSION@ +Libs: -L${libdir} +Libs.private: +Cflags: -I${includedir} diff --git a/src/version.cxx b/src/version.cxx new file mode 100644 index 0000000..86165b3 --- /dev/null +++ b/src/version.cxx @@ -0,0 +1,16 @@ +/*! @file + + @id $Id$ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#include + +namespace xml { + std::string version() { + return "mrw-c++-0.0.267"; + } + const std::string WHAT("#(@) mrw-c++-0.0.267"); + const std::string IDENT("$Id: mrw-c++-0.0.267 $"); +} diff --git a/src/version.cxx.in b/src/version.cxx.in new file mode 100644 index 0000000..89d7fbf --- /dev/null +++ b/src/version.cxx.in @@ -0,0 +1,16 @@ +/*! @file + + @id $Id$ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#include + +namespace xml { + std::string version() { + return "@PACKAGENAME@-@VERSION@"; + } + const std::string WHAT("#(@) @PACKAGENAME@-@VERSION@"); + const std::string IDENT("$Id: @PACKAGENAME@-@VERSION@ $"); +}