Commit Graph

16 Commits

Author SHA1 Message Date
Nicolas Boulenguez 04f9385318 Select dynamic library if SO version is set
This prevents any inconsistency on the command line between ALOG_VERSION
(or its default value) and LIBRARY_KIND (or its default value).

Require an explicit ALOG_VERSION in gprbuild command line.  The default
was dynamic in Makefile and static in projects, leading to some
confusion. For example, debian/rules was setting VERSION for tests.

Split build_lib_[dynamic|static] Makefile targets as done for install.

Rename the project version internal variable after the external one,
and move it from common project to the only project it affects.
2018-08-13 11:11:26 +02:00
Nicolas Boulenguez 814d0283ae Rework handling Ada and C compiler flags
Pass Ada and C flags to every gprbuild command. Each run may detect that
the library must be updated and recompile Ada or C files. Add missing C
flags when building tests.

Put Adaflags after default options to allow overriding. Only parse
environment once for these flags. Handle CPPFLAGS as well as CFLAGS.
Avoid mixing command line options with project compiler_switches, as the
precedence is not well defined. Use package renamings or extensions
instead of variables to reduce boilerplate.
2018-08-13 11:11:06 +02:00
Nicolas Boulenguez 222e19fc68 Rework handling of LDFLAGS
Pass LDFLAGS to every gprbuild invocation, but use it only when linking.
Put LDFLAGS before normal (-l) options so that options like --as-needed
take effect. Only parse environment for LDFLAGS once. Use package
renamings or extensions instead of variables to reduce boilerplate.
2018-08-09 11:06:38 +02:00
Nicolas Boulenguez 88da228f43 Pass all gprbuild options on the command line
Mixing command line options with Builder_Options increases complexity,
as precedence is not well defined.
2018-08-09 11:05:40 +02:00
Nicolas Boulenguez 0dae3ed474 Mark abstract and library projects as such
Also, remove trailing blank lines.
2018-08-09 11:03:35 +02:00
Adrian-Ken Rueegsegger e605843cc3 Update copyright 2014-10-15 12:17:20 +02:00
Adrian-Ken Rueegsegger ccc79182ea Set Compiler flags for C sources
They are used to compile the C glue source file and are overridable via the
CFLAGS environment variable.
2014-10-09 00:36:43 +02:00
Adrian-Ken Rueegsegger c4c81f7e2b Remove 'base' prefix from various directories
There are no base and full versions of the library so simplify the
various paths.
2014-10-08 23:39:10 +02:00
Adrian-Ken Rueegsegger 866b488718 Rename alog_base.gpr to alog.gpr 2014-10-08 23:39:10 +02:00
Reto Buerki 081cae7065 Restructure Makefile.
Separate test build from library build and rename tests project
file to alog_tests.gpr. Version is auto-generated in Makefile.
2009-02-24 16:59:23 +01:00
Reto Buerki 475a1b2057 Using position independent code now (PIC). 2008-04-09 16:26:23 +02:00
Reto Buerki 4fb9736acc Project-file cleanup.
- Makefile and C languages are not needed.
2008-03-03 13:12:03 +01:00
Reto Buerki 6e5ac5ff18 Delete source files in root-dir. 2008-03-03 12:47:24 +01:00
Reto Buerki 26695368a2 Added AdaControl-rules file.
- Not everything is supported now, rules must be
  extended:
  o overriding
  o limited
- Naming convention enforced.
2008-03-03 10:33:48 +01:00
Reto Buerki a24b6d211e Added stubs for SMTP-facility. 2008-02-29 12:31:05 +01:00
Adrian-Ken Rueegsegger d348f7f985 Initial import
Signed-off-by: Adrian-Ken Rueegsegger <rueegsegger@swiss-it.ch>
2008-02-05 10:30:46 +01:00