blob: 896d51bee0e89f27ad23602fb2246dd56f9c28a6 (
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
25
|
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",
"-D_POSIX_C_SOURCE=200809L") & 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;
|