summaryrefslogtreecommitdiff
path: root/adapad.gpr
blob: c5128a4c0340c4238f0086514669a8da9978e2b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37


--  goal is for executable to be no more than 90-100kB
--  when dynamically linked, to match leafpad


project AdaPad is


    for Languages use ("Ada", "C++");


    for Source_Dirs use ("src/**");
    for Object_Dir use "obj";
    for Exec_Dir use "bin";
    for Main use ("adapad.adb");


    package Builder is
        for Executable("adapad.adb") use "adapad";
    end Builder;


    package Compiler is
        for Default_Switches("Ada") use ("-gnaty4aAbcefhiklM99nprt");
        for Default_Switches("C++") use ("-Wall","-Wextra");
    end Compiler;


    package Linker is
        -- should this be filed under C++ somehow?
        for Default_Switches("Ada") use ("-lfltk");
    end Linker;


end AdaPad;