diff options
author | Kiyoshi Aman <kiyoshi.aman@gmail.com> | 2019-07-06 06:41:07 +0000 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman@gmail.com> | 2019-07-06 06:41:07 +0000 |
commit | 1c7e02467bcf74ed39d83ea66ead1bb689772345 (patch) | |
tree | bcf92c377b807fa2dab3e5d4649cee59ee79365a /template | |
parent | 91e542abd30b662683cfb93dc63d33ff36b398da (diff) | |
parent | 5b502a0ebc714bac3e679334c30faaf12e295cfb (diff) | |
download | userland-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')
-rw-r--r-- | template/bin.gpr | 22 | ||||
-rw-r--r-- | template/usr_bin.gpr | 7 |
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; |