>>109304445
>>109304495
You can also use gprbuild with a gpr file like this:
-- 113.2.2 Style checking
-- GNAT provides many options to configure style checking of your code. The main compiler
-- switch for this is -gnatyy, which sets almost all standard style check options. As indicated
-- by the section on style checking574 of the GNAT User's Guide, using this switch "is equiva-
-- lent to -gnaty3aAbcefhiklmnprst, that is all checking options enabled with the exception
-- of -gnatyB, -gnatyd, -gnatyI, -gnatyLnnn, -gnatyo, -gnatyO, -gnatyS, -gnatyu, and
-- -gnatyx."
-- https://docs.adacore.com/gnat_ugn-docs/html/gnat_ugn/gnat_ugn/building_Executable_programs_with_gnat.html#style-checking
project Hasm is
for Source_Dirs use ("src");
for Object_Dir use "build/obj";
-- for Library_ALI_Dir use "build/ali";
for Exec_Dir use ".";
for Main use ("main.adb");
package Compiler is
for Default_Switches ("Ada") use
("-gnat2022",
"-gnatwa", -- All warnings
"-gnatwe", -- Warnings as errors
"-gnaty4", -- Indentation 4
"-O2");
end Compiler;
package Builder is
for Executable ("main.adb") use "hasm";
end Builder;
package Binder is
for Default_Switches("Ada") use ("-Es");
end Binder;
end Hasm;
>gprbuild -P$(TARGET)
PS: I wanted to learn Ada months ago and that is how far I got. I don't know much else.