mirror of https://github.com/CrimsonTome/tldr.git
gnatmake, gnatprep, gprbuild: add page (#8557)
parent
8e47337714
commit
d37879cb3e
|
@ -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}}`
|
|
@ -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}}`
|
|
@ -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…
Reference in New Issue