summaryrefslogtreecommitdiff
path: root/template
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
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')
-rw-r--r--template/bin.gpr22
-rw-r--r--template/usr_bin.gpr7
2 files changed, 29 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;
diff --git a/template/usr_bin.gpr b/template/usr_bin.gpr
new file mode 100644
index 0000000..0ece874
--- /dev/null
+++ b/template/usr_bin.gpr
@@ -0,0 +1,7 @@
+abstract project usr_bin extends "template/bin.gpr" is
+
+ package Install extends bin.Install is
+ for Prefix use "usr";
+ end Install;
+
+end usr_bin;