summaryrefslogtreecommitdiff
path: root/template/base.gpr
blob: 2516be40e6b2b64ba91c8c8c478885bbb201325d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
abstract project base is

   CFLAGS := External_As_List ("CFLAGS", " ");

   for Languages use ("C");

   package Compiler is
      for Response_File_Format ("C") use "GCC_GNU";
      for Default_Switches ("C") use ("-I" & External ("PROJ_INCLUDE"),
                                      "-std=c11",
                                      "-Wall",
                                      "-Wextra",
                                      "-Wpedantic") & CFLAGS;
   end Compiler;

   package Linker is
      for Trailing_Switches ("C") use ("-lcurses", "-ltinfo", "-lbsd");
   end Linker;

   package Install is
      for Install_Project use "false";
   end Install;

end base;