57 Commits

Author SHA1 Message Date
Pascal Obry
dcd2f6d688 Rework build setup to allow for out-of-tree build.
This rework make it possible to build in-tree as before:

   $ make setup
   $ make

And from another directory (out-of-tree build):

   $ cd <build-dir>
   $ make -C ../aws BLD_DIR=$PWD setup
   $ make -C ../aws BLD_DIR=$PWD

To build the demos:

   $ make -C ../aws/demos BLD_DIR=$PWD

Support for the testsuite has also been reworked to use the out-of-tree
build when needed:

   $ make -C ../aws BLD_DIR=$PWD run_regtests
2024-01-19 08:03:17 +00:00
Pascal Obry
5c31bdfaa6 Add static-pic build variant.
Fixes S605-001.
2023-09-08 07:22:13 +00:00
Dmitriy Anisimkov
2814995677 Update ZLib sources to the latest version 1.2.11
S201-013
2019-02-03 18:47:18 +01:00
Pascal Obry
f2db7e6f01 Mark zlib project as not to be installed.
We never want the .h to be installed with AWS sources. These are really
for internal use by AWS.
2014-04-29 18:45:57 +02:00
Dmitriy Anisimkov
19de2c4c7b Update ZLib to current release 1.2.8 2014-01-13 09:54:21 +01:00
Pascal Obry
4e4524da58 Build a single AWS library using an aggregate library.
This is a nice build clean-up where now a single library (libaws.a
or libaws.so) will be created for the AWS runtime. This runtime will
also contains the zlib built for AWS if requested.

For MA30-040.
2013-11-06 16:36:13 +01:00
Pascal Obry
eaff6db33e Move to GPLv3.
For KC20-036.
2012-01-03 18:55:45 +01:00
John Marino
f0b16592c4 Add $DESTDIR functionality to makefiles
All the makefile installation targets have been modified with the
optionally defined $DESTDIR environment variable to support
installation in chroots and package frameworks.
2011-10-09 16:40:28 +02:00
Pascal Obry
7108bc7f27 Qualify project files. 2011-06-06 17:56:11 +02:00
Dmitriy Anisimkov
584577735c Update README to version 1.2.5 2011-04-09 01:03:15 +07:00
Pascal Obry
4d0f4539ad Fix synchro of zlib 1.2.5.
Continued work for K404-030.
2011-04-05 10:05:53 +02:00
Pascal Obry
1ae65d6742 Update zlib to 1.2.5
Kill style checks under include/zlib.

For K404-030.
2011-04-04 20:54:16 +02:00
Pascal Obry
2120bf7cf5 Always copy the static libz.
This library is always built for AWS own use. We now install it to
cover the case where the dynamic libz is installed in the OS but
not the static version. If the OS static version is present it
will be used anyway.

Should fix K310-011.
2011-03-11 15:11:35 +01:00
Pascal Obry
ce078fde71 Always build static libz as needed by some AWS tools.
For JB25-006.
2010-11-26 16:09:35 +00:00
Pascal Obry
5ae4140c13 Add support for building cross version of AWS library.
It is now possible to build multiple targets (native and cross).
The VxWorks cross runtime support has been added.
--
Work for IC11-015.
2009-12-29 21:57:54 +00:00
Pascal Obry
d3ce20727f Do not try to install libz if not compiled.
Fix previous check-in. Continued work for IC11-015.
2009-12-16 09:35:28 +00:00
Pascal Obry
bde94d7f12 Make the compilation of Zlib optional.
We now check if Zlib is already installed on the host. If it
is already installed do not build it, the installed version
will be used.
--
Build clean-up, part of IC11-015.
2009-12-15 18:03:40 +00:00
Pascal Obry
2cc2a6ae13 Rewrite build process to use gprbuild.
The build process is now based on gprbuild. All files (C and Ada)
are now built using gprbuild. A large clean-up has been done on
the makefile as no specific rules are needed to build C part. A
single invocation of gprbuild from the root makefile is sufficient
to build AWS and associated tools.

The clean process is now done using gprclean.

A final clean-up has been integrated to ensure that all generated
files are put inside the .build directory. No more files are
generated into the source directories. This will make it possible
to add support for multiple builds using different compiler version
for example.

Work for HB03-010.
2009-03-15 20:03:54 +00:00
Olivier Ramonat
71ac446fb1 Do not define crc32_combine if it is already defined
When _FILE_OFFSET_BITS is 64, crc32_combine is defined to crc32_combine64
2008-11-18 19:24:00 +00:00
Pascal Obry
3194ea0d25 Minor style fixes and reformatting. 2008-08-08 14:30:45 +00:00
Pascal Obry
85d02150c5 Issue a separate message when building the static/shared libz.
Build clean-up.
2008-08-08 14:27:53 +00:00
Pascal Obry
28fde205f9 Build inconditiannaly the zlib static library.
Fixes build failures.
--
Continued work for H505-007.
2008-07-17 08:33:45 +00:00
Dmitriy Anisimkov
713f7a7f76 Fix for static install. 2008-07-11 04:53:11 +00:00
Pascal Obry
9ca38cbc3a Implementation of the new build support.
Now the static and shared versions are built if possible.
The default installed version can be configured using the
new DEFAULT_LIBRARY_TYPE make variable. The setup is now
persistent using a generated makefile.setup makefile.
The shared version is built only if supported by the
plateform.
--
Work for H505-007.
2008-05-17 10:52:39 +00:00
Pascal Obry
2bd5697954 Large build clean-up.
For developers, AWS can now be built in four configurations:
  - debug mode / shared libraries
  - debug mode / static libraries
  - release mode / shared libraries (default mode, see makefile.conf)
  - release mode / static libraries
The objects files and libraries are kept for all configurations in
separate directory. It is then possible to test / install them
independently.
For users, AWS can be provided as static and shared libraries. Both
library kinds are selectable with the configuration variable
LIBRARY_TYPE.
--
The actual installation process has been moved to each individual
makefiles instead of having all the code into the main makefile. It is
easier to maintain when the installation is local.
--
Work for GA30-008.
2007-11-03 11:54:58 +00:00