17 Commits

Author SHA1 Message Date
Vasiliy Fofanov
6bfbcf421b examples: improve Makefiles, mostly style issues
This comes from GitHub PR #115
no-tn-check

Change-Id: Ib11da9355a3e7a59d0d1f81ddfb9c1311fd9fc38
2022-08-08 13:49:16 +02:00
Nicolas Boulenguez
9abb92c096 eamples/ada_cpp/Makefile: remove unneeded options for gprbuild and gprclean
Gprbuild does not need -p because the object directory is ./.
Gprclean does not need -r because there is no project inclusion.
2022-08-06 18:01:37 +02:00
Nicolas Boulenguez
ccf0fe83ef examples/Makefile: remove redundant -o $@ option for gprconfig
Newcomers may not be interested in Make's $@ when learning gprbuild.

This commit hides default.cgpr as much as possible, but another
consistent option is to make the information flow explicit.
`gprconfig -o default.cgpr`
`gprbuild`--config=default.cgpr`
`gprclean --config=default.cgpr`
2022-08-06 18:01:01 +02:00
Nicolas Boulenguez
4b01ddcb7f examples/Makefile: allow the user to pass GPRBUILDFLAGS
For example, GPRBUILDFLAGS=-v is useful to understand what happens
when discovering gprbuild, or for full logs when examples are used as
basic tests.
2022-08-06 18:01:01 +02:00
Nicolas Boulenguez
ca20a85c82 examples/Makefile: explicitly write project names in gprbuild command line
Replace `gprbuild`, `gprbuild -Pfoo`, `gprbuild -Pfoo.gpr` and
`gprbuild foo` with the equivalent `gprbuild foo.gpr`.
Examples are intended for beginners, so an explicit file name is
preferable.
2022-08-06 18:01:01 +02:00
Nicolas Boulenguez
fde9741594 examples/Makefile: gprclean requires default.cgpr like gprbuild 2022-08-06 17:59:58 +02:00
Nicolas Boulenguez
34963edb79 examples/Makefile: declare targets as .PHONY instead of depending on force
This is recommended by the GNU Make manual as more efficient and
explicit than the traditional force fake target.
2022-08-06 17:13:45 +02:00
Vasiliy Fofanov
9e7293ac31 Automatically create missing object dirs (P503-035) 2016-05-18 10:37:55 -04:00
Olivier Ramonat
5e7dc7f8ab Fix gprbuild examples on UNIX
The current working directory is not always in the PATH

Part of LB19-013

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@198141 936e1b1b-40f2-da11-902a-00137254ae57
2012-11-19 14:31:50 +00:00
Vincent Celier
70b4ecad24 Do not use SJLJ run time when creating config project file
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@166444 936e1b1b-40f2-da11-902a-00137254ae57
2010-10-28 10:19:49 +00:00
Javier Miranda
ffe67c9ead Fix bug in this C++ because the primitive Age was erroneously
defined pure virtual.
For JA06-004


git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@166280 936e1b1b-40f2-da11-902a-00137254ae57
2010-10-25 08:44:57 +00:00
Javier Miranda
8948a40f64 Filing variant of the original example which moves
the declaration of the interfaces to a separate new
package. Required to compile the example with 6.3.2
For JA06-004


git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@166279 936e1b1b-40f2-da11-902a-00137254ae57
2010-10-24 22:23:12 +00:00
Javier Miranda
24c5515abc * animals.ads
Fix the sources of the example to be able to compile it with
the wavefront.
For JA06-004


git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@166247 936e1b1b-40f2-da11-902a-00137254ae57
2010-10-22 15:03:14 +00:00
Tristan Gingold
149055ed32 Makefile updated.
For G713-016


git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@113644 936e1b1b-40f2-da11-902a-00137254ae57
2007-07-18 08:54:13 +00:00
Cyrille Comar
551dfea843 * Makefile:
* Makefile:
* Makefile:
* Makefile:
* Makefile:
* Makefile:
* Makefile:
* compilers.xml:
* linker.xml:
* gprconfig-knowledge.adb:
Prettify the generated configuration files by
  - separate packages by a blank line
  - indent properly all attributes
Do not create ada_runtime.gpr anymore since it is not needed by
gprbuild and update example Makefiles accordingly




git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@113519 936e1b1b-40f2-da11-902a-00137254ae57
2007-07-13 10:49:50 +00:00
Cyrille Comar
d669c79fe2 normalize Makefiles and generate config files automatically
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprmake@62776 936e1b1b-40f2-da11-902a-00137254ae57
2007-05-11 15:26:16 +00:00
Cyrille Comar
bd096bfe99 add ada/c++ examples
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprmake@43597 936e1b1b-40f2-da11-902a-00137254ae57
2007-04-10 13:28:19 +00:00