summaryrefslogtreecommitdiff
path: root/template/bin.gpr
diff options
context:
space:
mode:
Diffstat (limited to 'template/bin.gpr')
-rw-r--r--template/bin.gpr22
1 files changed, 22 insertions, 0 deletions
diff --git a/template/bin.gpr b/template/bin.gpr
new file mode 100644
index 0000000..db20fba
--- /dev/null
+++ b/template/bin.gpr
@@ -0,0 +1,22 @@
+abstract project bin is
+
+ CFLAGS := External_As_List ("CFLAGS", " ");
+
+ for Languages use ("C");
+
+ package Compiler is
+ for Default_Switches ("C") use ("-std=c11",
+ "-Wall",
+ "-Wextra",
+ "-Wpedantic") & CFLAGS;
+ end Compiler;
+
+ package Linker is
+ for Trailing_Switches ("C") use ("-lbsd");
+ end Linker;
+
+ package Install is
+ for Install_Project use "false";
+ end Install;
+
+end bin;