set eol-style to native

This commit is contained in:
Guenter Obiltschnig 2006-10-23 15:40:50 +00:00
parent 072ba74f28
commit 70cd05fde3
34 changed files with 2671 additions and 2671 deletions

1092
CHANGELOG

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,10 @@
Guenter Obiltschnig <guenter.obiltschnig@appinf.com>
Alex Fabijanic <aleskx@gmail.com>
Peter Schojer <peter.schojer@appinf.com>
Claus Dabringer <claus.dabringer@appinf.com>
Andrew Marlow (public@marlowa.plus.com)
Caleb Epstein (caleb.epstein@gmail.com)
Andrew J. P. Maclean (a.maclean@optusnet.com.au)
--
$Id: //poco/1.2/dist/CONTRIBUTORS#2 $
Guenter Obiltschnig <guenter.obiltschnig@appinf.com>
Alex Fabijanic <aleskx@gmail.com>
Peter Schojer <peter.schojer@appinf.com>
Claus Dabringer <claus.dabringer@appinf.com>
Andrew Marlow (public@marlowa.plus.com)
Caleb Epstein (caleb.epstein@gmail.com)
Andrew J. P. Maclean (a.maclean@optusnet.com.au)
--
$Id: //poco/1.2/dist/CONTRIBUTORS#2 $

254
NEWS
View File

@ -1,127 +1,127 @@
Release 1.2.5 (2006-10-23)
==========================
This release contains bugfixes and minor enchancements.
See the CHANGELOG for details.
Release 1.2.0 (2006-08-29)
==========================
This release contains major improvements and new features.
Summary of changes (please see CHANGELOG for details):
- namespaces and header locations have changed
- improvements to command line options handling
- improvements to HTTP server and client classes
- support for raw sockets and ICMP
- improvements to DateTime, bugfixes in Timezone
- improvements to Logging (including a new LogStream class)
- HashTable classes in Foundation
- ThreadPool now supports thread priorities
- ActiveMethod now supports start policies; improved exception support
- typesafe sprintf-like formatting
- Process::launch() now supports I/O redirection to pipes
- improvements to the build system (configure; make; make install is now supported)
- various other bugfixes and enchancements
Release 1.1.2 (2006-07-07)
==========================
The POCO sources are now under the Boost license.
Release 1.1.0 (2006-03-23)
==========================
The official 1.1 release.
Release 1.1b1 (2006-03-03)
==========================
This release introduces the DBLite library, as well as SSL/TLS support
for the Net library (NetSSL). Also included are lots of improvements
to the existing libraries.
Release 1.0.0 (2006-01-19)
==========================
This is the official 1.0 release.
Release 1.0b2 (2006-01-16)
==========================
Minor improvements, mostly to documentation.
Release 1.0b1 (2006-01-09)
==========================
Feature complete. Added support for SMTP and POP3 (SMTPClientSession,
POP3ClientSession) and many bug fixes.
Release 1.0a1 (2006-01-03)
==========================
First alpha release of 1.0. Added support for FTP (FTPClientSession,
FTPStreamOpener), new stream classes (LineEndingConverter, TeeStream),
upgraded to expat 2.0. Also added support for the Reactor/Acceptor/Connector
patterns in Net. Various bugfixes and minor improvements.
Release 0.96 (2005-12-28)
=========================
This last release before the 1.0 release adds support for Visual Studio 2005.
Also included are performance improvements and bugfixes.
Release 0.95 (2005-10-15)
=========================
This release introduces the Net library.
Release 0.94 (2005-09-30)
=========================
This release brings major improvements to the logging classes.
The FileChannel class now supports compression of archived log files,
as well as automtic purging of archived log files.
See the CHANGELOG file for the complete list of changes.
Release 0.93 (2005-08-01)
=========================
This release brings major enchancements to all libraries.
Highlights are the LocalDateTime class, the ServerApplication class
with support for Windows services and Unix daemons, improvements
to the FileChannel class, bugfixes and numerous other enchancements.
Please see the CHANGELOG for details.
Release 0.92 (2005-05-09)
=========================
The first major update to the C++ Portable Components since their public
release introduces the Util library, as well as various enchancements and
bugfixes to the Foundation and XML libraries. Please see the CHANGELOG
for details.
Release 0.91 (2005-02-21)
=========================
This is the first public release of the C++ Portable Components.
The release does not contain all features planned for the later 1.0 release
(the NET library is missing, for example), but is already quite usable.
Please refer to the README file for more information and instructions for
building the libraries.
--
$Id: //poco/1.2/dist/NEWS#6 $
Release 1.2.5 (2006-10-23)
==========================
This release contains bugfixes and minor enchancements.
See the CHANGELOG for details.
Release 1.2.0 (2006-08-29)
==========================
This release contains major improvements and new features.
Summary of changes (please see CHANGELOG for details):
- namespaces and header locations have changed
- improvements to command line options handling
- improvements to HTTP server and client classes
- support for raw sockets and ICMP
- improvements to DateTime, bugfixes in Timezone
- improvements to Logging (including a new LogStream class)
- HashTable classes in Foundation
- ThreadPool now supports thread priorities
- ActiveMethod now supports start policies; improved exception support
- typesafe sprintf-like formatting
- Process::launch() now supports I/O redirection to pipes
- improvements to the build system (configure; make; make install is now supported)
- various other bugfixes and enchancements
Release 1.1.2 (2006-07-07)
==========================
The POCO sources are now under the Boost license.
Release 1.1.0 (2006-03-23)
==========================
The official 1.1 release.
Release 1.1b1 (2006-03-03)
==========================
This release introduces the DBLite library, as well as SSL/TLS support
for the Net library (NetSSL). Also included are lots of improvements
to the existing libraries.
Release 1.0.0 (2006-01-19)
==========================
This is the official 1.0 release.
Release 1.0b2 (2006-01-16)
==========================
Minor improvements, mostly to documentation.
Release 1.0b1 (2006-01-09)
==========================
Feature complete. Added support for SMTP and POP3 (SMTPClientSession,
POP3ClientSession) and many bug fixes.
Release 1.0a1 (2006-01-03)
==========================
First alpha release of 1.0. Added support for FTP (FTPClientSession,
FTPStreamOpener), new stream classes (LineEndingConverter, TeeStream),
upgraded to expat 2.0. Also added support for the Reactor/Acceptor/Connector
patterns in Net. Various bugfixes and minor improvements.
Release 0.96 (2005-12-28)
=========================
This last release before the 1.0 release adds support for Visual Studio 2005.
Also included are performance improvements and bugfixes.
Release 0.95 (2005-10-15)
=========================
This release introduces the Net library.
Release 0.94 (2005-09-30)
=========================
This release brings major improvements to the logging classes.
The FileChannel class now supports compression of archived log files,
as well as automtic purging of archived log files.
See the CHANGELOG file for the complete list of changes.
Release 0.93 (2005-08-01)
=========================
This release brings major enchancements to all libraries.
Highlights are the LocalDateTime class, the ServerApplication class
with support for Windows services and Unix daemons, improvements
to the FileChannel class, bugfixes and numerous other enchancements.
Please see the CHANGELOG for details.
Release 0.92 (2005-05-09)
=========================
The first major update to the C++ Portable Components since their public
release introduces the Util library, as well as various enchancements and
bugfixes to the Foundation and XML libraries. Please see the CHANGELOG
for details.
Release 0.91 (2005-02-21)
=========================
This is the first public release of the C++ Portable Components.
The release does not contain all features planned for the later 1.0 release
(the NET library is missing, for example), but is already quite usable.
Please refer to the README file for more information and instructions for
building the libraries.
--
$Id: //poco/1.2/dist/NEWS#6 $

388
README
View File

@ -1,194 +1,194 @@
This is the README file for POCO - The C++ Portable Components.
In this document you will find a brief description of the directory layout,
as well as a description necessary steps to build the C++ Portable Components.
The C++ Portable Components currently consist of four libraries.
The Foundation library contains a platform abstraction layer (including classes
for multithreading, file system access, logging, etc.), as well as
a large number of useful utility classes, such various stream buffer and stream
classes, URI handling, and many more.
The XML library contains an XML parser with SAX2 and DOM interfaces,
as well as an XMLWriter.
The Util library contains classes for working with configuration files and
command line arguments, as well as various utility classes.
The Net library contains network classes (sockets, HTTP, etc.)
All libraries come with a test suite and a number of sample programs.
The directory layout is as follows:
build/ the build system for Unix/OpenVMS and additional utility scripts
config/ build configurations for various Unix platforms
rules/ common build rules for all platforms
scripts/ build and utility scripts
vms/ OpenVMS build system scripts
bin/ all executables (dynamic link libraries on Windows)
doc/ additional documentation
lib/ all libraries (import libraries on Windows)
CppUnit/ project and make/build files for the CppUnit unit testing framework
doc/ additional documentation
include/
CppUnit/ header files for CppUnit
src/ source files for CppUnit
WinTestRunner/ Windows GUI for CppUnit
Foundation/ project and make/build files for the Foundation library
include/
Foundation/ header files for the Foundation library
src/ source files for the Foundation library
testsuite/ project and make/build files for the Foundation testsuite
src/ source files for the Foundation testsuite
bin/ test suite executables
samples/ sample applications for the Foundation library
XML/ project and make/build files for the XML library
include/
Foundation/ header files for the XML library
src/ source files for the XML library
testsuite/ project and make/build files for the XML testsuite
src/ source files for the XML testsuite
bin/ test suite executables
samples/ sample applications for the XML library
DOCUMENTATION
=============
Online browsable reference documentation in HTML is available at
<http://poco.appinf.com/docs/>. Additional documentation,
including and overview and an introduction to the samples
is available at <http://poco/appinf.com/documentation/>.
BUILDING ON WINDOWS
===================
Microsoft Visual Studio 7.1 (2003) or 8.0 (2005) is required to build the C++ Portable Components
on Windows platforms. Solution and project files for both versions are included.
You can either build from within Visual Studio (Build->Batch Build->Select All;Rebuild)
or from the command line. To build from the command line, start the
Visual Studio .NET 2003 (or 2005) Command Prompt and cd to the directory where you have
extracted the C++ Portable Components sources. Then simply start the build_vs71.cmd (or
build_vs80.cmd, respectively) batch file. This will build all libraries, test suites and
sample programs, in both debug and release versions. The dynamic link libraries will be
placed in the top-most bin directory. The import libraries will be placed in the top-most lib
directory. The test suite executables will be placed in the testsuite/bin directories.
The sample executables will be placed in the sample/*/bin directories.
In order to run the test suite and the samples, the top-most bin directory containing
the shared libraries must be in the PATH environment variable.
If you want to run the test suite or samples from within Visual Studio, we recommend that
you download and install the free Solution Build Environment for Visual Studio .NET 2003,
from <http://www.workspacewhiz.com/SolutionBuildEnvironmentReadme.html>.
You can then add the bin directory to the PATH environment variable in a .slnenv file,
using the following entry.
POCO_BASE=p:\poco
PATH=$(PATH);$(POCO_BASE)\bin
Of course you will have to change the path p:\poco so that it matches your environment.
BUILDING ON UNIX/LINUX/MAC OS X
===============================
For building on Unix platforms, the C++ Portable Components come with their own
build system. The build system is based on GNU Make 3.80, with the help from a few
shell scripts. If you do not have GNU Make 3.80 (or later) installed on your machine,
you will need to download it from <http://directory.fsf.org/devel/build/make.html>,
build and install it prior to building the C++ Portable Components.
You can check the version of GNU Make installed on your system with
> gmake --version
or
> make --version
Once you have GNU Make up and running, the rest is quite simple.
To extract the sources and build all libraries, testsuites and samples, simply
> gunzip poco-X.Y.tar.gz
> tar -xf poco-X.Y.tar.gz
> cd poco-X.Y.tar.gz
> ./configure
> gmake -s
See the configure script source for a list of possible options.
Once you have successfully built POCO, you can install it
to /usr/local (or another directory specified as parameter
to configure --prefix=<path>):
> sudo gmake -s install
To build on Mac OS X 10.3 with GCC 3, do the following:
> ./configure --config=Darwin7
> make -s
BUILDING ON QNX NEUTRINO
========================
For QNX Neutrino, the Unix build system (see the instructions above) is used.
You can use the build system to cross-compile for a target platform on a Solaris or
Linux host. Unfortunately, the Cygwin-based Windows host environment has some major
quirks that prevent the build system from working there. You can also use the
build system on a self-hosted QNX system. The default build configuration for QNX
(found in build/config/QNX) is for a self-hosted x86 platform. To specify another
target, edit the CCVER setting in the build configuration file. For example, to
compile for a PowerPC target, specify CCVER=3.3.1,gcc_ntoppcbe.
Service Pack 1 for QNX Neutrino 6.3 must be installed, otherwise compiling the
Foundation library will fail due to a problem with the <list> header in the
default (Dinkumware) C++ standard library.
BUILDING ON OPENVMS
===================
OpenVMS is no longer supported in recent versions of POCO, due to both a
lack of interest and a lack of contributors. The following
instructions are here for historical reasons.
The C++ Portable Components come with their own build system for OpenVMS, implemented
by a bunch of DCL scripts. The scripts can be found in the build/vms directory.
To build the C++ Portable Components on OpenVMS, follow the following steps.
1) Download the .zip distribution of the C++ Portable Components
2) Unzip the archive
$ unzip -aa poco-0_91_4.zip
3) Change the directory
$ set def [.poco-0_01_4]
4) Create a lib directory
$ create/dir [.lib]
5) Run the buildvms.com script
$ @buildvms
This will build the debug versions of the libraries. To build the release
versions, use
$ @buildvms -release
MORE INFORMATION
================
For more information, see the Applied Informatics C++ Portable Components website
at <http://poco.appinf.com>.
--
$Id: //poco/1.2/dist/README#1 $
This is the README file for POCO - The C++ Portable Components.
In this document you will find a brief description of the directory layout,
as well as a description necessary steps to build the C++ Portable Components.
The C++ Portable Components currently consist of four libraries.
The Foundation library contains a platform abstraction layer (including classes
for multithreading, file system access, logging, etc.), as well as
a large number of useful utility classes, such various stream buffer and stream
classes, URI handling, and many more.
The XML library contains an XML parser with SAX2 and DOM interfaces,
as well as an XMLWriter.
The Util library contains classes for working with configuration files and
command line arguments, as well as various utility classes.
The Net library contains network classes (sockets, HTTP, etc.)
All libraries come with a test suite and a number of sample programs.
The directory layout is as follows:
build/ the build system for Unix/OpenVMS and additional utility scripts
config/ build configurations for various Unix platforms
rules/ common build rules for all platforms
scripts/ build and utility scripts
vms/ OpenVMS build system scripts
bin/ all executables (dynamic link libraries on Windows)
doc/ additional documentation
lib/ all libraries (import libraries on Windows)
CppUnit/ project and make/build files for the CppUnit unit testing framework
doc/ additional documentation
include/
CppUnit/ header files for CppUnit
src/ source files for CppUnit
WinTestRunner/ Windows GUI for CppUnit
Foundation/ project and make/build files for the Foundation library
include/
Foundation/ header files for the Foundation library
src/ source files for the Foundation library
testsuite/ project and make/build files for the Foundation testsuite
src/ source files for the Foundation testsuite
bin/ test suite executables
samples/ sample applications for the Foundation library
XML/ project and make/build files for the XML library
include/
Foundation/ header files for the XML library
src/ source files for the XML library
testsuite/ project and make/build files for the XML testsuite
src/ source files for the XML testsuite
bin/ test suite executables
samples/ sample applications for the XML library
DOCUMENTATION
=============
Online browsable reference documentation in HTML is available at
<http://poco.appinf.com/docs/>. Additional documentation,
including and overview and an introduction to the samples
is available at <http://poco/appinf.com/documentation/>.
BUILDING ON WINDOWS
===================
Microsoft Visual Studio 7.1 (2003) or 8.0 (2005) is required to build the C++ Portable Components
on Windows platforms. Solution and project files for both versions are included.
You can either build from within Visual Studio (Build->Batch Build->Select All;Rebuild)
or from the command line. To build from the command line, start the
Visual Studio .NET 2003 (or 2005) Command Prompt and cd to the directory where you have
extracted the C++ Portable Components sources. Then simply start the build_vs71.cmd (or
build_vs80.cmd, respectively) batch file. This will build all libraries, test suites and
sample programs, in both debug and release versions. The dynamic link libraries will be
placed in the top-most bin directory. The import libraries will be placed in the top-most lib
directory. The test suite executables will be placed in the testsuite/bin directories.
The sample executables will be placed in the sample/*/bin directories.
In order to run the test suite and the samples, the top-most bin directory containing
the shared libraries must be in the PATH environment variable.
If you want to run the test suite or samples from within Visual Studio, we recommend that
you download and install the free Solution Build Environment for Visual Studio .NET 2003,
from <http://www.workspacewhiz.com/SolutionBuildEnvironmentReadme.html>.
You can then add the bin directory to the PATH environment variable in a .slnenv file,
using the following entry.
POCO_BASE=p:\poco
PATH=$(PATH);$(POCO_BASE)\bin
Of course you will have to change the path p:\poco so that it matches your environment.
BUILDING ON UNIX/LINUX/MAC OS X
===============================
For building on Unix platforms, the C++ Portable Components come with their own
build system. The build system is based on GNU Make 3.80, with the help from a few
shell scripts. If you do not have GNU Make 3.80 (or later) installed on your machine,
you will need to download it from <http://directory.fsf.org/devel/build/make.html>,
build and install it prior to building the C++ Portable Components.
You can check the version of GNU Make installed on your system with
> gmake --version
or
> make --version
Once you have GNU Make up and running, the rest is quite simple.
To extract the sources and build all libraries, testsuites and samples, simply
> gunzip poco-X.Y.tar.gz
> tar -xf poco-X.Y.tar.gz
> cd poco-X.Y.tar.gz
> ./configure
> gmake -s
See the configure script source for a list of possible options.
Once you have successfully built POCO, you can install it
to /usr/local (or another directory specified as parameter
to configure --prefix=<path>):
> sudo gmake -s install
To build on Mac OS X 10.3 with GCC 3, do the following:
> ./configure --config=Darwin7
> make -s
BUILDING ON QNX NEUTRINO
========================
For QNX Neutrino, the Unix build system (see the instructions above) is used.
You can use the build system to cross-compile for a target platform on a Solaris or
Linux host. Unfortunately, the Cygwin-based Windows host environment has some major
quirks that prevent the build system from working there. You can also use the
build system on a self-hosted QNX system. The default build configuration for QNX
(found in build/config/QNX) is for a self-hosted x86 platform. To specify another
target, edit the CCVER setting in the build configuration file. For example, to
compile for a PowerPC target, specify CCVER=3.3.1,gcc_ntoppcbe.
Service Pack 1 for QNX Neutrino 6.3 must be installed, otherwise compiling the
Foundation library will fail due to a problem with the <list> header in the
default (Dinkumware) C++ standard library.
BUILDING ON OPENVMS
===================
OpenVMS is no longer supported in recent versions of POCO, due to both a
lack of interest and a lack of contributors. The following
instructions are here for historical reasons.
The C++ Portable Components come with their own build system for OpenVMS, implemented
by a bunch of DCL scripts. The scripts can be found in the build/vms directory.
To build the C++ Portable Components on OpenVMS, follow the following steps.
1) Download the .zip distribution of the C++ Portable Components
2) Unzip the archive
$ unzip -aa poco-0_91_4.zip
3) Change the directory
$ set def [.poco-0_01_4]
4) Create a lib directory
$ create/dir [.lib]
5) Run the buildvms.com script
$ @buildvms
This will build the debug versions of the libraries. To build the release
versions, use
$ @buildvms -release
MORE INFORMATION
================
For more information, see the Applied Informatics C++ Portable Components website
at <http://poco.appinf.com>.
--
$Id: //poco/1.2/dist/README#1 $

View File

@ -1,75 +1,75 @@
#
# $Id: //poco/1.2/build/config/ARM-Linux#1 $
#
# ARM-Linux
#
# Make settings for ARM Linux/gcc 2.95.3 (cross-compile, using STLport 4.6.2)
#
#
# General Settings
#
LINKMODE = SHARED
POCO_TARGET_OSNAME = Linux
POCO_TARGET_OSARCH = ARM
STLPORT_INCLUDE = /usr/local/include/stlport
STLPORT_LIB = /usr/local/lib
OPENSSL_INCLUDE = /usr/local/arm/2.95.3/include
OPENSSL_LIB = /usr/local/arm/2.95.3/lib
#
# Define Tools
#
CC = arm-linux-gcc
CXX = arm-linux-g++
LINK = $(CXX)
LIB = arm-linux-ar -cr
RANLIB = arm-linux-ranlib
SHLIB = $(CXX) -shared -Wl,-soname,$(notdir $@) -Wl,-rpath,$(dir $@) -o $@
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.gcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .so.$(target_version)
SHAREDLIBLINKEXT = .so
#
# Compiler and Linker Flags
#
CFLAGS = -Isrc
CFLAGS32 =
CFLAGS64 =
CXXFLAGS =
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -static
SHAREDOPT_CC = -fPIC
SHAREDOPT_CXX = -fPIC
SHAREDOPT_LINK = -Wl,-rpath,$(LIBPATH)
DEBUGOPT_CC = -g -D_DEBUG
DEBUGOPT_CXX = -g -D_DEBUG
DEBUGOPT_LINK = -g
RELEASEOPT_CC = -O2 -DNDEBUG
RELEASEOPT_CXX = -O2 -DNDEBUG
RELEASEOPT_LINK = -O2
#
# System Specific Flags
#
SYSFLAGS = -I$(STLPORT_INCLUDE) -I$(OPENSSL_INCLUDE) -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_REENTRANT -D_THREAD_SAFE -DPOCO_NO_FPENVIRONMENT
#
# System Specific Libraries
#
SYSLIBS = -L$(STLPORT_LIB) -L$(OPENSSL_LIB) -lstlport_arm-linux-gcc -lpthread -ldl
#
# $Id: //poco/1.2/build/config/ARM-Linux#1 $
#
# ARM-Linux
#
# Make settings for ARM Linux/gcc 2.95.3 (cross-compile, using STLport 4.6.2)
#
#
# General Settings
#
LINKMODE = SHARED
POCO_TARGET_OSNAME = Linux
POCO_TARGET_OSARCH = ARM
STLPORT_INCLUDE = /usr/local/include/stlport
STLPORT_LIB = /usr/local/lib
OPENSSL_INCLUDE = /usr/local/arm/2.95.3/include
OPENSSL_LIB = /usr/local/arm/2.95.3/lib
#
# Define Tools
#
CC = arm-linux-gcc
CXX = arm-linux-g++
LINK = $(CXX)
LIB = arm-linux-ar -cr
RANLIB = arm-linux-ranlib
SHLIB = $(CXX) -shared -Wl,-soname,$(notdir $@) -Wl,-rpath,$(dir $@) -o $@
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.gcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .so.$(target_version)
SHAREDLIBLINKEXT = .so
#
# Compiler and Linker Flags
#
CFLAGS = -Isrc
CFLAGS32 =
CFLAGS64 =
CXXFLAGS =
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -static
SHAREDOPT_CC = -fPIC
SHAREDOPT_CXX = -fPIC
SHAREDOPT_LINK = -Wl,-rpath,$(LIBPATH)
DEBUGOPT_CC = -g -D_DEBUG
DEBUGOPT_CXX = -g -D_DEBUG
DEBUGOPT_LINK = -g
RELEASEOPT_CC = -O2 -DNDEBUG
RELEASEOPT_CXX = -O2 -DNDEBUG
RELEASEOPT_LINK = -O2
#
# System Specific Flags
#
SYSFLAGS = -I$(STLPORT_INCLUDE) -I$(OPENSSL_INCLUDE) -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_REENTRANT -D_THREAD_SAFE -DPOCO_NO_FPENVIRONMENT
#
# System Specific Libraries
#
SYSLIBS = -L$(STLPORT_LIB) -L$(OPENSSL_LIB) -lstlport_arm-linux-gcc -lpthread -ldl

View File

@ -1,71 +1,71 @@
#
# $Id: //poco/Main/build/config/Linux#5 $
#
# CYGWIN
#
# Make settings for Cygwin on WinXP/gcc 3.4
#
#
#
# General Settings
#
LINKMODE = SHARED
#
# Define Tools
#
CC = gcc
CXX = g++
LINK = $(CXX)
LIB = ar -cr
RANLIB = ranlib
SHLIB = $(CXX) -shared -o $@ -Wl,--out-implib=$(dir $@)$(subst cyg,lib,$(notdir $@)).a -Wl,--export-all-symbols -Wl,--enable-auto-import
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.gcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
LIBPREFIX = cyg
SHAREDLIBEXT = .$(target_version).dll
SHAREDLIBLINKEXT = .dll
#
# Compiler and Linker Flags
#
CFLAGS =
CFLAGS32 =
CFLAGS64 =
CXXFLAGS = -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -static
SHAREDOPT_CC =
SHAREDOPT_CXX =
SHAREDOPT_LINK =
DEBUGOPT_CC = -g -D_DEBUG
DEBUGOPT_CXX = -g -D_DEBUG
DEBUGOPT_LINK = -g
RELEASEOPT_CC = -O2 -DNDEBUG
RELEASEOPT_CXX = -O2 -DNDEBUG
RELEASEOPT_LINK = -O2
#
# System Specific Flags
#
SYSFLAGS = -D_XOPEN_SOURCE=500
#
# System Specific Libraries
#
SYSLIBS =
#
# $Id: //poco/Main/build/config/Linux#5 $
#
# CYGWIN
#
# Make settings for Cygwin on WinXP/gcc 3.4
#
#
#
# General Settings
#
LINKMODE = SHARED
#
# Define Tools
#
CC = gcc
CXX = g++
LINK = $(CXX)
LIB = ar -cr
RANLIB = ranlib
SHLIB = $(CXX) -shared -o $@ -Wl,--out-implib=$(dir $@)$(subst cyg,lib,$(notdir $@)).a -Wl,--export-all-symbols -Wl,--enable-auto-import
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.gcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
LIBPREFIX = cyg
SHAREDLIBEXT = .$(target_version).dll
SHAREDLIBLINKEXT = .dll
#
# Compiler and Linker Flags
#
CFLAGS =
CFLAGS32 =
CFLAGS64 =
CXXFLAGS = -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -static
SHAREDOPT_CC =
SHAREDOPT_CXX =
SHAREDOPT_LINK =
DEBUGOPT_CC = -g -D_DEBUG
DEBUGOPT_CXX = -g -D_DEBUG
DEBUGOPT_LINK = -g
RELEASEOPT_CC = -O2 -DNDEBUG
RELEASEOPT_CXX = -O2 -DNDEBUG
RELEASEOPT_LINK = -O2
#
# System Specific Flags
#
SYSFLAGS = -D_XOPEN_SOURCE=500
#
# System Specific Libraries
#
SYSLIBS =

View File

@ -1,70 +1,70 @@
#
# $Id: //poco/1.2/build/config/Darwin#1 $
#
# Darwin8
#
# Build settings for Mac OS X 10.4/GCC 4.0.0
#
#
# General Settings
#
LINKMODE = SHARED
#
# Tools
#
CC = gcc
CXX = c++
LINK = $(CXX) -bind_at_load
LIB = libtool -static -o
RANLIB = ranlib
SHLIB = $(CXX) -dynamiclib -Wl,-install_name,$@ -o $@
DYLIB = $(CXX) -dynamic -bundle -read_only_relocs suppress -Wl,-noprebind -Wl,-bind_at_load -o $@
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.gcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .$(target_version).dylib
SHAREDLIBLINKEXT = .dylib
#
# Compiler and Linker Flags
#
CFLAGS =
CFLAGS32 =
CFLAGS64 =
CXXFLAGS = -Wall -Wno-sign-compare
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK =
SHAREDOPT_CC = -fPIC
SHAREDOPT_CXX = -fPIC
SHAREDOPT_LINK =
DEBUGOPT_CC = -g -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_CXX = -g -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_LINK =
RELEASEOPT_CC = -DNDEBUG -O2
RELEASEOPT_CXX = -DNDEBUG -O
RELEASEOPT_LINK =
#
# System Specific Flags
#
SYSFLAGS = -DPOCO_HAVE_IPv6
#
# System Specific Libraries
#
SYSLIBS = -ldl
#
# $Id: //poco/1.2/build/config/Darwin#1 $
#
# Darwin8
#
# Build settings for Mac OS X 10.4/GCC 4.0.0
#
#
# General Settings
#
LINKMODE = SHARED
#
# Tools
#
CC = gcc
CXX = c++
LINK = $(CXX) -bind_at_load
LIB = libtool -static -o
RANLIB = ranlib
SHLIB = $(CXX) -dynamiclib -Wl,-install_name,$@ -o $@
DYLIB = $(CXX) -dynamic -bundle -read_only_relocs suppress -Wl,-noprebind -Wl,-bind_at_load -o $@
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.gcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .$(target_version).dylib
SHAREDLIBLINKEXT = .dylib
#
# Compiler and Linker Flags
#
CFLAGS =
CFLAGS32 =
CFLAGS64 =
CXXFLAGS = -Wall -Wno-sign-compare
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK =
SHAREDOPT_CC = -fPIC
SHAREDOPT_CXX = -fPIC
SHAREDOPT_LINK =
DEBUGOPT_CC = -g -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_CXX = -g -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_LINK =
RELEASEOPT_CC = -DNDEBUG -O2
RELEASEOPT_CXX = -DNDEBUG -O
RELEASEOPT_LINK =
#
# System Specific Flags
#
SYSFLAGS = -DPOCO_HAVE_IPv6
#
# System Specific Libraries
#
SYSLIBS = -ldl

View File

@ -1,70 +1,70 @@
#
# $Id: //poco/1.2/build/config/Darwin7#1 $
#
# Darwin
#
# Build settings for Mac OS X 10.3
#
#
# General Settings
#
LINKMODE = SHARED
#
# Tools
#
CC = gcc
CXX = c++
LINK = $(CXX) -bind_at_load
LIB = libtool -static -o
RANLIB = ranlib
SHLIB = libtool -dynamic -flat_namespace -undefined suppress -noprebind -install_name $@ -o $@
DYLIB = ld -dynamic -bundle -read_only_relocs suppress -flat_namespace -undefined warning -noprebind -bind_at_load -o $@ /usr/lib/bundle1.o
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.gcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .$(target_version).dylib
SHAREDLIBLINKEXT = .dylib
#
# Compiler and Linker Flags
#
CFLAGS =
CFLAGS32 =
CFLAGS64 =
CXXFLAGS = -Wno-long-double -fmessage-length=0 -fcoalesce-templates
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK =
SHAREDOPT_CC =
SHAREDOPT_CXX =
SHAREDOPT_LINK =
DEBUGOPT_CC = -g -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_CXX = -g -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_LINK =
RELEASEOPT_CC = -DNDEBUG -O2
RELEASEOPT_CXX = -DNDEBUG -O
RELEASEOPT_LINK =
#
# System Specific Flags
#
SYSFLAGS = -D_XOPEN_SOURCE
#
# System Specific Libraries
#
SYSLIBS = -lstdc++ -framework System -ldl -lcc_dynamic
#
# $Id: //poco/1.2/build/config/Darwin7#1 $
#
# Darwin
#
# Build settings for Mac OS X 10.3
#
#
# General Settings
#
LINKMODE = SHARED
#
# Tools
#
CC = gcc
CXX = c++
LINK = $(CXX) -bind_at_load
LIB = libtool -static -o
RANLIB = ranlib
SHLIB = libtool -dynamic -flat_namespace -undefined suppress -noprebind -install_name $@ -o $@
DYLIB = ld -dynamic -bundle -read_only_relocs suppress -flat_namespace -undefined warning -noprebind -bind_at_load -o $@ /usr/lib/bundle1.o
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.gcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .$(target_version).dylib
SHAREDLIBLINKEXT = .dylib
#
# Compiler and Linker Flags
#
CFLAGS =
CFLAGS32 =
CFLAGS64 =
CXXFLAGS = -Wno-long-double -fmessage-length=0 -fcoalesce-templates
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK =
SHAREDOPT_CC =
SHAREDOPT_CXX =
SHAREDOPT_LINK =
DEBUGOPT_CC = -g -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_CXX = -g -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_LINK =
RELEASEOPT_CC = -DNDEBUG -O2
RELEASEOPT_CXX = -DNDEBUG -O
RELEASEOPT_LINK =
#
# System Specific Flags
#
SYSFLAGS = -D_XOPEN_SOURCE
#
# System Specific Libraries
#
SYSLIBS = -lstdc++ -framework System -ldl -lcc_dynamic

View File

@ -1,70 +1,70 @@
#
# $Id: //poco/1.2/build/config/FreeBSD#1 $
#
# FreeBSD
#
# Make settings for FreeBSD 6.0/gcc 3.4
#
#
#
# General Settings
#
LINKMODE = SHARED
#
# Define Tools
#
CC = gcc
CXX = g++
LINK = $(CXX)
LIB = ar -cr
RANLIB = ranlib
SHLIB = $(CXX) -shared -Wl,-soname,$(notdir $@) -Wl,-rpath,$(dir $@) -o $@
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.gcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .so.$(target_version)
SHAREDLIBLINKEXT = .so
#
# Compiler and Linker Flags
#
CFLAGS =
CFLAGS32 =
CFLAGS64 =
CXXFLAGS =
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -static
SHAREDOPT_CC = -fPIC
SHAREDOPT_CXX = -fPIC
SHAREDOPT_LINK = -Wl,-rpath,$(LIBPATH)
DEBUGOPT_CC = -g -D_DEBUG
DEBUGOPT_CXX = -g -D_DEBUG
DEBUGOPT_LINK = -g
RELEASEOPT_CC = -O2 -DNDEBUG
RELEASEOPT_CXX = -O2 -DNDEBUG
RELEASEOPT_LINK = -O2
#
# System Specific Flags
#
SYSFLAGS = -D_REENTRANT -D_THREAD_SAFE
#
# System Specific Libraries
#
SYSLIBS = -lpthread
#
# $Id: //poco/1.2/build/config/FreeBSD#1 $
#
# FreeBSD
#
# Make settings for FreeBSD 6.0/gcc 3.4
#
#
#
# General Settings
#
LINKMODE = SHARED
#
# Define Tools
#
CC = gcc
CXX = g++
LINK = $(CXX)
LIB = ar -cr
RANLIB = ranlib
SHLIB = $(CXX) -shared -Wl,-soname,$(notdir $@) -Wl,-rpath,$(dir $@) -o $@
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.gcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .so.$(target_version)
SHAREDLIBLINKEXT = .so
#
# Compiler and Linker Flags
#
CFLAGS =
CFLAGS32 =
CFLAGS64 =
CXXFLAGS =
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -static
SHAREDOPT_CC = -fPIC
SHAREDOPT_CXX = -fPIC
SHAREDOPT_LINK = -Wl,-rpath,$(LIBPATH)
DEBUGOPT_CC = -g -D_DEBUG
DEBUGOPT_CXX = -g -D_DEBUG
DEBUGOPT_LINK = -g
RELEASEOPT_CC = -O2 -DNDEBUG
RELEASEOPT_CXX = -O2 -DNDEBUG
RELEASEOPT_LINK = -O2
#
# System Specific Flags
#
SYSFLAGS = -D_REENTRANT -D_THREAD_SAFE
#
# System Specific Libraries
#
SYSLIBS = -lpthread

View File

@ -1,69 +1,69 @@
#
# $Id: //poco/1.2/build/config/HP-UX#1 $
#
# HP-UX
#
# Make settings for HP-UX 11.11/aCC 03.30 (and later)
#
#
# General Settings
#
LINKMODE = SHARED
#
# Define Tools
#
CC = cc
CXX = aCC
LINK = $(CXX)
LIB = ar -cr
RANLIB = ranlib
SHLIB = $(CXX) $(LINKFLAGS) -b -Wl,+h$(notdir $@) -o $@ -Wl,+s
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.aCC
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .$(target_version)
SHAREDLIBLINKEXT = .sl
#
# Compiler and Linker Flags
#
CFLAGS = -Isrc
CFLAGS32 = +DD32
CFLAGS64 = +DD64
CXXFLAGS = -AA +W361 +W307 +W749 +W849
CXXFLAGS32 = +DD32
CXXFLAGS64 = +DD64
LINKFLAGS = -AA
LINKFLAGS32 = +DD32
LINKFLAGS64 = +DD64
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -Wl,-aarchive_shared
SHAREDOPT_CC = +Z
SHAREDOPT_CXX = +Z
SHAREDOPT_LINK = -Wl,+b$(LIBPATH) -Wl,+s -Wl,-ashared_archive
DEBUGOPT_CC = -g -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_CXX = -g0 +d -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_LINK = -g0
RELEASEOPT_CC = +O2 -DNDEBUG
RELEASEOPT_CXX = +O2 +Onolimit -DNDEBUG
RELEASEOPT_LINK = +O2 +Onolimit
#
# System Specific Flags
#
SYSFLAGS = -Dhpux -D_REENTRANT -D_THREAD_SAFE -D_RWSTD_MULTI_THREAD -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_POSIX_C_SOURCE=199506L
#
# System Specific Libraries
#
SYSLIBS = -lpthread -lxnet
#
# $Id: //poco/1.2/build/config/HP-UX#1 $
#
# HP-UX
#
# Make settings for HP-UX 11.11/aCC 03.30 (and later)
#
#
# General Settings
#
LINKMODE = SHARED
#
# Define Tools
#
CC = cc
CXX = aCC
LINK = $(CXX)
LIB = ar -cr
RANLIB = ranlib
SHLIB = $(CXX) $(LINKFLAGS) -b -Wl,+h$(notdir $@) -o $@ -Wl,+s
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.aCC
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .$(target_version)
SHAREDLIBLINKEXT = .sl
#
# Compiler and Linker Flags
#
CFLAGS = -Isrc
CFLAGS32 = +DD32
CFLAGS64 = +DD64
CXXFLAGS = -AA +W361 +W307 +W749 +W849
CXXFLAGS32 = +DD32
CXXFLAGS64 = +DD64
LINKFLAGS = -AA
LINKFLAGS32 = +DD32
LINKFLAGS64 = +DD64
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -Wl,-aarchive_shared
SHAREDOPT_CC = +Z
SHAREDOPT_CXX = +Z
SHAREDOPT_LINK = -Wl,+b$(LIBPATH) -Wl,+s -Wl,-ashared_archive
DEBUGOPT_CC = -g -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_CXX = -g0 +d -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_LINK = -g0
RELEASEOPT_CC = +O2 -DNDEBUG
RELEASEOPT_CXX = +O2 +Onolimit -DNDEBUG
RELEASEOPT_LINK = +O2 +Onolimit
#
# System Specific Flags
#
SYSFLAGS = -Dhpux -D_REENTRANT -D_THREAD_SAFE -D_RWSTD_MULTI_THREAD -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_POSIX_C_SOURCE=199506L
#
# System Specific Libraries
#
SYSLIBS = -lpthread -lxnet

View File

@ -1,70 +1,70 @@
#
# $Id: //poco/1.2/build/config/Linux#1 $
#
# Linux
#
# Make settings for Linux 2.6/gcc 3.3
#
#
#
# General Settings
#
LINKMODE = SHARED
#
# Define Tools
#
CC = gcc
CXX = g++
LINK = $(CXX)
LIB = ar -cr
RANLIB = ranlib
SHLIB = $(CXX) -shared -Wl,-soname,$(notdir $@) -Wl,-rpath,$(dir $@) -o $@
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.gcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .so.$(target_version)
SHAREDLIBLINKEXT = .so
#
# Compiler and Linker Flags
#
CFLAGS =
CFLAGS32 =
CFLAGS64 =
CXXFLAGS =
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -static
SHAREDOPT_CC = -fPIC
SHAREDOPT_CXX = -fPIC
SHAREDOPT_LINK = -Wl,-rpath,$(LIBPATH)
DEBUGOPT_CC = -g -D_DEBUG
DEBUGOPT_CXX = -g -D_DEBUG
DEBUGOPT_LINK = -g
RELEASEOPT_CC = -O2 -DNDEBUG
RELEASEOPT_CXX = -O2 -DNDEBUG
RELEASEOPT_LINK = -O2
#
# System Specific Flags
#
SYSFLAGS = -D_XOPEN_SOURCE=500 -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
#
# System Specific Libraries
#
SYSLIBS = -lpthread -ldl
#
# $Id: //poco/1.2/build/config/Linux#1 $
#
# Linux
#
# Make settings for Linux 2.6/gcc 3.3
#
#
#
# General Settings
#
LINKMODE = SHARED
#
# Define Tools
#
CC = gcc
CXX = g++
LINK = $(CXX)
LIB = ar -cr
RANLIB = ranlib
SHLIB = $(CXX) -shared -Wl,-soname,$(notdir $@) -Wl,-rpath,$(dir $@) -o $@
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.gcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .so.$(target_version)
SHAREDLIBLINKEXT = .so
#
# Compiler and Linker Flags
#
CFLAGS =
CFLAGS32 =
CFLAGS64 =
CXXFLAGS =
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -static
SHAREDOPT_CC = -fPIC
SHAREDOPT_CXX = -fPIC
SHAREDOPT_LINK = -Wl,-rpath,$(LIBPATH)
DEBUGOPT_CC = -g -D_DEBUG
DEBUGOPT_CXX = -g -D_DEBUG
DEBUGOPT_LINK = -g
RELEASEOPT_CC = -O2 -DNDEBUG
RELEASEOPT_CXX = -O2 -DNDEBUG
RELEASEOPT_LINK = -O2
#
# System Specific Flags
#
SYSFLAGS = -D_XOPEN_SOURCE=500 -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
#
# System Specific Libraries
#
SYSLIBS = -lpthread -ldl

View File

@ -1,71 +1,71 @@
#
# $Id: //poco/1.2/build/config/MinGW#1 $
#
# MinGW32
#
# Make settings for MinGW on WinXP
#
#
# General Settings
#
LINKMODE = SHARED
POCO_TARGET_OSNAME = MinGW
POCO_TARGET_OSARCH = ia32
#
# Define Tools
#
CC = gcc
CXX = g++
LINK = $(CXX)
LIB = ar -cr
RANLIB = ranlib
SHLIB = $(CXX) -shared -mno-cygwin -o $@ -Wl,--out-implib=$(dir $@)$(subst cyg,lib,$(basename $(notdir $@))).a
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.gcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .dll
SHAREDLIBLINKEXT = .dll
#
# Compiler and Linker Flags
#
CFLAGS =
CFLAGS32 =
CFLAGS64 =
CXXFLAGS =
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -static
SHAREDOPT_CC =
SHAREDOPT_CXX =
SHAREDOPT_LINK =
DEBUGOPT_CC = -g -D_DEBUG
DEBUGOPT_CXX = -g -D_DEBUG
DEBUGOPT_LINK = -g
RELEASEOPT_CC = -O2 -DNDEBUG
RELEASEOPT_CXX = -O2 -DNDEBUG
RELEASEOPT_LINK = -O2
#
# System Specific Flags
#
SYSFLAGS = -mno-cygwin -D_WIN32 -DPOCO_NO_FPENVIRONMENT
#
# System Specific Libraries
#
SYSLIBS = -liphlpapi
#
# $Id: //poco/1.2/build/config/MinGW#1 $
#
# MinGW32
#
# Make settings for MinGW on WinXP
#
#
# General Settings
#
LINKMODE = SHARED
POCO_TARGET_OSNAME = MinGW
POCO_TARGET_OSARCH = ia32
#
# Define Tools
#
CC = gcc
CXX = g++
LINK = $(CXX)
LIB = ar -cr
RANLIB = ranlib
SHLIB = $(CXX) -shared -mno-cygwin -o $@ -Wl,--out-implib=$(dir $@)$(subst cyg,lib,$(basename $(notdir $@))).a
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.gcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .dll
SHAREDLIBLINKEXT = .dll
#
# Compiler and Linker Flags
#
CFLAGS =
CFLAGS32 =
CFLAGS64 =
CXXFLAGS =
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -static
SHAREDOPT_CC =
SHAREDOPT_CXX =
SHAREDOPT_LINK =
DEBUGOPT_CC = -g -D_DEBUG
DEBUGOPT_CXX = -g -D_DEBUG
DEBUGOPT_LINK = -g
RELEASEOPT_CC = -O2 -DNDEBUG
RELEASEOPT_CXX = -O2 -DNDEBUG
RELEASEOPT_LINK = -O2
#
# System Specific Flags
#
SYSFLAGS = -mno-cygwin -D_WIN32 -DPOCO_NO_FPENVIRONMENT
#
# System Specific Libraries
#
SYSLIBS = -liphlpapi

View File

@ -1,70 +1,70 @@
#
# $Id: //poco/1.2/build/config/OSF1#1 $
#
# OSF1
#
# Make settings for HP Tru64 5.1/Compaq C++ 6.5
#
#
# General Settings
#
LINKMODE = SHARED
#
# Define Tools
#
CC = cc
CXX = cxx
LINK = $(CXX)
LIB = ar -cr
RANLIB = ranlib
SHLIB = $(CXX) $(LINKFLAGS) -shared -o $@ -rpath $(LIBPATH) -soname $(notdir $@)
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.cxx
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .so.$(target_version)
SHAREDLIBLINKEXT = .so
#
# Compiler and Linker Flags
#
CFLAGS = -pthread
CFLAGS32 =
CFLAGS64 =
CXXFLAGS = -model ansi -pthread -ansi_alias -std ansi -D__USE_STD_IOSTREAM -nousing_std -nopure_cname -ieee
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS = -pthread -model ansi -std ansi
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC = -non_shared
STATICOPT_CXX = -non_shared
STATICOPT_LINK = -non_shared
SHAREDOPT_CC = -shared
SHAREDOPT_CXX = -shared
SHAREDOPT_LINK = -call_shared
DEBUGOPT_CC = -g2 -D_DEBUG
DEBUGOPT_CXX = -gall -D_DEBUG
DEBUGOPT_LINK = -gall
RELEASEOPT_CC = +O2 -DNDEBUG
RELEASEOPT_CXX = +O2 -DNDEBUG
RELEASEOPT_LINK =
#
# System Specific Flags
#
SYSFLAGS = -D_REENTRANT -D_THREAD_SAFE -D_RWSTD_MULTI_THREAD -D_XOPEN_SOURCE=500 -D_OSF_SOURCE -D_SOCKADDR_LEN
#
# System Specific Libraries
#
SYSLIBS = -lm -lrt
#
# $Id: //poco/1.2/build/config/OSF1#1 $
#
# OSF1
#
# Make settings for HP Tru64 5.1/Compaq C++ 6.5
#
#
# General Settings
#
LINKMODE = SHARED
#
# Define Tools
#
CC = cc
CXX = cxx
LINK = $(CXX)
LIB = ar -cr
RANLIB = ranlib
SHLIB = $(CXX) $(LINKFLAGS) -shared -o $@ -rpath $(LIBPATH) -soname $(notdir $@)
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.cxx
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .so.$(target_version)
SHAREDLIBLINKEXT = .so
#
# Compiler and Linker Flags
#
CFLAGS = -pthread
CFLAGS32 =
CFLAGS64 =
CXXFLAGS = -model ansi -pthread -ansi_alias -std ansi -D__USE_STD_IOSTREAM -nousing_std -nopure_cname -ieee
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS = -pthread -model ansi -std ansi
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC = -non_shared
STATICOPT_CXX = -non_shared
STATICOPT_LINK = -non_shared
SHAREDOPT_CC = -shared
SHAREDOPT_CXX = -shared
SHAREDOPT_LINK = -call_shared
DEBUGOPT_CC = -g2 -D_DEBUG
DEBUGOPT_CXX = -gall -D_DEBUG
DEBUGOPT_LINK = -gall
RELEASEOPT_CC = +O2 -DNDEBUG
RELEASEOPT_CXX = +O2 -DNDEBUG
RELEASEOPT_LINK =
#
# System Specific Flags
#
SYSFLAGS = -D_REENTRANT -D_THREAD_SAFE -D_RWSTD_MULTI_THREAD -D_XOPEN_SOURCE=500 -D_OSF_SOURCE -D_SOCKADDR_LEN
#
# System Specific Libraries
#
SYSLIBS = -lm -lrt

View File

@ -1,70 +1,70 @@
#
# $Id: //poco/1.2/build/config/QNX#1 $
#
# QNX
#
# Make settings for QNX Neutrino 6.3 with GCC 3.3.1
#
#
# General Settings
#
LINKMODE = SHARED
#
# Define Tools
#
CCVER = 3.3.1,gcc_ntox86
CC = qcc -V$(CCVER)
CXX = QCC -V$(CCVER)
LINK = $(CXX) -V$(CCVER)
LIB = ar -cr
RANLIB = ranlib
SHLIB = $(CXX) -shared -Wl,-soname,$(notdir $@) -Wl,-rpath,$(dir $@) -o $@
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.qcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .so.$(target_version)
SHAREDLIBLINKEXT = .so
#
# Compiler and Linker Flags
#
CFLAGS =
CFLAGS32 =
CFLAGS64 =
CXXFLAGS =
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -static
SHAREDOPT_CC = -fpic
SHAREDOPT_CXX = -fpic
SHAREDOPT_LINK = -Wl,-rpath,$(LIBPATH)
DEBUGOPT_CC = -g -D_DEBUG
DEBUGOPT_CXX = -g -D_DEBUG
DEBUGOPT_LINK = -g
RELEASEOPT_CC = -O2 -DNDEBUG
RELEASEOPT_CXX = -O2 -DNDEBUG
RELEASEOPT_LINK = -O2
#
# System Specific Flags
#
SYSFLAGS = -D_QNX_SOURCE
#
# System Specific Libraries
#
SYSLIBS = -lm -lsocket
#
# $Id: //poco/1.2/build/config/QNX#1 $
#
# QNX
#
# Make settings for QNX Neutrino 6.3 with GCC 3.3.1
#
#
# General Settings
#
LINKMODE = SHARED
#
# Define Tools
#
CCVER = 3.3.1,gcc_ntox86
CC = qcc -V$(CCVER)
CXX = QCC -V$(CCVER)
LINK = $(CXX) -V$(CCVER)
LIB = ar -cr
RANLIB = ranlib
SHLIB = $(CXX) -shared -Wl,-soname,$(notdir $@) -Wl,-rpath,$(dir $@) -o $@
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.qcc
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .so.$(target_version)
SHAREDLIBLINKEXT = .so
#
# Compiler and Linker Flags
#
CFLAGS =
CFLAGS32 =
CFLAGS64 =
CXXFLAGS =
CXXFLAGS32 =
CXXFLAGS64 =
LINKFLAGS =
LINKFLAGS32 =
LINKFLAGS64 =
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -static
SHAREDOPT_CC = -fpic
SHAREDOPT_CXX = -fpic
SHAREDOPT_LINK = -Wl,-rpath,$(LIBPATH)
DEBUGOPT_CC = -g -D_DEBUG
DEBUGOPT_CXX = -g -D_DEBUG
DEBUGOPT_LINK = -g
RELEASEOPT_CC = -O2 -DNDEBUG
RELEASEOPT_CXX = -O2 -DNDEBUG
RELEASEOPT_LINK = -O2
#
# System Specific Flags
#
SYSFLAGS = -D_QNX_SOURCE
#
# System Specific Libraries
#
SYSLIBS = -lm -lsocket

View File

@ -1,69 +1,69 @@
#
# $Id: //poco/1.2/build/config/SunOS#2 $
#
# SunOS
#
# Build settings for SunOS 5.9/Forte C++ 5.4
#
#
# General Settings
#
LINKMODE = SHARED
#
# Tools
#
CC = cc
CXX = CC
LINK = $(CXX)
LIB = $(CXX) -xar -o $@
RANLIB = ranlib
SHLIB = $(CXX) $(LINKFLAGS) -G -o $@ -h$(notdir $@)
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.SunCC
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .so.$(target_version)
SHAREDLIBLINKEXT = .so
#
# Compiler and Linker Flags
#
CFLAGS = -mt -Isrc
CFLAGS32 =
CFLAGS64 = -xarch=v9
CXXFLAGS = -mt -library=stlport4
CXXFLAGS32 =
CXXFLAGS64 = -xarch=v9
LINKFLAGS = -mt -library=stlport4
LINKFLAGS32 =
LINKFLAGS64 = -xarch=v9
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -Bstatic
SHAREDOPT_CC = -KPIC
SHAREDOPT_CXX = -KPIC
SHAREDOPT_LINK = -Bdynamic
DEBUGOPT_CC = -g -xs -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_CXX = -g -xs -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_LINK = -g -xs
RELEASEOPT_CC = -O -DNDEBUG
RELEASEOPT_CXX = -O -DNDEBUG
RELEASEOPT_LINK =
#
# System Specific Flags
#
SYSFLAGS = -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS
#
# System Specific Libraries
#
SYSLIBS = -lpthread -lrt -lxnet -lsocket -lnsl -lresolv -ldl
#
# $Id: //poco/1.2/build/config/SunOS#2 $
#
# SunOS
#
# Build settings for SunOS 5.9/Forte C++ 5.4
#
#
# General Settings
#
LINKMODE = SHARED
#
# Tools
#
CC = cc
CXX = CC
LINK = $(CXX)
LIB = $(CXX) -xar -o $@
RANLIB = ranlib
SHLIB = $(CXX) $(LINKFLAGS) -G -o $@ -h$(notdir $@)
SHLIBLN = $(POCO_BASE)/build/script/shlibln
DEP = $(POCO_BASE)/build/script/makedepend.SunCC
SHELL = sh
RM = rm -rf
CP = cp
MKDIR = mkdir -p
#
# Extension for Shared Libraries
#
SHAREDLIBEXT = .so.$(target_version)
SHAREDLIBLINKEXT = .so
#
# Compiler and Linker Flags
#
CFLAGS = -mt -Isrc
CFLAGS32 =
CFLAGS64 = -xarch=v9
CXXFLAGS = -mt -library=stlport4
CXXFLAGS32 =
CXXFLAGS64 = -xarch=v9
LINKFLAGS = -mt -library=stlport4
LINKFLAGS32 =
LINKFLAGS64 = -xarch=v9
STATICOPT_CC =
STATICOPT_CXX =
STATICOPT_LINK = -Bstatic
SHAREDOPT_CC = -KPIC
SHAREDOPT_CXX = -KPIC
SHAREDOPT_LINK = -Bdynamic
DEBUGOPT_CC = -g -xs -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_CXX = -g -xs -D_DEBUG=$(DEBUGLEVEL)
DEBUGOPT_LINK = -g -xs
RELEASEOPT_CC = -O -DNDEBUG
RELEASEOPT_CXX = -O -DNDEBUG
RELEASEOPT_LINK =
#
# System Specific Flags
#
SYSFLAGS = -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS
#
# System Specific Libraries
#
SYSLIBS = -lpthread -lrt -lxnet -lsocket -lnsl -lresolv -ldl

View File

@ -1,80 +1,80 @@
#
# $Id: //poco/1.2/build/rules/compile#1 $
#
# compiile
#
# Compile rule definitions for makefiles
#
#
# Targets
#
.PHONY: all all_static all_shared all_debug all_release \
clean static_debug static_release shared_debug shared_release
all: $(DEFAULT_TARGET)
all_static: static_debug static_release
all_shared: shared_debug shared_release
all_debug: static_debug shared_debug
all_release: static_release shared_release
#
# Create directories if necessary
#
.PHONY: objdirs libdirs bindirs
objdirs: $(OBJPATH_RELEASE_STATIC) $(OBJPATH_DEBUG_STATIC) $(OBJPATH_RELEASE_SHARED) $(OBJPATH_DEBUG_SHARED)
libdirs: objdirs $(LIBPATH)
bindirs: objdirs $(BINPATH)
$(OBJPATH_RELEASE_STATIC) $(OBJPATH_DEBUG_STATIC) $(OBJPATH_RELEASE_SHARED) $(OBJPATH_DEBUG_SHARED) $(LIBPATH) $(BINPATH):
$(MKDIR) $@
#
# Rules for compiling
#
$(OBJPATH_DEBUG_STATIC)/%.o: $(SRCDIR)/%.cpp $(DEPPATH)/%.d
@echo "** Compiling" $< "(debug)"
$(CXX) $(INCLUDE) $(CXXFLAGS) $(DEBUGOPT_CXX) $(STATICOPT_CXX) -c $< -o $@
$(OBJPATH_RELEASE_STATIC)/%.o: $(SRCDIR)/%.cpp $(DEPPATH)/%.d
@echo "** Compiling" $< "(release)"
$(CXX) $(INCLUDE) $(CXXFLAGS) $(RELEASEOPT_CXX) $(STATICOPT_CXX) -c $< -o $@
$(OBJPATH_DEBUG_STATIC)/%.o: $(SRCDIR)/%.c $(DEPPATH)/%.d
@echo "** Compiling" $< "(debug)"
$(CC) $(INCLUDE) $(CFLAGS) $(DEBUGOPT_CC) $(STATICOPT_CC) -c $< -o $@
$(OBJPATH_RELEASE_STATIC)/%.o: $(SRCDIR)/%.c $(DEPPATH)/%.d
@echo "** Compiling" $< "(release)"
$(CC) $(INCLUDE) $(CFLAGS) $(RELEASEOPT_CC) $(STATICOPT_CC) -c $< -o $@
$(OBJPATH_DEBUG_SHARED)/%.o: $(SRCDIR)/%.cpp $(DEPPATH)/%.d
@echo "** Compiling" $< "(debug, shared)"
$(CXX) $(INCLUDE) $(CXXFLAGS) $(DEBUGOPT_CXX) $(SHAREDOPT_CXX) -c $< -o $@
$(OBJPATH_RELEASE_SHARED)/%.o: $(SRCDIR)/%.cpp $(DEPPATH)/%.d
@echo "** Compiling" $< "(release, shared)"
$(CXX) $(INCLUDE) $(CXXFLAGS) $(RELEASEOPT_CXX) $(SHAREDOPT_CXX) -c $< -o $@
$(OBJPATH_DEBUG_SHARED)/%.o: $(SRCDIR)/%.c $(DEPPATH)/%.d
@echo "** Compiling" $< "(debug, shared)"
$(CC) $(INCLUDE) $(CFLAGS) $(DEBUGOPT_CC) $(SHAREDOPT_CC) -c $< -o $@
$(OBJPATH_RELEASE_SHARED)/%.o: $(SRCDIR)/%.c $(DEPPATH)/%.d
@echo "** Compiling" $< "(release, shared)"
$(CC) $(INCLUDE) $(CFLAGS) $(RELEASEOPT_CC) $(SHAREDOPT_CC) -c $< -o $@
#
# Rules for creating dependency information
#
$(DEPPATH)/%.d: $(SRCDIR)/%.cpp
@echo "** Creating dependency info for" $^
$(MKDIR) $(DEPPATH)
$(DEP) $(SRCDIR)/$(patsubst %.d,%.cpp,$(notdir $@)) $@ $(OBJPATH_DEBUG_STATIC) $(OBJPATH_RELEASE_STATIC) $(OBJPATH_DEBUG_SHARED) $(OBJPATH_RELEASE_SHARED) $(INCLUDE) $(CXXFLAGS)
$(DEPPATH)/%.d: $(SRCDIR)/%.c
@echo "** Creating dependency info for" $^
$(MKDIR) $(DEPPATH)
$(DEP) $(SRCDIR)/$(patsubst %.d,%.c,$(notdir $@)) $@ $(OBJPATH_DEBUG_STATIC) $(OBJPATH_RELEASE_STATIC) $(OBJPATH_DEBUG_SHARED) $(OBJPATH_RELEASE_SHARED) $(INCLUDE) $(CFLAGS)
depend: $(addprefix $(DEPPATH)/,$(addsuffix .d,$(objects)))
#
# $Id: //poco/1.2/build/rules/compile#1 $
#
# compiile
#
# Compile rule definitions for makefiles
#
#
# Targets
#
.PHONY: all all_static all_shared all_debug all_release \
clean static_debug static_release shared_debug shared_release
all: $(DEFAULT_TARGET)
all_static: static_debug static_release
all_shared: shared_debug shared_release
all_debug: static_debug shared_debug
all_release: static_release shared_release
#
# Create directories if necessary
#
.PHONY: objdirs libdirs bindirs
objdirs: $(OBJPATH_RELEASE_STATIC) $(OBJPATH_DEBUG_STATIC) $(OBJPATH_RELEASE_SHARED) $(OBJPATH_DEBUG_SHARED)
libdirs: objdirs $(LIBPATH)
bindirs: objdirs $(BINPATH)
$(OBJPATH_RELEASE_STATIC) $(OBJPATH_DEBUG_STATIC) $(OBJPATH_RELEASE_SHARED) $(OBJPATH_DEBUG_SHARED) $(LIBPATH) $(BINPATH):
$(MKDIR) $@
#
# Rules for compiling
#
$(OBJPATH_DEBUG_STATIC)/%.o: $(SRCDIR)/%.cpp $(DEPPATH)/%.d
@echo "** Compiling" $< "(debug)"
$(CXX) $(INCLUDE) $(CXXFLAGS) $(DEBUGOPT_CXX) $(STATICOPT_CXX) -c $< -o $@
$(OBJPATH_RELEASE_STATIC)/%.o: $(SRCDIR)/%.cpp $(DEPPATH)/%.d
@echo "** Compiling" $< "(release)"
$(CXX) $(INCLUDE) $(CXXFLAGS) $(RELEASEOPT_CXX) $(STATICOPT_CXX) -c $< -o $@
$(OBJPATH_DEBUG_STATIC)/%.o: $(SRCDIR)/%.c $(DEPPATH)/%.d
@echo "** Compiling" $< "(debug)"
$(CC) $(INCLUDE) $(CFLAGS) $(DEBUGOPT_CC) $(STATICOPT_CC) -c $< -o $@
$(OBJPATH_RELEASE_STATIC)/%.o: $(SRCDIR)/%.c $(DEPPATH)/%.d
@echo "** Compiling" $< "(release)"
$(CC) $(INCLUDE) $(CFLAGS) $(RELEASEOPT_CC) $(STATICOPT_CC) -c $< -o $@
$(OBJPATH_DEBUG_SHARED)/%.o: $(SRCDIR)/%.cpp $(DEPPATH)/%.d
@echo "** Compiling" $< "(debug, shared)"
$(CXX) $(INCLUDE) $(CXXFLAGS) $(DEBUGOPT_CXX) $(SHAREDOPT_CXX) -c $< -o $@
$(OBJPATH_RELEASE_SHARED)/%.o: $(SRCDIR)/%.cpp $(DEPPATH)/%.d
@echo "** Compiling" $< "(release, shared)"
$(CXX) $(INCLUDE) $(CXXFLAGS) $(RELEASEOPT_CXX) $(SHAREDOPT_CXX) -c $< -o $@
$(OBJPATH_DEBUG_SHARED)/%.o: $(SRCDIR)/%.c $(DEPPATH)/%.d
@echo "** Compiling" $< "(debug, shared)"
$(CC) $(INCLUDE) $(CFLAGS) $(DEBUGOPT_CC) $(SHAREDOPT_CC) -c $< -o $@
$(OBJPATH_RELEASE_SHARED)/%.o: $(SRCDIR)/%.c $(DEPPATH)/%.d
@echo "** Compiling" $< "(release, shared)"
$(CC) $(INCLUDE) $(CFLAGS) $(RELEASEOPT_CC) $(SHAREDOPT_CC) -c $< -o $@
#
# Rules for creating dependency information
#
$(DEPPATH)/%.d: $(SRCDIR)/%.cpp
@echo "** Creating dependency info for" $^
$(MKDIR) $(DEPPATH)
$(DEP) $(SRCDIR)/$(patsubst %.d,%.cpp,$(notdir $@)) $@ $(OBJPATH_DEBUG_STATIC) $(OBJPATH_RELEASE_STATIC) $(OBJPATH_DEBUG_SHARED) $(OBJPATH_RELEASE_SHARED) $(INCLUDE) $(CXXFLAGS)
$(DEPPATH)/%.d: $(SRCDIR)/%.c
@echo "** Creating dependency info for" $^
$(MKDIR) $(DEPPATH)
$(DEP) $(SRCDIR)/$(patsubst %.d,%.c,$(notdir $@)) $@ $(OBJPATH_DEBUG_STATIC) $(OBJPATH_RELEASE_STATIC) $(OBJPATH_DEBUG_SHARED) $(OBJPATH_RELEASE_SHARED) $(INCLUDE) $(CFLAGS)
depend: $(addprefix $(DEPPATH)/,$(addsuffix .d,$(objects)))

View File

@ -1,73 +1,73 @@
#
# $Id: //poco/1.2/build/rules/dylib#1 $
#
# dylib
#
# Rule definitions for building dynamically loadable shared libraries
#
#
# Target names
#
SHL_EXT = $(SHAREDLIBLINKEXT)
# Some systems (e.g. Mac OS X) make a difference between
# shared libraries (as used by the linker/loader) and
# dynamic libraries, as used for dynamically loadable modules.
# If no specific instructions for making dynamic libraries
# are given, use the instructions for making shared libraries.
ifndef DYLIB
DYLIB = $(SHLIB)
endif
DYLIB_DEBUG = $(BINPATH)/$(target)d$(OSARCH_POSTFIX)$(SHL_EXT)
DYLIB_RELEASE = $(BINPATH)/$(target)$(OSARCH_POSTFIX)$(SHL_EXT)
DYLIB_S_DEBUG = $(BINPATH)/$(target)d$(OSARCH_POSTFIX)_s$(SHL_EXT)
DYLIB_S_RELEASE = $(BINPATH)/$(target)$(OSARCH_POSTFIX)_s$(SHL_EXT)
TARGET_LIBS_DEBUG = $(foreach l,$(target_libs),-l$(l)d$(OSARCH_POSTFIX))
TARGET_LIBS_RELEASE = $(foreach l,$(target_libs),-l$(l)$(OSARCH_POSTFIX))
#
# Include the compile rules
#
include $(POCO_BASE)/build/rules/compile
#
# Rules for creating a dynamically loadable shared library
#
clean:
$(RM) $(OBJPATH)
$(RM) $(DYLIB_DEBUG) $(DYLIB_RELEASE) $(DYLIB_S_DEBUG) $(DYLIB_S_RELEASE)
ifeq ($(LINKMODE),BOTH)
static_debug: bindirs $(DYLIB_S_DEBUG)
static_release: bindirs $(DYLIB_S_RELEASE)
else
static_debug: bindirs $(DYLIB_DEBUG)
static_release: bindirs $(DYLIB_RELEASE)
endif
shared_debug: bindirs $(DYLIB_DEBUG)
shared_release: bindirs $(DYLIB_RELEASE)
$(DYLIB_DEBUG): $(foreach o,$(objects),$(OBJPATH_DEBUG_SHARED)/$(o).o)
@echo "** Building dynamic library (debug)" $@
$(DYLIB) $^ $(LIBRARY) $(TARGET_LIBS_DEBUG) $(SYSLIBS)
$(DYLIB_RELEASE): $(foreach o,$(objects),$(OBJPATH_RELEASE_SHARED)/$(o).o)
@echo "** Building dynamic library (release)" $@
$(DYLIB) $^ $(LIBRARY) $(TARGET_LIBS_RELEASE) $(SYSLIBS)
$(DYLIB_S_DEBUG): $(foreach o,$(objects),$(OBJPATH_DEBUG_SHARED)/$(o).o)
@echo "** Building dynamic library (debug)" $@
$(DYLIB) $^ $(LIBRARY) $(TARGET_LIBS_DEBUG) $(SYSLIBS)
$(DYLIB_S_RELEASE): $(foreach o,$(objects),$(OBJPATH_RELEASE_SHARED)/$(o).o)
@echo "** Building dynamic library (release)" $@
$(DYLIB) $^ $(LIBRARY) $(TARGET_LIBS_RELEASE) $(SYSLIBS)
#
# Include the automatically generated dependency files
#
sinclude $(addprefix $(DEPPATH)/,$(addsuffix .d,$(objects)))
#
# $Id: //poco/1.2/build/rules/dylib#1 $
#
# dylib
#
# Rule definitions for building dynamically loadable shared libraries
#
#
# Target names
#
SHL_EXT = $(SHAREDLIBLINKEXT)
# Some systems (e.g. Mac OS X) make a difference between
# shared libraries (as used by the linker/loader) and
# dynamic libraries, as used for dynamically loadable modules.
# If no specific instructions for making dynamic libraries
# are given, use the instructions for making shared libraries.
ifndef DYLIB
DYLIB = $(SHLIB)
endif
DYLIB_DEBUG = $(BINPATH)/$(target)d$(OSARCH_POSTFIX)$(SHL_EXT)
DYLIB_RELEASE = $(BINPATH)/$(target)$(OSARCH_POSTFIX)$(SHL_EXT)
DYLIB_S_DEBUG = $(BINPATH)/$(target)d$(OSARCH_POSTFIX)_s$(SHL_EXT)
DYLIB_S_RELEASE = $(BINPATH)/$(target)$(OSARCH_POSTFIX)_s$(SHL_EXT)
TARGET_LIBS_DEBUG = $(foreach l,$(target_libs),-l$(l)d$(OSARCH_POSTFIX))
TARGET_LIBS_RELEASE = $(foreach l,$(target_libs),-l$(l)$(OSARCH_POSTFIX))
#
# Include the compile rules
#
include $(POCO_BASE)/build/rules/compile
#
# Rules for creating a dynamically loadable shared library
#
clean:
$(RM) $(OBJPATH)
$(RM) $(DYLIB_DEBUG) $(DYLIB_RELEASE) $(DYLIB_S_DEBUG) $(DYLIB_S_RELEASE)
ifeq ($(LINKMODE),BOTH)
static_debug: bindirs $(DYLIB_S_DEBUG)
static_release: bindirs $(DYLIB_S_RELEASE)
else
static_debug: bindirs $(DYLIB_DEBUG)
static_release: bindirs $(DYLIB_RELEASE)
endif
shared_debug: bindirs $(DYLIB_DEBUG)
shared_release: bindirs $(DYLIB_RELEASE)
$(DYLIB_DEBUG): $(foreach o,$(objects),$(OBJPATH_DEBUG_SHARED)/$(o).o)
@echo "** Building dynamic library (debug)" $@
$(DYLIB) $^ $(LIBRARY) $(TARGET_LIBS_DEBUG) $(SYSLIBS)
$(DYLIB_RELEASE): $(foreach o,$(objects),$(OBJPATH_RELEASE_SHARED)/$(o).o)
@echo "** Building dynamic library (release)" $@
$(DYLIB) $^ $(LIBRARY) $(TARGET_LIBS_RELEASE) $(SYSLIBS)
$(DYLIB_S_DEBUG): $(foreach o,$(objects),$(OBJPATH_DEBUG_SHARED)/$(o).o)
@echo "** Building dynamic library (debug)" $@
$(DYLIB) $^ $(LIBRARY) $(TARGET_LIBS_DEBUG) $(SYSLIBS)
$(DYLIB_S_RELEASE): $(foreach o,$(objects),$(OBJPATH_RELEASE_SHARED)/$(o).o)
@echo "** Building dynamic library (release)" $@
$(DYLIB) $^ $(LIBRARY) $(TARGET_LIBS_RELEASE) $(SYSLIBS)
#
# Include the automatically generated dependency files
#
sinclude $(addprefix $(DEPPATH)/,$(addsuffix .d,$(objects)))

View File

@ -1,56 +1,56 @@
#
# $Id: //poco/1.2/build/rules/exec#1 $
#
# exec
#
# Rule definitions for building executables
#
#
# Target names
#
EXEC_RELEASE_STATIC = $(BINPATH)/$(target)$(OSARCH_POSTFIX)_s
EXEC_DEBUG_STATIC = $(BINPATH)/$(target)d$(OSARCH_POSTFIX)_s
EXEC_RELEASE_SHARED = $(BINPATH)/$(target)$(OSARCH_POSTFIX)
EXEC_DEBUG_SHARED = $(BINPATH)/$(target)d$(OSARCH_POSTFIX)
TARGET_LIBS_DEBUG = $(foreach l,$(target_libs),-l$(l)d$(OSARCH_POSTFIX))
TARGET_LIBS_RELEASE = $(foreach l,$(target_libs),-l$(l)$(OSARCH_POSTFIX))
#
# Include the compile rules
#
include $(POCO_BASE)/build/rules/compile
#
# Rules for creating an executable
#
clean:
$(RM) $(OBJPATH)
$(RM) $(EXEC_RELEASE_STATIC) $(EXEC_DEBUG_STATIC) $(EXEC_RELEASE_SHARED) $(EXEC_DEBUG_SHARED)
static_debug: bindirs $(EXEC_DEBUG_STATIC)
static_release: bindirs $(EXEC_RELEASE_STATIC)
shared_debug: bindirs $(EXEC_DEBUG_SHARED)
shared_release: bindirs $(EXEC_RELEASE_SHARED)
$(EXEC_DEBUG_STATIC): $(foreach o,$(objects),$(OBJPATH_DEBUG_STATIC)/$(o).o)
@echo "** Building executable (debug)" $@
$(LINK) $(LINKFLAGS) $(DEBUGOPT_LINK) $(STATICOPT_LINK) -o $@ $^ $(LIBRARY) $(TARGET_LIBS_DEBUG) $(SYSLIBS)
$(EXEC_RELEASE_STATIC): $(foreach o,$(objects),$(OBJPATH_RELEASE_STATIC)/$(o).o)
@echo "** Building executable (release)" $@
$(LINK) $(LINKFLAGS) $(RELEASEOPT_LINK) $(STATICOPT_LINK) -o $@ $^ $(LIBRARY) $(TARGET_LIBS_RELEASE) $(SYSLIBS)
$(EXEC_DEBUG_SHARED): $(foreach o,$(objects),$(OBJPATH_DEBUG_SHARED)/$(o).o)
@echo "** Building shared executable (debug)" $@
$(LINK) $(LINKFLAGS) $(DEBUGOPT_LINK) $(SHAREDOPT_LINK) -o $@ $^ $(LIBRARY) $(TARGET_LIBS_DEBUG) $(SYSLIBS)
$(EXEC_RELEASE_SHARED): $(foreach o,$(objects),$(OBJPATH_RELEASE_SHARED)/$(o).o)
@echo "** Building shared executable (release)" $@
$(LINK) $(LINKFLAGS) $(RELEASEOPT_LINK) $(SHAREDOPT_LINK) -o $@ $^ $(LIBRARY) $(TARGET_LIBS_RELEASE) $(SYSLIBS)
#
# Include the automatically generated dependency files
#
sinclude $(addprefix $(DEPPATH)/,$(addsuffix .d,$(objects)))
#
# $Id: //poco/1.2/build/rules/exec#1 $
#
# exec
#
# Rule definitions for building executables
#
#
# Target names
#
EXEC_RELEASE_STATIC = $(BINPATH)/$(target)$(OSARCH_POSTFIX)_s
EXEC_DEBUG_STATIC = $(BINPATH)/$(target)d$(OSARCH_POSTFIX)_s
EXEC_RELEASE_SHARED = $(BINPATH)/$(target)$(OSARCH_POSTFIX)
EXEC_DEBUG_SHARED = $(BINPATH)/$(target)d$(OSARCH_POSTFIX)
TARGET_LIBS_DEBUG = $(foreach l,$(target_libs),-l$(l)d$(OSARCH_POSTFIX))
TARGET_LIBS_RELEASE = $(foreach l,$(target_libs),-l$(l)$(OSARCH_POSTFIX))
#
# Include the compile rules
#
include $(POCO_BASE)/build/rules/compile
#
# Rules for creating an executable
#
clean:
$(RM) $(OBJPATH)
$(RM) $(EXEC_RELEASE_STATIC) $(EXEC_DEBUG_STATIC) $(EXEC_RELEASE_SHARED) $(EXEC_DEBUG_SHARED)
static_debug: bindirs $(EXEC_DEBUG_STATIC)
static_release: bindirs $(EXEC_RELEASE_STATIC)
shared_debug: bindirs $(EXEC_DEBUG_SHARED)
shared_release: bindirs $(EXEC_RELEASE_SHARED)
$(EXEC_DEBUG_STATIC): $(foreach o,$(objects),$(OBJPATH_DEBUG_STATIC)/$(o).o)
@echo "** Building executable (debug)" $@
$(LINK) $(LINKFLAGS) $(DEBUGOPT_LINK) $(STATICOPT_LINK) -o $@ $^ $(LIBRARY) $(TARGET_LIBS_DEBUG) $(SYSLIBS)
$(EXEC_RELEASE_STATIC): $(foreach o,$(objects),$(OBJPATH_RELEASE_STATIC)/$(o).o)
@echo "** Building executable (release)" $@
$(LINK) $(LINKFLAGS) $(RELEASEOPT_LINK) $(STATICOPT_LINK) -o $@ $^ $(LIBRARY) $(TARGET_LIBS_RELEASE) $(SYSLIBS)
$(EXEC_DEBUG_SHARED): $(foreach o,$(objects),$(OBJPATH_DEBUG_SHARED)/$(o).o)
@echo "** Building shared executable (debug)" $@
$(LINK) $(LINKFLAGS) $(DEBUGOPT_LINK) $(SHAREDOPT_LINK) -o $@ $^ $(LIBRARY) $(TARGET_LIBS_DEBUG) $(SYSLIBS)
$(EXEC_RELEASE_SHARED): $(foreach o,$(objects),$(OBJPATH_RELEASE_SHARED)/$(o).o)
@echo "** Building shared executable (release)" $@
$(LINK) $(LINKFLAGS) $(RELEASEOPT_LINK) $(SHAREDOPT_LINK) -o $@ $^ $(LIBRARY) $(TARGET_LIBS_RELEASE) $(SYSLIBS)
#
# Include the automatically generated dependency files
#
sinclude $(addprefix $(DEPPATH)/,$(addsuffix .d,$(objects)))

View File

@ -1,170 +1,170 @@
#
# $Id: //poco/1.2/build/rules/global#1 $
#
# global
#
# Global build configuration
#
# Environment variables:
# POCO_BASE: Path to POCO source tree. Must be defined.
# POCO_BUILD: Path to directory where build files are put.
# Defaults to $(POCO_BASE)
# POCO_CONFIG: Build configuration to use.
# Defaults to `uname`.
# POCO_TARGET_OSNAME: Target system operating system name (for cross builds)
# POCO_TARGET_OSARCH: Target system architecture (forr cross builds)
#
#
# Check for POCO_BASE
#
ifndef POCO_BASE
$(error POCO_BASE is not defined.)
endif
#
# Check for POCO_BUILD
#
ifndef POCO_BUILD
POCO_BUILD = $(POCO_BASE)
endif
#
# Determine OS
#
POCO_HOST_OSNAME = $(shell uname)
ifeq ($(findstring CYGWIN,$(POCO_HOST_OSNAME)),CYGWIN)
POCO_HOST_OSNAME = CYGWIN
endif
#
# If POCO_CONFIG is not set, use the OS name as configuration name
#
ifndef POCO_CONFIG
POCO_CONFIG = $(POCO_HOST_OSNAME)
endif
#
# Check if a 64bit build is requested
#
ifndef OSARCH_64BITS
OSARCH_64BITS = 0
endif
ifeq ($(OSARCH_64BITS),1)
OSARCH_POSTFIX = 64
else
OSARCH_POSTFIX =
endif
#
# Include System Specific Settings
#
include $(POCO_BASE)/build/config/$(POCO_CONFIG)
#
# Determine operating system
#
ifndef POCO_TARGET_OSNAME
OSNAME := $(POCO_HOST_OSNAME)
else
OSNAME := $(POCO_TARGET_OSNAME)
endif
ifndef POCO_TARGET_OSARCH
OSARCH := $(subst /,-,$(shell uname -m | tr ' ' _))
else
OSARCH := $(POCO_TARGET_OSARCH)
endif
HOSTNAME := $(shell hostname)
#
# Find out current component
#
COMPONENT := $(shell $(POCO_BASE)/build/script/projname)
#
# Define standard directories
#
SRCDIR = src
INCDIR = include
LIBDIR = lib/$(OSNAME)/$(OSARCH)
BINDIR = bin/$(OSNAME)/$(OSARCH)
OBJDIR = obj/$(OSNAME)/$(OSARCH)
DEPDIR = .dep/$(OSNAME)/$(OSARCH)
LIBPATH = $(POCO_BUILD)/$(LIBDIR)
BINPATH = $(POCO_BUILD)/$(COMPONENT)/$(BINDIR)
OBJPATH = $(POCO_BUILD)/$(COMPONENT)/$(OBJDIR)
DEPPATH = $(POCO_BUILD)/$(COMPONENT)/$(DEPDIR)
ifndef LIBPREFIX
LIBPREFIX = lib
endif
#
# Build component list
#
COMPONENTS := $(shell cat $(POCO_BASE)/components)
#
# Read global library version number
#
LIBVERSION := $(shell cat $(POCO_BASE)/libversion)
#
# Determine link mode
#
ifndef LINKMODE
LINKMODE = BOTH
endif
ifeq ($(LINKMODE),SHARED)
DEFAULT_TARGET = all_shared
endif
ifeq ($(LINKMODE),STATIC)
DEFAULT_TARGET = all_static
endif
ifeq ($(LINKMODE),BOTH)
DEFAULT_TARGET = all_static all_shared
endif
#
# Compose compiler flags
#
COMMONFLAGS = -DPOCO_BUILD_HOST=$(HOSTNAME)
CFLAGS += $(COMMONFLAGS) $(SYSFLAGS)
CXXFLAGS += $(COMMONFLAGS) $(SYSFLAGS)
LINKFLAGS += $(COMMONFLAGS) $(SYSFLAGS)
ifeq ($(OSARCH_64BITS),1)
CFLAGS += $(CFLAGS64)
CXXFLAGS += $(CXXFLAGS64)
LINKFLAGS += $(LINKFLAGS64)
else
CFLAGS += $(CFLAGS32)
CXXFLAGS += $(CXXFLAGS32)
LINKFLAGS += $(LINKFLAGS32)
endif
#
# Compose object file path
#
OBJPATH_RELEASE_STATIC = $(OBJPATH)/release_static$(OSARCH_POSTFIX)
OBJPATH_DEBUG_STATIC = $(OBJPATH)/debug_static$(OSARCH_POSTFIX)
OBJPATH_RELEASE_SHARED = $(OBJPATH)/release_shared$(OSARCH_POSTFIX)
OBJPATH_DEBUG_SHARED = $(OBJPATH)/debug_shared$(OSARCH_POSTFIX)
#
# Build Include directory List
#
INCLUDE = -Iinclude $(foreach p,$(COMPONENTS),-I$(POCO_BASE)/$(p)/$(INCDIR))
#
# Build Library Directory List
#
LIBRARY = -L$(LIBPATH)
#
# Make CC and CXX environment vars
#
export CC
export CXX
#
# $Id: //poco/1.2/build/rules/global#1 $
#
# global
#
# Global build configuration
#
# Environment variables:
# POCO_BASE: Path to POCO source tree. Must be defined.
# POCO_BUILD: Path to directory where build files are put.
# Defaults to $(POCO_BASE)
# POCO_CONFIG: Build configuration to use.
# Defaults to `uname`.
# POCO_TARGET_OSNAME: Target system operating system name (for cross builds)
# POCO_TARGET_OSARCH: Target system architecture (forr cross builds)
#
#
# Check for POCO_BASE
#
ifndef POCO_BASE
$(error POCO_BASE is not defined.)
endif
#
# Check for POCO_BUILD
#
ifndef POCO_BUILD
POCO_BUILD = $(POCO_BASE)
endif
#
# Determine OS
#
POCO_HOST_OSNAME = $(shell uname)
ifeq ($(findstring CYGWIN,$(POCO_HOST_OSNAME)),CYGWIN)
POCO_HOST_OSNAME = CYGWIN
endif
#
# If POCO_CONFIG is not set, use the OS name as configuration name
#
ifndef POCO_CONFIG
POCO_CONFIG = $(POCO_HOST_OSNAME)
endif
#
# Check if a 64bit build is requested
#
ifndef OSARCH_64BITS
OSARCH_64BITS = 0
endif
ifeq ($(OSARCH_64BITS),1)
OSARCH_POSTFIX = 64
else
OSARCH_POSTFIX =
endif
#
# Include System Specific Settings
#
include $(POCO_BASE)/build/config/$(POCO_CONFIG)
#
# Determine operating system
#
ifndef POCO_TARGET_OSNAME
OSNAME := $(POCO_HOST_OSNAME)
else
OSNAME := $(POCO_TARGET_OSNAME)
endif
ifndef POCO_TARGET_OSARCH
OSARCH := $(subst /,-,$(shell uname -m | tr ' ' _))
else
OSARCH := $(POCO_TARGET_OSARCH)
endif
HOSTNAME := $(shell hostname)
#
# Find out current component
#
COMPONENT := $(shell $(POCO_BASE)/build/script/projname)
#
# Define standard directories
#
SRCDIR = src
INCDIR = include
LIBDIR = lib/$(OSNAME)/$(OSARCH)
BINDIR = bin/$(OSNAME)/$(OSARCH)
OBJDIR = obj/$(OSNAME)/$(OSARCH)
DEPDIR = .dep/$(OSNAME)/$(OSARCH)
LIBPATH = $(POCO_BUILD)/$(LIBDIR)
BINPATH = $(POCO_BUILD)/$(COMPONENT)/$(BINDIR)
OBJPATH = $(POCO_BUILD)/$(COMPONENT)/$(OBJDIR)
DEPPATH = $(POCO_BUILD)/$(COMPONENT)/$(DEPDIR)
ifndef LIBPREFIX
LIBPREFIX = lib
endif
#
# Build component list
#
COMPONENTS := $(shell cat $(POCO_BASE)/components)
#
# Read global library version number
#
LIBVERSION := $(shell cat $(POCO_BASE)/libversion)
#
# Determine link mode
#
ifndef LINKMODE
LINKMODE = BOTH
endif
ifeq ($(LINKMODE),SHARED)
DEFAULT_TARGET = all_shared
endif
ifeq ($(LINKMODE),STATIC)
DEFAULT_TARGET = all_static
endif
ifeq ($(LINKMODE),BOTH)
DEFAULT_TARGET = all_static all_shared
endif
#
# Compose compiler flags
#
COMMONFLAGS = -DPOCO_BUILD_HOST=$(HOSTNAME)
CFLAGS += $(COMMONFLAGS) $(SYSFLAGS)
CXXFLAGS += $(COMMONFLAGS) $(SYSFLAGS)
LINKFLAGS += $(COMMONFLAGS) $(SYSFLAGS)
ifeq ($(OSARCH_64BITS),1)
CFLAGS += $(CFLAGS64)
CXXFLAGS += $(CXXFLAGS64)
LINKFLAGS += $(LINKFLAGS64)
else
CFLAGS += $(CFLAGS32)
CXXFLAGS += $(CXXFLAGS32)
LINKFLAGS += $(LINKFLAGS32)
endif
#
# Compose object file path
#
OBJPATH_RELEASE_STATIC = $(OBJPATH)/release_static$(OSARCH_POSTFIX)
OBJPATH_DEBUG_STATIC = $(OBJPATH)/debug_static$(OSARCH_POSTFIX)
OBJPATH_RELEASE_SHARED = $(OBJPATH)/release_shared$(OSARCH_POSTFIX)
OBJPATH_DEBUG_SHARED = $(OBJPATH)/debug_shared$(OSARCH_POSTFIX)
#
# Build Include directory List
#
INCLUDE = -Iinclude $(foreach p,$(COMPONENTS),-I$(POCO_BASE)/$(p)/$(INCDIR))
#
# Build Library Directory List
#
LIBRARY = -L$(LIBPATH)
#
# Make CC and CXX environment vars
#
export CC
export CXX

View File

@ -1,72 +1,72 @@
#
# $Id: //poco/1.2/build/rules/lib#1 $
#
# lib
#
# Rule definitions for building libraries
#
#
# Target names
#
ifeq ($(OSNAME),CYGWIN)
SHL_EXT = $(SHAREDLIBLINKEXT)
else
ifdef target_version
SHL_EXT = $(SHAREDLIBEXT)
else
SHL_EXT = $(SHAREDLIBLINKEXT)
endif
endif
LIB_RELEASE_STATIC = $(LIBPATH)/$(LIBPREFIX)$(target)$(OSARCH_POSTFIX).a
LIB_DEBUG_STATIC = $(LIBPATH)/$(LIBPREFIX)$(target)d$(OSARCH_POSTFIX).a
LIB_RELEASE_SHARED = $(LIBPATH)/$(LIBPREFIX)$(target)$(OSARCH_POSTFIX)$(SHL_EXT)
LIB_DEBUG_SHARED = $(LIBPATH)/$(LIBPREFIX)$(target)d$(OSARCH_POSTFIX)$(SHL_EXT)
LIB_RELEASE_SHARED_LINK = $(LIBPATH)/$(LIBPREFIX)$(target)$(OSARCH_POSTFIX)$(SHAREDLIBLINKEXT)
LIB_DEBUG_SHARED_LINK = $(LIBPATH)/$(LIBPREFIX)$(target)d$(OSARCH_POSTFIX)$(SHAREDLIBLINKEXT)
TARGET_LIBS_DEBUG = $(foreach l,$(target_libs),-l$(l)d$(OSARCH_POSTFIX))
TARGET_LIBS_RELEASE = $(foreach l,$(target_libs),-l$(l)$(OSARCH_POSTFIX))
#
# Include the compile rules
#
include $(POCO_BASE)/build/rules/compile
#
# Rules for creating a library
#
clean:
$(RM) $(OBJPATH)
$(RM) $(LIB_RELEASE_STATIC) $(LIB_DEBUG_STATIC) $(LIB_RELEASE_SHARED) $(LIB_DEBUG_SHARED)
static_debug: libdirs $(LIB_DEBUG_STATIC)
static_release: libdirs $(LIB_RELEASE_STATIC)
shared_debug: libdirs $(LIB_DEBUG_SHARED)
shared_release: libdirs $(LIB_RELEASE_SHARED)
$(LIB_DEBUG_STATIC): $(foreach o,$(objects),$(OBJPATH_DEBUG_STATIC)/$(o).o)
@echo "** Building library (debug)" $@
$(LIB) $@ $^
$(RANLIB) $@
$(LIB_RELEASE_STATIC): $(foreach o,$(objects),$(OBJPATH_RELEASE_STATIC)/$(o).o)
@echo "** Building library (release)" $@
$(LIB) $@ $^
$(RANLIB) $@
$(LIB_DEBUG_SHARED): $(foreach o,$(objects),$(OBJPATH_DEBUG_SHARED)/$(o).o)
@echo "** Building shared library (debug)" $@
$(SHLIB) $^ $(LIBRARY) $(TARGET_LIBS_DEBUG) $(SYSLIBS)
$(SHLIBLN) $(LIB_DEBUG_SHARED) $(LIB_DEBUG_SHARED_LINK)
$(LIB_RELEASE_SHARED): $(foreach o,$(objects),$(OBJPATH_RELEASE_SHARED)/$(o).o)
@echo "** Building shared library (release)" $@
$(SHLIB) $^ $(LIBRARY) $(TARGET_LIBS_RELEASE) $(SYSLIBS)
$(SHLIBLN) $(LIB_RELEASE_SHARED) $(LIB_RELEASE_SHARED_LINK)
#
# Include the automatically generated dependency files
#
sinclude $(addprefix $(DEPPATH)/,$(addsuffix .d,$(objects)))
#
# $Id: //poco/1.2/build/rules/lib#1 $
#
# lib
#
# Rule definitions for building libraries
#
#
# Target names
#
ifeq ($(OSNAME),CYGWIN)
SHL_EXT = $(SHAREDLIBLINKEXT)
else
ifdef target_version
SHL_EXT = $(SHAREDLIBEXT)
else
SHL_EXT = $(SHAREDLIBLINKEXT)
endif
endif
LIB_RELEASE_STATIC = $(LIBPATH)/$(LIBPREFIX)$(target)$(OSARCH_POSTFIX).a
LIB_DEBUG_STATIC = $(LIBPATH)/$(LIBPREFIX)$(target)d$(OSARCH_POSTFIX).a
LIB_RELEASE_SHARED = $(LIBPATH)/$(LIBPREFIX)$(target)$(OSARCH_POSTFIX)$(SHL_EXT)
LIB_DEBUG_SHARED = $(LIBPATH)/$(LIBPREFIX)$(target)d$(OSARCH_POSTFIX)$(SHL_EXT)
LIB_RELEASE_SHARED_LINK = $(LIBPATH)/$(LIBPREFIX)$(target)$(OSARCH_POSTFIX)$(SHAREDLIBLINKEXT)
LIB_DEBUG_SHARED_LINK = $(LIBPATH)/$(LIBPREFIX)$(target)d$(OSARCH_POSTFIX)$(SHAREDLIBLINKEXT)
TARGET_LIBS_DEBUG = $(foreach l,$(target_libs),-l$(l)d$(OSARCH_POSTFIX))
TARGET_LIBS_RELEASE = $(foreach l,$(target_libs),-l$(l)$(OSARCH_POSTFIX))
#
# Include the compile rules
#
include $(POCO_BASE)/build/rules/compile
#
# Rules for creating a library
#
clean:
$(RM) $(OBJPATH)
$(RM) $(LIB_RELEASE_STATIC) $(LIB_DEBUG_STATIC) $(LIB_RELEASE_SHARED) $(LIB_DEBUG_SHARED)
static_debug: libdirs $(LIB_DEBUG_STATIC)
static_release: libdirs $(LIB_RELEASE_STATIC)
shared_debug: libdirs $(LIB_DEBUG_SHARED)
shared_release: libdirs $(LIB_RELEASE_SHARED)
$(LIB_DEBUG_STATIC): $(foreach o,$(objects),$(OBJPATH_DEBUG_STATIC)/$(o).o)
@echo "** Building library (debug)" $@
$(LIB) $@ $^
$(RANLIB) $@
$(LIB_RELEASE_STATIC): $(foreach o,$(objects),$(OBJPATH_RELEASE_STATIC)/$(o).o)
@echo "** Building library (release)" $@
$(LIB) $@ $^
$(RANLIB) $@
$(LIB_DEBUG_SHARED): $(foreach o,$(objects),$(OBJPATH_DEBUG_SHARED)/$(o).o)
@echo "** Building shared library (debug)" $@
$(SHLIB) $^ $(LIBRARY) $(TARGET_LIBS_DEBUG) $(SYSLIBS)
$(SHLIBLN) $(LIB_DEBUG_SHARED) $(LIB_DEBUG_SHARED_LINK)
$(LIB_RELEASE_SHARED): $(foreach o,$(objects),$(OBJPATH_RELEASE_SHARED)/$(o).o)
@echo "** Building shared library (release)" $@
$(SHLIB) $^ $(LIBRARY) $(TARGET_LIBS_RELEASE) $(SYSLIBS)
$(SHLIBLN) $(LIB_RELEASE_SHARED) $(LIB_RELEASE_SHARED_LINK)
#
# Include the automatically generated dependency files
#
sinclude $(addprefix $(DEPPATH)/,$(addsuffix .d,$(objects)))

View File

@ -1,24 +1,24 @@
#! /bin/sh
#
# $Id: //poco/1.2/build/script/makedepend.SunCC#1 $
#
# makedepend.SunCC
#
# Create dependency file, Sun Forte C++ version
# Usage: makedepend.SunCC source target dir1 dir2 dir3 dir4 flags...
#
source=$1
shift
target=$1
shift
dir1=$1
shift
dir2=$1
shift
dir3=$1
shift
dir4=$1
shift
CC -xM1 $@ $source | sed "s#\(.*\.o\)#$dir1/\1 $dir2/\1 $dir3/\1 $dir4/\1#" >$target
#! /bin/sh
#
# $Id: //poco/1.2/build/script/makedepend.SunCC#1 $
#
# makedepend.SunCC
#
# Create dependency file, Sun Forte C++ version
# Usage: makedepend.SunCC source target dir1 dir2 dir3 dir4 flags...
#
source=$1
shift
target=$1
shift
dir1=$1
shift
dir2=$1
shift
dir3=$1
shift
dir4=$1
shift
CC -xM1 $@ $source | sed "s#\(.*\.o\)#$dir1/\1 $dir2/\1 $dir3/\1 $dir4/\1#" >$target

View File

@ -1,27 +1,27 @@
#! /bin/sh
#
# $Id: //poco/1.2/build/script/makedepend.aCC#1 $
#
# makedepend.aCC
#
# Create dependency file, HP ANSI C++ version
# Usage: makedepend.gcc source target dir1 dir2 dir3 dir4 flags...
#
source=$1
shift
target=$1
shift
dir1=$1
shift
dir2=$1
shift
dir3=$1
shift
dir4=$1
shift
tmpfile=`basename $target`
aCC -E +maked $@ $source >/dev/null
sed "s#\(.*\.o\)#$dir1/\1 $dir2/\1 $dir3/\1 $dir4/\1#" <$tmpfile >$target
rm $tmpfile
#! /bin/sh
#
# $Id: //poco/1.2/build/script/makedepend.aCC#1 $
#
# makedepend.aCC
#
# Create dependency file, HP ANSI C++ version
# Usage: makedepend.gcc source target dir1 dir2 dir3 dir4 flags...
#
source=$1
shift
target=$1
shift
dir1=$1
shift
dir2=$1
shift
dir3=$1
shift
dir4=$1
shift
tmpfile=`basename $target`
aCC -E +maked $@ $source >/dev/null
sed "s#\(.*\.o\)#$dir1/\1 $dir2/\1 $dir3/\1 $dir4/\1#" <$tmpfile >$target
rm $tmpfile

View File

@ -1,24 +1,24 @@
#! /bin/sh
#
# $Id: //poco/1.2/build/script/makedepend.cxx#1 $
#
# makedepend.cxx
#
# Create dependency file, Compaq C++ version
# Usage: makedepend.gcc source target dir1 dir2 dir3 dir4 flags...
#
source=$1
shift
target=$1
shift
dir1=$1
shift
dir2=$1
shift
dir3=$1
shift
dir4=$1
shift
cxx -M $@ $source | sed "s#\(.*\.o\)#$dir1/\1 $dir2/\1 $dir3/\1 $dir4/\1#" >$target
#! /bin/sh
#
# $Id: //poco/1.2/build/script/makedepend.cxx#1 $
#
# makedepend.cxx
#
# Create dependency file, Compaq C++ version
# Usage: makedepend.gcc source target dir1 dir2 dir3 dir4 flags...
#
source=$1
shift
target=$1
shift
dir1=$1
shift
dir2=$1
shift
dir3=$1
shift
dir4=$1
shift
cxx -M $@ $source | sed "s#\(.*\.o\)#$dir1/\1 $dir2/\1 $dir3/\1 $dir4/\1#" >$target

View File

@ -1,24 +1,24 @@
#! /bin/sh
#
# $Id: //poco/1.2/build/script/makedepend.gcc#1 $
#
# makedepend.gcc
#
# Create dependency file, GCC version
# Usage: makedepend.gcc source target dir1 dir2 dir3 dir4 flags...
#
source=$1
shift
target=$1
shift
dir1=$1
shift
dir2=$1
shift
dir3=$1
shift
dir4=$1
shift
$CC -MM $@ $source | sed "s#\(.*\.o\)#$dir1/\1 $dir2/\1 $dir3/\1 $dir4/\1#" >$target
#! /bin/sh
#
# $Id: //poco/1.2/build/script/makedepend.gcc#1 $
#
# makedepend.gcc
#
# Create dependency file, GCC version
# Usage: makedepend.gcc source target dir1 dir2 dir3 dir4 flags...
#
source=$1
shift
target=$1
shift
dir1=$1
shift
dir2=$1
shift
dir3=$1
shift
dir4=$1
shift
$CC -MM $@ $source | sed "s#\(.*\.o\)#$dir1/\1 $dir2/\1 $dir3/\1 $dir4/\1#" >$target

View File

@ -1,23 +1,23 @@
#! /bin/sh
#
# $Id: //poco/1.2/build/script/makedepend.qcc#1 $
#
# makedepend.gcc
#
# Create dependency file, QNX Neutrino QCC version
# Usage: makedepend.qcc source target dir1 dir2 dir3 dir4 flags...
#
source=$1
shift
target=$1
shift
dir1=$1
shift
dir2=$1
shift
dir3=$1
shift
dir4=$1
shift
$CC -E -Wp,-MM $@ $source | sed "s#\(.*\.o\)#$dir1/\1 $dir2/\1 $dir3/\1 $dir4/\1#" >$target
#! /bin/sh
#
# $Id: //poco/1.2/build/script/makedepend.qcc#1 $
#
# makedepend.gcc
#
# Create dependency file, QNX Neutrino QCC version
# Usage: makedepend.qcc source target dir1 dir2 dir3 dir4 flags...
#
source=$1
shift
target=$1
shift
dir1=$1
shift
dir2=$1
shift
dir3=$1
shift
dir4=$1
shift
$CC -E -Wp,-MM $@ $source | sed "s#\(.*\.o\)#$dir1/\1 $dir2/\1 $dir3/\1 $dir4/\1#" >$target

View File

@ -1,27 +1,27 @@
#! /bin/sh
#
# makeldpath
#
# $Id: //poco/1.2/build/script/makeldpath#1 $
#
# Create a LD_LIBRARY_PATH for all project libraries.
#
if [ "$POCO_BASE" == "" ] ; then
echo $0": POCO_BASE is not set."
exit 1
fi
projectList=`cat ${POCO_BASE}/components`
OSNAME=`uname`
OSARCH=`uname -m | tr " /" "_-"`
for proj in $projectList ;
do
path=${POCO_BASE}/${proj}/lib/${OSNAME}/${OSARCH}
echo $path
if [ -d $path ] ; then
echo -n ":"$path
fi
done
#! /bin/sh
#
# makeldpath
#
# $Id: //poco/1.2/build/script/makeldpath#1 $
#
# Create a LD_LIBRARY_PATH for all project libraries.
#
if [ "$POCO_BASE" == "" ] ; then
echo $0": POCO_BASE is not set."
exit 1
fi
projectList=`cat ${POCO_BASE}/components`
OSNAME=`uname`
OSARCH=`uname -m | tr " /" "_-"`
for proj in $projectList ;
do
path=${POCO_BASE}/${proj}/lib/${OSNAME}/${OSARCH}
echo $path
if [ -d $path ] ; then
echo -n ":"$path
fi
done

View File

@ -1,16 +1,16 @@
#! /bin/sh
#
# $Id: //poco/1.2/build/script/projname#1 $
#
# projname
#
# Extract the project name from the current path
# NOTE: the cd $POCO_BASE is necessary to resolve symbolic links,
# ditto is the kinda strange sh -c pwd
#
cdir=`sh -c pwd`
cd $POCO_BASE
pocobase=`sh -c pwd`
cd "$cdir"
sh -c pwd | sed "s:^$pocobase::" | sed "s:^/::"
#! /bin/sh
#
# $Id: //poco/1.2/build/script/projname#1 $
#
# projname
#
# Extract the project name from the current path
# NOTE: the cd $POCO_BASE is necessary to resolve symbolic links,
# ditto is the kinda strange sh -c pwd
#
cdir=`sh -c pwd`
cd $POCO_BASE
pocobase=`sh -c pwd`
cd "$cdir"
sh -c pwd | sed "s:^$pocobase::" | sed "s:^/::"

View File

@ -1,28 +1,28 @@
#! /bin/sh
#
# $Id: //poco/1.2/build/script/shlibln#1 $
#
# shlibln
#
# Create a symbolic link for a shared library
#
if [ $# -ne 2 ] ; then
echo "usage: $0:t file link"
exit 1
fi
source="$1"
target="$2"
sourcedir=`dirname "$source"`
targetdir=`dirname "$target"`
if [ "$sourcedir" = "$targetdir" ] ; then
source=`basename $source`
fi
if [ "$1" != "$2" ] ; then
ln -sf "$source" "$target"
fi
#! /bin/sh
#
# $Id: //poco/1.2/build/script/shlibln#1 $
#
# shlibln
#
# Create a symbolic link for a shared library
#
if [ $# -ne 2 ] ; then
echo "usage: $0:t file link"
exit 1
fi
source="$1"
target="$2"
sourcedir=`dirname "$source"`
targetdir=`dirname "$target"`
if [ "$sourcedir" = "$targetdir" ] ; then
source=`basename $source`
fi
if [ "$1" != "$2" ] ; then
ln -sf "$source" "$target"
fi

View File

@ -1,168 +1,168 @@
$ !
$ ! BUILD.COM
$ !
$ ! $Id: //poco/1.2/build/vms/build.com#1 $
$ !
$ ! OpenVMS build procedure
$ !
$ ! Requires the logical POCO_BASE to be set accordingly.
$ !
$ ! Usage: build [-32|-64] [-DEBUG|-RELEASE] [-CLEAN] [-VERBOSE]
$ !
$
$ clean == 0
$ verbose == 0
$ buildMode == "DEBUG"
$ pointerSize == 32
$ buildfile == F$SEARCH("*.VMSBUILD")
$ projectDefines == ""
$ lib = ""
$ exe = ""
$ shr = ""
$
$ DEFINE/PROC/NOLOG CppUnit POCO_BASE:[CPPUNIT.INCLUDE.CPPUNIT]
$ DEFINE/PROC/NOLOG Foundation POCO_BASE:[FOUNDATION.INCLUDE.FOUNDATION]
$ DEFINE/PROC/NOLOG XML POCO_BASE:[XML.INCLUDE.XML]
$ DEFINE/PROC/NOLOG SAX POCO_BASE:[XML.INCLUDE.SAX]
$ DEFINE/PROC/NOLOG DOM POCO_BASE:[XML.INCLUDE.DOM]
$
$ CALL handleArgs "''P1'"
$ CALL handleArgs "''P2'"
$ CALL handleArgs "''P3'"
$ CALL handleArgs "''P4'"
$ CALL handleArgs "''P5'"
$
$ IF buildfile .EQS. ""
$ THEN
$ WRITE SYS$OUTPUT "Cannot find build file."
$ EXIT 1
$ ENDIF
$
$ IF pointerSize .EQ. 32
$ THEN
$ objdir = "OBJ32"
$ ELSE
$ objdir = "OBJ64"
$ ENDIF
$
$ IF buildMode .EQS. "DEBUG"
$ THEN
$ objdir = objdir + "D"
$ ELSE
$ objdir = objdir + "R"
$ ENDIF
$
$ objpath = "[.''objdir']"
$ exists = F$SEARCH("''objdir'.DIR")
$ IF exists .EQS. ""
$ THEN
$ CREATE/DIR/NOLOG 'objpath'
$ SET FILE/PROT=(O:RWED) 'objdir'.DIR;*
$ ENDIF
$
$ IF clean .EQ. 1
$ THEN
$ DELETE/NOLOG 'objpath'*.*;*
$ ENDIF
$
$ PCXX :== @POCO_BASE:[BUILD.VMS]POCOCXX.COM
$ PCC :== @POCO_BASE:[BUILD.VMS]POCOCC.COM
$ PLIB :== @POCO_BASE:[BUILD.VMS]POCOLIB.COM
$ PLNK :== @POCO_BASE:[BUILD.VMS]POCOLNK.COM
$
$ OPEN fileList 'buildfile'
$ ON ERROR THEN GOTO EOF
$ ON CONTROL_Y THEN GOTO EOF
$ ReadLoop:
$ READ/END_OF_FILE=EOF fileList file
$ file = F$EDIT(file, "TRIM")
$ IF F$EXTRACT(0, 4, file) .EQS. "DEF="
$ THEN
$ projectDefines = F$EXTRACT(4, 64, file)
$ projectDefines = "," + F$EDIT(projectDefines, "TRIM")
$ GOTO ReadLoop
$ ENDIF
$ IF F$EXTRACT(0, 4, file) .EQS. "LIB="
$ THEN
$ lib = F$EXTRACT(4, 64, file)
$ lib = F$EDIT(lib, "TRIM")
$ GOTO ReadLoop
$ ENDIF
$ IF F$EXTRACT(0, 4, file) .EQS. "EXE="
$ THEN
$ exe = F$EXTRACT(4, 64, file)
$ exe = F$EDIT(exe, "TRIM")
$ GOTO ReadLoop
$ ENDIF
$ IF F$EXTRACT(0, 4, file) .EQS. "SHR="
$ THEN
$ shr = F$EXTRACT(4, 64, file)
$ shr = F$EDIT(shr, "TRIM")
$ GOTO ReadLoop
$ ENDIF
$ IF F$EXTRACT(0, 1, file) .NES. "#"
$ THEN
$ cfile = F$SEARCH(F$PARSE(file, "[.SRC]", ".C"))
$ cppfile = F$SEARCH(F$PARSE(file, "[.SRC]", ".CPP"))
$ IF cppfile .NES. ""
$ THEN
$ srcfile = "[.SRC]''file'.CPP"
$ ELSE
$ srcfile = "[.SRC]''file'.C"
$ ENDIF
$ srctime = F$CVTIME(F$FILE_ATTRIBUTES(srcfile, "RDT"), "COMPARISON")
$ objfile = F$SEARCH(F$PARSE(file, objpath, ".OBJ"))
$ IF objfile .NES. ""
$ THEN
$ objtime = F$CVTIME(F$FILE_ATTRIBUTES(objfile, "RDT"), "COMPARISON")
$ ELSE
$ objtime = F$CVTIME("01-JAN-1970 00:00:00.00", "COMPARISON")
$ ENDIF
$ IF srctime .GTS. objtime
$ THEN
$ WRITE SYS$OUTPUT "** Compiling ",file
$ IF cppfile .NES. ""
$ THEN
$ PCXX 'srcfile'
$ ELSE
$ PCC 'srcfile'
$ ENDIF
$ ELSE
$ WRITE SYS$OUTPUT "** Skipping ",file," (up-to-date)"
$ ENDIF
$ ENDIF
$ GOTO ReadLoop
$ EOF:
$ CLOSE fileList
$
$ IF lib .NES. ""
$ THEN
$ WRITE SYS$OUTPUT "** Creating Library ",lib
$ PLIB 'lib'
$ ELSE
$ IF exe .NES. ""
$ THEN
$ WRITE SYS$OUTPUT "** Creating Executable ",exe
$ PLNK 'exe'
$ ELSE
$ IF shr .NES. ""
$ THEN
$ WRITE SYS$OUTPUT "** Creating Shareable ",shr
$ PLNK 'shr' "SHAREABLE"
$ ENDIF
$ ENDIF
$ ENDIF
$
$ handleArgs: SUBROUTINE
$ arg = F$EDIT("''P1'", "UPCASE")
$ IF arg .NES. ""
$ THEN
$ IF arg .EQS. "-CLEAN" THEN clean == 1
$ IF arg .EQS. "-32" THEN pointerSize == 32
$ IF arg .EQS. "-64" THEN pointerSize == 64
$ IF arg .EQS. "-DEBUG" THEN buildMode == "DEBUG"
$ IF arg .EQS. "-RELEASE" THEN buildMode == "RELEASE"
$ IF arg .EQS. "-VERBOSE" THEN verbose == 1
$ IF F$EXTRACT(0, 1, arg) .NES. "-" THEN buildfile == F$SEARCH("''arg'.VMSBUILD")
$ ENDIF
$ ENDSUBROUTINE
$ !
$ ! BUILD.COM
$ !
$ ! $Id: //poco/1.2/build/vms/build.com#1 $
$ !
$ ! OpenVMS build procedure
$ !
$ ! Requires the logical POCO_BASE to be set accordingly.
$ !
$ ! Usage: build [-32|-64] [-DEBUG|-RELEASE] [-CLEAN] [-VERBOSE]
$ !
$
$ clean == 0
$ verbose == 0
$ buildMode == "DEBUG"
$ pointerSize == 32
$ buildfile == F$SEARCH("*.VMSBUILD")
$ projectDefines == ""
$ lib = ""
$ exe = ""
$ shr = ""
$
$ DEFINE/PROC/NOLOG CppUnit POCO_BASE:[CPPUNIT.INCLUDE.CPPUNIT]
$ DEFINE/PROC/NOLOG Foundation POCO_BASE:[FOUNDATION.INCLUDE.FOUNDATION]
$ DEFINE/PROC/NOLOG XML POCO_BASE:[XML.INCLUDE.XML]
$ DEFINE/PROC/NOLOG SAX POCO_BASE:[XML.INCLUDE.SAX]
$ DEFINE/PROC/NOLOG DOM POCO_BASE:[XML.INCLUDE.DOM]
$
$ CALL handleArgs "''P1'"
$ CALL handleArgs "''P2'"
$ CALL handleArgs "''P3'"
$ CALL handleArgs "''P4'"
$ CALL handleArgs "''P5'"
$
$ IF buildfile .EQS. ""
$ THEN
$ WRITE SYS$OUTPUT "Cannot find build file."
$ EXIT 1
$ ENDIF
$
$ IF pointerSize .EQ. 32
$ THEN
$ objdir = "OBJ32"
$ ELSE
$ objdir = "OBJ64"
$ ENDIF
$
$ IF buildMode .EQS. "DEBUG"
$ THEN
$ objdir = objdir + "D"
$ ELSE
$ objdir = objdir + "R"
$ ENDIF
$
$ objpath = "[.''objdir']"
$ exists = F$SEARCH("''objdir'.DIR")
$ IF exists .EQS. ""
$ THEN
$ CREATE/DIR/NOLOG 'objpath'
$ SET FILE/PROT=(O:RWED) 'objdir'.DIR;*
$ ENDIF
$
$ IF clean .EQ. 1
$ THEN
$ DELETE/NOLOG 'objpath'*.*;*
$ ENDIF
$
$ PCXX :== @POCO_BASE:[BUILD.VMS]POCOCXX.COM
$ PCC :== @POCO_BASE:[BUILD.VMS]POCOCC.COM
$ PLIB :== @POCO_BASE:[BUILD.VMS]POCOLIB.COM
$ PLNK :== @POCO_BASE:[BUILD.VMS]POCOLNK.COM
$
$ OPEN fileList 'buildfile'
$ ON ERROR THEN GOTO EOF
$ ON CONTROL_Y THEN GOTO EOF
$ ReadLoop:
$ READ/END_OF_FILE=EOF fileList file
$ file = F$EDIT(file, "TRIM")
$ IF F$EXTRACT(0, 4, file) .EQS. "DEF="
$ THEN
$ projectDefines = F$EXTRACT(4, 64, file)
$ projectDefines = "," + F$EDIT(projectDefines, "TRIM")
$ GOTO ReadLoop
$ ENDIF
$ IF F$EXTRACT(0, 4, file) .EQS. "LIB="
$ THEN
$ lib = F$EXTRACT(4, 64, file)
$ lib = F$EDIT(lib, "TRIM")
$ GOTO ReadLoop
$ ENDIF
$ IF F$EXTRACT(0, 4, file) .EQS. "EXE="
$ THEN
$ exe = F$EXTRACT(4, 64, file)
$ exe = F$EDIT(exe, "TRIM")
$ GOTO ReadLoop
$ ENDIF
$ IF F$EXTRACT(0, 4, file) .EQS. "SHR="
$ THEN
$ shr = F$EXTRACT(4, 64, file)
$ shr = F$EDIT(shr, "TRIM")
$ GOTO ReadLoop
$ ENDIF
$ IF F$EXTRACT(0, 1, file) .NES. "#"
$ THEN
$ cfile = F$SEARCH(F$PARSE(file, "[.SRC]", ".C"))
$ cppfile = F$SEARCH(F$PARSE(file, "[.SRC]", ".CPP"))
$ IF cppfile .NES. ""
$ THEN
$ srcfile = "[.SRC]''file'.CPP"
$ ELSE
$ srcfile = "[.SRC]''file'.C"
$ ENDIF
$ srctime = F$CVTIME(F$FILE_ATTRIBUTES(srcfile, "RDT"), "COMPARISON")
$ objfile = F$SEARCH(F$PARSE(file, objpath, ".OBJ"))
$ IF objfile .NES. ""
$ THEN
$ objtime = F$CVTIME(F$FILE_ATTRIBUTES(objfile, "RDT"), "COMPARISON")
$ ELSE
$ objtime = F$CVTIME("01-JAN-1970 00:00:00.00", "COMPARISON")
$ ENDIF
$ IF srctime .GTS. objtime
$ THEN
$ WRITE SYS$OUTPUT "** Compiling ",file
$ IF cppfile .NES. ""
$ THEN
$ PCXX 'srcfile'
$ ELSE
$ PCC 'srcfile'
$ ENDIF
$ ELSE
$ WRITE SYS$OUTPUT "** Skipping ",file," (up-to-date)"
$ ENDIF
$ ENDIF
$ GOTO ReadLoop
$ EOF:
$ CLOSE fileList
$
$ IF lib .NES. ""
$ THEN
$ WRITE SYS$OUTPUT "** Creating Library ",lib
$ PLIB 'lib'
$ ELSE
$ IF exe .NES. ""
$ THEN
$ WRITE SYS$OUTPUT "** Creating Executable ",exe
$ PLNK 'exe'
$ ELSE
$ IF shr .NES. ""
$ THEN
$ WRITE SYS$OUTPUT "** Creating Shareable ",shr
$ PLNK 'shr' "SHAREABLE"
$ ENDIF
$ ENDIF
$ ENDIF
$
$ handleArgs: SUBROUTINE
$ arg = F$EDIT("''P1'", "UPCASE")
$ IF arg .NES. ""
$ THEN
$ IF arg .EQS. "-CLEAN" THEN clean == 1
$ IF arg .EQS. "-32" THEN pointerSize == 32
$ IF arg .EQS. "-64" THEN pointerSize == 64
$ IF arg .EQS. "-DEBUG" THEN buildMode == "DEBUG"
$ IF arg .EQS. "-RELEASE" THEN buildMode == "RELEASE"
$ IF arg .EQS. "-VERBOSE" THEN verbose == 1
$ IF F$EXTRACT(0, 1, arg) .NES. "-" THEN buildfile == F$SEARCH("''arg'.VMSBUILD")
$ ENDIF
$ ENDSUBROUTINE

View File

@ -1,40 +1,40 @@
$ !
$ ! POCOCC.COM
$ !
$ ! $Id: //poco/1.2/build/vms/pococc.com#1 $
$ !
$ ! C compile procedure for Poco libraries
$ !
$ ! The logical POCO_BASE must be set and point to the
$ ! Poco base directory (e.g. USER1:[PROJECTS.POCO.])
$ !
$
$ IF "''pointerSize'" .EQS. "32"
$ THEN
$ ptropt = "/POINTER=32"
$ objdir = "OBJ32"
$ ELSE
$ ptropt = "/POINTER=64"
$ objdir = "OBJ64"
$ ENDIF
$
$ IF "''buildMode'" .EQS. "RELEASE"
$ THEN
$ modeopt = "/NODEBUG"
$ modedef = "NDEBUG"
$ objdir = objdir + "R"
$ ELSE
$ modeopt = "/DEBUG=ALL/NOOPTIMIZE"
$ modedef = "_DEBUG"
$ objdir = objdir + "D"
$ ENDIF
$
$ baseopt = "/STANDARD=RELAXED/ANSI_ALIAS/FLOAT=IEEE_FLOAT/OBJECT=[.''objdir'].OBJ"
$ defines = "/DEFINE=(''modedef' ''projectDefines')"
$
$ IF "''verbose'" .EQS. "1"
$ THEN
$ WRITE SYS$OUTPUT "CC ''baseopt' ''ptropt' ''modeopt' ''defines' ''P1'"
$ ENDIF
$
$ CC 'baseopt' 'ptropt' 'modeopt' 'defines' 'p1'
$ !
$ ! POCOCC.COM
$ !
$ ! $Id: //poco/1.2/build/vms/pococc.com#1 $
$ !
$ ! C compile procedure for Poco libraries
$ !
$ ! The logical POCO_BASE must be set and point to the
$ ! Poco base directory (e.g. USER1:[PROJECTS.POCO.])
$ !
$
$ IF "''pointerSize'" .EQS. "32"
$ THEN
$ ptropt = "/POINTER=32"
$ objdir = "OBJ32"
$ ELSE
$ ptropt = "/POINTER=64"
$ objdir = "OBJ64"
$ ENDIF
$
$ IF "''buildMode'" .EQS. "RELEASE"
$ THEN
$ modeopt = "/NODEBUG"
$ modedef = "NDEBUG"
$ objdir = objdir + "R"
$ ELSE
$ modeopt = "/DEBUG=ALL/NOOPTIMIZE"
$ modedef = "_DEBUG"
$ objdir = objdir + "D"
$ ENDIF
$
$ baseopt = "/STANDARD=RELAXED/ANSI_ALIAS/FLOAT=IEEE_FLOAT/OBJECT=[.''objdir'].OBJ"
$ defines = "/DEFINE=(''modedef' ''projectDefines')"
$
$ IF "''verbose'" .EQS. "1"
$ THEN
$ WRITE SYS$OUTPUT "CC ''baseopt' ''ptropt' ''modeopt' ''defines' ''P1'"
$ ENDIF
$
$ CC 'baseopt' 'ptropt' 'modeopt' 'defines' 'p1'

View File

@ -1,42 +1,42 @@
$ !
$ ! POCOCXX.COM
$ !
$ ! $Id: //poco/1.2/build/vms/pococxx.com#1 $
$ !
$ ! C++ compile procedure for Poco libraries
$ !
$ ! The logical POCO_BASE must be set and point to the
$ ! Poco base directory (e.g. USER1:[PROJECTS.POCO.])
$ !
$
$ IF "''pointerSize'" .EQS. "32"
$ THEN
$ ptropt = "/POINTER=32"
$ objdir = "OBJ32"
$ ELSE
$ ptropt = "/MODEL=ANSI"
$ objdir = "OBJ64"
$ ENDIF
$
$ IF "''buildMode'" .EQS. "RELEASE"
$ THEN
$ modeopt = "/NODEBUG"
$ modedef = "NDEBUG"
$ objdir = objdir + "R"
$ ELSE
$ modeopt = "/DEBUG=ALL/NOOPT"
$ modedef = "_DEBUG"
$ objdir = objdir + "D"
$ ENDIF
$
$ node = F$GETSYI("NODENAME")
$ baseopt = "/STANDARD=ANSI/ANSI/NOUSING/FLOAT=IEEE/IEEE=UNDER/REENT=MULTI/OBJ=[.''objdir'].OBJ"
$ repopt = "/REP=[.''objdir']"
$ defines = "/DEF=(__USE_STD_IOSTREAM,__NEW_STARLET,POCO_BUILD_HOST=''node',''modedef' ''projectDefines')"
$
$ IF "''verbose'" .EQS. "1"
$ THEN
$ WRITE SYS$OUTPUT "CXX ''baseopt' ''ptropt' ''modeopt' ''defines' ''repopt' ''P1'"
$ ENDIF
$
$ CXX 'baseopt' 'ptropt' 'modeopt' 'defines' 'repopt' 'p1'
$ !
$ ! POCOCXX.COM
$ !
$ ! $Id: //poco/1.2/build/vms/pococxx.com#1 $
$ !
$ ! C++ compile procedure for Poco libraries
$ !
$ ! The logical POCO_BASE must be set and point to the
$ ! Poco base directory (e.g. USER1:[PROJECTS.POCO.])
$ !
$
$ IF "''pointerSize'" .EQS. "32"
$ THEN
$ ptropt = "/POINTER=32"
$ objdir = "OBJ32"
$ ELSE
$ ptropt = "/MODEL=ANSI"
$ objdir = "OBJ64"
$ ENDIF
$
$ IF "''buildMode'" .EQS. "RELEASE"
$ THEN
$ modeopt = "/NODEBUG"
$ modedef = "NDEBUG"
$ objdir = objdir + "R"
$ ELSE
$ modeopt = "/DEBUG=ALL/NOOPT"
$ modedef = "_DEBUG"
$ objdir = objdir + "D"
$ ENDIF
$
$ node = F$GETSYI("NODENAME")
$ baseopt = "/STANDARD=ANSI/ANSI/NOUSING/FLOAT=IEEE/IEEE=UNDER/REENT=MULTI/OBJ=[.''objdir'].OBJ"
$ repopt = "/REP=[.''objdir']"
$ defines = "/DEF=(__USE_STD_IOSTREAM,__NEW_STARLET,POCO_BUILD_HOST=''node',''modedef' ''projectDefines')"
$
$ IF "''verbose'" .EQS. "1"
$ THEN
$ WRITE SYS$OUTPUT "CXX ''baseopt' ''ptropt' ''modeopt' ''defines' ''repopt' ''P1'"
$ ENDIF
$
$ CXX 'baseopt' 'ptropt' 'modeopt' 'defines' 'repopt' 'p1'

View File

@ -1,37 +1,37 @@
$ !
$ ! POCOLIB.COM
$ !
$ ! $Id: //poco/1.2/build/vms/pocolib.com#1 $
$ !
$ ! C++ library creation procedure for Poco libraries
$ !
$ ! The logical POCO_BASE must be set and point to the
$ ! Poco base directory (e.g. USER1:[PROJECTS.POCO.])
$ !
$
$ libdir = "POCO_BASE:[LIB]"
$ lib = libdir + p1
$
$ IF "''pointerSize'" .EQS. "32"
$ THEN
$ objdir = "OBJ32"
$ ELSE
$ objdir = "OBJ64"
$ lib = lib + "64"
$ ENDIF
$
$ IF "''buildMode'" .EQS. "RELEASE"
$ THEN
$ objdir = objdir + "R"
$ ELSE
$ objdir = objdir + "D"
$ lib = lib + "D"
$ ENDIF
$
$
$ IF "''verbose'" .EQS. "1"
$ THEN
$ WRITE SYS$OUTPUT "LIBRARY/OBJECT/CREATE ''lib' [.''objdir']*.OBJ"
$ ENDIF
$
$ LIBRARY/OBJECT/CREATE 'lib' [.'objdir']*.OBJ
$ !
$ ! POCOLIB.COM
$ !
$ ! $Id: //poco/1.2/build/vms/pocolib.com#1 $
$ !
$ ! C++ library creation procedure for Poco libraries
$ !
$ ! The logical POCO_BASE must be set and point to the
$ ! Poco base directory (e.g. USER1:[PROJECTS.POCO.])
$ !
$
$ libdir = "POCO_BASE:[LIB]"
$ lib = libdir + p1
$
$ IF "''pointerSize'" .EQS. "32"
$ THEN
$ objdir = "OBJ32"
$ ELSE
$ objdir = "OBJ64"
$ lib = lib + "64"
$ ENDIF
$
$ IF "''buildMode'" .EQS. "RELEASE"
$ THEN
$ objdir = objdir + "R"
$ ELSE
$ objdir = objdir + "D"
$ lib = lib + "D"
$ ENDIF
$
$
$ IF "''verbose'" .EQS. "1"
$ THEN
$ WRITE SYS$OUTPUT "LIBRARY/OBJECT/CREATE ''lib' [.''objdir']*.OBJ"
$ ENDIF
$
$ LIBRARY/OBJECT/CREATE 'lib' [.'objdir']*.OBJ

View File

@ -1,87 +1,87 @@
$ !
$ ! POCOLNK.COM
$ !
$ ! $Id: //poco/1.2/build/vms/pocolnk.com#1 $
$ !
$ ! C++ link procedure for Poco
$ !
$ ! The logical POCO_BASE must be set and point to the
$ ! Poco base directory (e.g. USER1:[PROJECTS.POCO.])
$ !
$
$ target = P1
$ libdir = "POCO_BASE:[LIB]"
$ bindir = "[.BIN]"
$ baseopt = "/THREADS"
$
$ IF "''P2'" .EQS. "SHAREABLE"
$ THEN
$ outopt="/SHAREABLE"
$ ELSE
$ outopt="/EXECUTABLE"
$ ENDIF
$
$ IF "''pointerSize'" .EQS. "32"
$ THEN
$ libsuffix = ""
$ binsuffix = ""
$ ptropt = "/MODEL=ARM"
$ objdir = "OBJ32"
$ ELSE
$ libsuffix = "64"
$ binsuffix = "64"
$ ptropt = "/MODEL=ANSI"
$ objdir = "OBJ64"
$ ENDIF
$
$ IF "''buildMode'" .EQS. "RELEASE"
$ THEN
$ dbgopt = "/NOTRACEBACK"
$ objdir = objdir + "R"
$ ELSE
$ libsuffix = "''libsuffix'D"
$ binsuffix = "''binsuffix'D"
$ dbgopt = "/TRACEBACK/debug"
$ objdir = objdir + "D"
$ ENDIF
$
$ IF F$SEARCH("''target'.OPT") .NES. ""
$ THEN
$ COPY 'target'.OPT 'target'.TMPOPT
$ OPEN/APPEND optfile 'target'.TMPOPT
$ ELSE
$ OPEN/WRITE optfile 'target'.TMPOPT
$ ENDIF
$ ObjWriteLoop:
$ obj = F$SEARCH("[.''objdir']*.OBJ", 1)
$ IF obj .EQS. "" THEN GOTO LibWriteLoop1
$ WRITE optfile "''obj'"
$ GOTO ObjWriteLoop
$ LibWriteLoop1:
$ lib = F$SEARCH("''libdir'*''libsuffix'.OLB", 2)
$ IF lib .EQS. "" THEN GOTO LibWriteLoop2
$ WRITE optfile "''lib'/LIBRARY"
$ GOTO LibWriteLoop1
$ LibWriteLoop2:
$ lib = F$SEARCH("''libdir'*''libsuffix'.OLB", 3)
$ IF lib .EQS. "" THEN GOTO EndWriteLoop
$ WRITE optfile "''lib'/LIBRARY"
$ GOTO LibWriteLoop2
$ EndWriteLoop:
$ CLOSE optfile
$
$ bin = bindir + target + binsuffix + ".EXE"
$ baseopt = baseopt + "/REPOSITORY=[.''objdir']"
$
$ IF "''verbose'" .EQS. "1"
$ THEN
$ WRITE SYS$OUTPUT "CXXLINK''outopt'=''bin' ''baseopt' ''ptropt' ''dbgopt' ''target'.TMPOPT/OPTIONS"
$ ENDIF
$
$ IF F$SEARCH("BIN.DIR") .EQS. ""
$ THEN
$ CREATE/DIR/NOLOG 'bindir'
$ ENDIF
$
$ CXXLINK 'outopt'='bin' 'baseopt' 'ptropt' 'dbgopt' 'target'.TMPOPT/OPTIONS
$ PURGE 'target'.TMPOPT
$ !
$ ! POCOLNK.COM
$ !
$ ! $Id: //poco/1.2/build/vms/pocolnk.com#1 $
$ !
$ ! C++ link procedure for Poco
$ !
$ ! The logical POCO_BASE must be set and point to the
$ ! Poco base directory (e.g. USER1:[PROJECTS.POCO.])
$ !
$
$ target = P1
$ libdir = "POCO_BASE:[LIB]"
$ bindir = "[.BIN]"
$ baseopt = "/THREADS"
$
$ IF "''P2'" .EQS. "SHAREABLE"
$ THEN
$ outopt="/SHAREABLE"
$ ELSE
$ outopt="/EXECUTABLE"
$ ENDIF
$
$ IF "''pointerSize'" .EQS. "32"
$ THEN
$ libsuffix = ""
$ binsuffix = ""
$ ptropt = "/MODEL=ARM"
$ objdir = "OBJ32"
$ ELSE
$ libsuffix = "64"
$ binsuffix = "64"
$ ptropt = "/MODEL=ANSI"
$ objdir = "OBJ64"
$ ENDIF
$
$ IF "''buildMode'" .EQS. "RELEASE"
$ THEN
$ dbgopt = "/NOTRACEBACK"
$ objdir = objdir + "R"
$ ELSE
$ libsuffix = "''libsuffix'D"
$ binsuffix = "''binsuffix'D"
$ dbgopt = "/TRACEBACK/debug"
$ objdir = objdir + "D"
$ ENDIF
$
$ IF F$SEARCH("''target'.OPT") .NES. ""
$ THEN
$ COPY 'target'.OPT 'target'.TMPOPT
$ OPEN/APPEND optfile 'target'.TMPOPT
$ ELSE
$ OPEN/WRITE optfile 'target'.TMPOPT
$ ENDIF
$ ObjWriteLoop:
$ obj = F$SEARCH("[.''objdir']*.OBJ", 1)
$ IF obj .EQS. "" THEN GOTO LibWriteLoop1
$ WRITE optfile "''obj'"
$ GOTO ObjWriteLoop
$ LibWriteLoop1:
$ lib = F$SEARCH("''libdir'*''libsuffix'.OLB", 2)
$ IF lib .EQS. "" THEN GOTO LibWriteLoop2
$ WRITE optfile "''lib'/LIBRARY"
$ GOTO LibWriteLoop1
$ LibWriteLoop2:
$ lib = F$SEARCH("''libdir'*''libsuffix'.OLB", 3)
$ IF lib .EQS. "" THEN GOTO EndWriteLoop
$ WRITE optfile "''lib'/LIBRARY"
$ GOTO LibWriteLoop2
$ EndWriteLoop:
$ CLOSE optfile
$
$ bin = bindir + target + binsuffix + ".EXE"
$ baseopt = baseopt + "/REPOSITORY=[.''objdir']"
$
$ IF "''verbose'" .EQS. "1"
$ THEN
$ WRITE SYS$OUTPUT "CXXLINK''outopt'=''bin' ''baseopt' ''ptropt' ''dbgopt' ''target'.TMPOPT/OPTIONS"
$ ENDIF
$
$ IF F$SEARCH("BIN.DIR") .EQS. ""
$ THEN
$ CREATE/DIR/NOLOG 'bindir'
$ ENDIF
$
$ CXXLINK 'outopt'='bin' 'baseopt' 'ptropt' 'dbgopt' 'target'.TMPOPT/OPTIONS
$ PURGE 'target'.TMPOPT

View File

@ -1 +1 @@
2
2