summaryrefslogtreecommitdiff
path: root/adapad.gpr
blob: f1abdcededbe7b816ad6760873a972fa7fb8e592 (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 ("main.adb");


    package Builder is
        for Executable("main.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", "-lfltk_images");
    end Linker;


end AdaPad;