fixed install of statically linked calc under macOS

Improved .gitignore to ignore .static, calc-static,
sample_many-static and sample_rand-static.

Improved error messages when trying to compile with
with one calc type (when BLD_TYPE=calc-dynamic-only or
BLD_TYPE=calc-static-only) and install with the other.

When installing with BLD_TYPE=calc-static-only, the
installed calc and calc-static are links to each other.
Thanks to GitHub user @urtleWilly for this suggestion.

The dynamic shared libraries are not installed if they are not
built.  So when installing with BLD_TYPE=calc-static-only, the
install rule will not attempt to install dynamic shared libraries.
Thanks to GitHub user @urtleWilly for bringing to our attention,
problems related to building a statically linked calc under macOS.
This commit is contained in:
Landon Curt Noll
2023-08-12 00:28:53 -07:00
parent 0b044ce972
commit bf5b56d263
4 changed files with 269 additions and 122 deletions

4
.gitignore vendored
View File

@@ -6,12 +6,14 @@
#
.dynamic
.hsrc
.static
Makefile.our
NOTES
align32.h
args.h
cal/.all
calc
calc-static
calc.1
calc.usage
calcerr.c
@@ -99,7 +101,9 @@ libcustcalc*
longbits
longbits.h
sample_many
sample_many-static
sample_rand
sample_rand-static
tags
terminal.h
ver_calc