From: Kevin Day Date: Fri, 4 Sep 2020 04:40:32 +0000 (-0500) Subject: Update: Add some example build settings for featureless make for bzip2. X-Git-Tag: 0.5.0~27 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=fd13991f4beaaae1abf5b07ee46f09b7cdee7849;p=fll Update: Add some example build settings for featureless make for bzip2. The bzip2 project has a relatively simple and small makefile and does not get updated often. This makes bzip2 an ideal example of how to build a build settings file. There are a few shortcomings that I believe I need to address after creating these in the fake project. These have been documented in the example settings until I can get around to change them. I would also like to create fakefile examples for bzip2 as well. --- diff --git a/level_3/fake/data/build/settings-example-bzip2 b/level_3/fake/data/build/settings-example-bzip2 new file mode 100644 index 0000000..a1beb2a --- /dev/null +++ b/level_3/fake/data/build/settings-example-bzip2 @@ -0,0 +1,58 @@ +# fss-0001 +# This is designed for bzip2-1.0.8 as an example. +# @fixme: this reveals some shortcomings and problems: +# 1) need to be able to build -m bzip2recover without libbzip2.a. +# 2) need to provide a way to designate path prefixes (instead of just hardcoded sources/c/, etc... +# 3) need to be able to build shared program without library (add a 'build_library' setting). +# 4) need to remove the auto-appending of the -D in the defines. +# 5) the -s/--settings does not appear to be working correctly, confirm this. + +project_name bzip2 + +version_major 1 +version_minor 0 +version_micro 8 +version_target major + +environment + +process_pre +process_post + +modes +modes_default + +build_compiler gcc +build_language c +build_linker ar +build_libraries -lc +build_sources_library blocksort.c huffman.c crctable.c randtable.c compress.c decompress.c bzlib.c +build_sources_program bzip2.c +build_sources_headers bzlib.h +build_sources_script +build_sources_setting +build_script no +build_shared yes +build_static yes + +path_headers +path_library_script script +path_library_shared shared +path_library_static static +path_program_script script +path_program_shared shared +path_program_static static + +search_exclusive yes +search_shared yes +search_static yes + +defines_all _FILE_OFFSET_BITS=64 +defines_static +defines_shared + +flags_all -z now -g -Wall -Winline -O2 +flags_shared +flags_static +flags_library -fPIC +flags_program -fPIE diff --git a/level_3/fake/data/build/settings-example-bzip2recover b/level_3/fake/data/build/settings-example-bzip2recover new file mode 100644 index 0000000..5ac911d --- /dev/null +++ b/level_3/fake/data/build/settings-example-bzip2recover @@ -0,0 +1,58 @@ +# fss-0001 +# This is designed for bzip2-1.0.8 as an example. +# @fixme: this reveals some shortcomings and problems: +# 1) need to be able to build -m bzip2recover without libbzip2.a. +# 2) need to provide a way to designate path prefixes (instead of just hardcoded sources/c/, etc... +# 3) need to be able to build shared program without library (add a 'build_library' setting). +# 4) need to remove the auto-appending of the -D in the defines. +# 5) the -s/--settings does not appear to be working correctly, confirm this. + +project_name bzip2recover + +version_major 1 +version_minor 0 +version_micro 8 +version_target major + +environment + +process_pre +process_post + +modes +modes_default + +build_compiler gcc +build_language c +build_linker ar +build_libraries -lc +build_sources_library +build_sources_program bzip2recover.c +build_sources_headers +build_sources_script +build_sources_setting +build_script no +build_shared yes +build_static yes + +path_headers +path_library_script script +path_library_shared shared +path_library_static static +path_program_script script +path_program_shared shared +path_program_static static + +search_exclusive yes +search_shared yes +search_static yes + +defines_all _FILE_OFFSET_BITS=64 +defines_static +defines_shared + +flags_all -z now -g -Wall -Winline -O2 +flags_shared +flags_static +flags_library -fPIC +flags_program -fPIE