snippetbashTip
gnatmake — A low-level build tool for Ada programs (part of the GNAT toolchain). More information: <https://gcc
Viewed 0 times
commandbuildlevelclignatmaketoolforlow
Problem
How to use the
gnatmake command: A low-level build tool for Ada programs (part of the GNAT toolchain). More information: <https://gcc.gnu.org/onlinedocs/gnat_ugn/Switches-for-gnatmake.html>.Solution
gnatmake — A low-level build tool for Ada programs (part of the GNAT toolchain). More information: <https://gcc.gnu.org/onlinedocs/gnat_ugn/Switches-for-gnatmake.html>.Compile an executable:
gnatmake {{source_file1.adb source_file2.adb ...}}Set a custom [o]utput executable name:
gnatmake -o {{executable_name}} {{source_file.adb}}[f]orce recompilation:
gnatmake -f {{source_file.adb}}Code Snippets
Compile an executable
gnatmake {{source_file1.adb source_file2.adb ...}}Set a custom [o]utput executable name
gnatmake -o {{executable_name}} {{source_file.adb}}[f]orce recompilation
gnatmake -f {{source_file.adb}}Context
tldr-pages: common/gnatmake
Revisions (0)
No revisions yet.