summaryrefslogtreecommitdiff
path: root/template/bin.gpr
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman@gmail.com>2019-07-06 06:41:07 +0000
committerKiyoshi Aman <kiyoshi.aman@gmail.com>2019-07-06 06:41:07 +0000
commit1c7e02467bcf74ed39d83ea66ead1bb689772345 (patch)
treebcf92c377b807fa2dab3e5d4649cee59ee79365a /template/bin.gpr
parent91e542abd30b662683cfb93dc63d33ff36b398da (diff)
parent5b502a0ebc714bac3e679334c30faaf12e295cfb (diff)
downloaduserland-1c7e02467bcf74ed39d83ea66ead1bb689772345.tar.gz
userland-1c7e02467bcf74ed39d83ea66ead1bb689772345.tar.bz2
userland-1c7e02467bcf74ed39d83ea66ead1bb689772345.tar.xz
userland-1c7e02467bcf74ed39d83ea66ead1bb689772345.zip
Merge branch 'gprbuild-build-system' into 'master'
RFC: gprbuild-based build system See merge request Aerdan/userland!1
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;