abstract project Shared is type Library_Type_Type is ("relocatable", "static"); Library_Type : Library_Type_Type := external ("LIBRARY_TYPE", "relocatable"); for Source_Dirs use (); type Mode_Type is ("Debug", "Production"); Mode : Mode_Type := external ("BUILD", "Debug"); C_Switches := ("-I.", "-I../include", "--param", "max-inline-insns-single=1200", "-DHAVE_CONFIG_H", "-D_XOPEN_SOURCE=500", "-D_POSIX_C_SOURCE=199506L", "-D_FILE_OFFSET_BITS=64", "-DWINVER=0x0603", "-D_WIN32_WINNT=0x0603", "-DUSE_WIN32CON_DRIVER"); package Compiler is case Mode is when "Debug" => for Default_Switches ("c") use ("-ggdb", "-O0") & C_Switches; when "Production" => for Default_Switches ("c") use ("-g0", "-O2") & C_Switches; end case; end Compiler; end Shared;