mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 22:06:03 +02:00
gnatmake, gnatprep, gprbuild: add page (#8557)
This commit is contained in:
parent
8e47337714
commit
d37879cb3e
3 changed files with 48 additions and 0 deletions
16
pages/common/gnatmake.md
Normal file
16
pages/common/gnatmake.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# gnatmake
|
||||
|
||||
> A low-level build tool for Ada programs (part of the GNAT toolchain).
|
||||
> More information: <https://gcc.gnu.org/onlinedocs/gnat_ugn/Building-with-gnatmake.html>.
|
||||
|
||||
- Compile an executable:
|
||||
|
||||
`gnatmake {{source_file1.adb source_file2.adb ...}}`
|
||||
|
||||
- Set a custom executable name:
|
||||
|
||||
`gnatmake -o {{executable_name}} {{source_file.adb}}`
|
||||
|
||||
- [f]orce recompilation:
|
||||
|
||||
`gnatmake -f {{source_file.adb}}`
|
12
pages/common/gnatprep.md
Normal file
12
pages/common/gnatprep.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# gnatprep
|
||||
|
||||
> Preprocessor for Ada source code files (part of the GNAT toolchain).
|
||||
> More information: <https://gcc.gnu.org/onlinedocs/gnat_ugn/Preprocessing-with-gnatprep.html>.
|
||||
|
||||
- Use symbol definitions from a file:
|
||||
|
||||
`gnatprep {{source_file}} {{target_file}} {{definitions_file}}`
|
||||
|
||||
- Specify symbol values in the command line:
|
||||
|
||||
`gnatprep -D{{name}}={{value}} {{source_file}} {{target_file}}`
|
20
pages/common/gprbuild.md
Normal file
20
pages/common/gprbuild.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# gprbuild
|
||||
|
||||
> A high-level build tool for projects written in Ada and other languages (C/C++/Fortran).
|
||||
> More information: <https://docs.adacore.com/gprbuild-docs/html/gprbuild_ug.html>.
|
||||
|
||||
- Build a project (assuming only one `*.gpr` file exists in the current directory):
|
||||
|
||||
`gprbuild`
|
||||
|
||||
- Build a specific [P]roject file:
|
||||
|
||||
`gprbuild -P{{project_name}}`
|
||||
|
||||
- Clean up the build workspace:
|
||||
|
||||
`gprclean`
|
||||
|
||||
- Install compiled binaries:
|
||||
|
||||
`gprinstall --prefix {{path/to/installation/dir}}`
|
Loading…
Add table
Reference in a new issue