summaryrefslogtreecommitdiff
path: root/template/bin.gpr
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2019-07-05 21:25:26 -0500
committerSamuel Holland <samuel@sholland.org>2019-07-05 22:23:07 -0500
commit4b05e0e49c979e4a49f37a441556ee11cd6a0c5e (patch)
tree765553e92000364cd61c8c2ff4a920b08a160975 /template/bin.gpr
parent91e542abd30b662683cfb93dc63d33ff36b398da (diff)
downloaduserland-4b05e0e49c979e4a49f37a441556ee11cd6a0c5e.tar.gz
userland-4b05e0e49c979e4a49f37a441556ee11cd6a0c5e.tar.bz2
userland-4b05e0e49c979e4a49f37a441556ee11cd6a0c5e.tar.xz
userland-4b05e0e49c979e4a49f37a441556ee11cd6a0c5e.zip
build: add gprbuild projects
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;