mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Updated BUGS about MSYS2 on Windows compiling of calc. Added more git related checks and sanity checks to chk_tree. Added ${FSANITIZE} make variable to Makefile.config to hold common Address Sanitizer (ASAN) optins to modern Linux and macOS. The Address Sanitizer is NOT enabled not compiled in by default. Improved comments in Makefile.local for RHEL9.2 (Linux) and for macOS 14.0 that, when uncommented and calc is recompiled (i.e., make clobber all) will enable the Address Sanitizer (ASAN) for calc.
101 lines
3.1 KiB
Makefile
101 lines
3.1 KiB
Makefile
#!/usr/bin/env make
|
|
#
|
|
# Makefile.local - modify, replace or append calc Makefile variables
|
|
#
|
|
# Copyright (C) 2023 Landon Curt Noll
|
|
#
|
|
# Suggestion: Read the HOWTO.INSTALL file.
|
|
#
|
|
# Calc is open software; you can redistribute it and/or modify it under
|
|
# the terms of version 2.1 of the GNU Lesser General Public License
|
|
# as published by the Free Software Foundation.
|
|
#
|
|
# Calc is distributed in the hope that it will be useful, but WITHOUT
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
|
# Public License for more details.
|
|
#
|
|
# A copy of version 2.1 of the GNU Lesser General Public License is
|
|
# distributed with calc under the filename COPYING-LGPL. You should have
|
|
# received a copy with calc; if not, write to Free Software Foundation, Inc.
|
|
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
|
#
|
|
# This calculator first developed by David I. Bell with help/mods from others.
|
|
#
|
|
# chongo <was here> /\oo/\ http://www.isthe.com/chongo/
|
|
# Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
|
|
|
|
####
|
|
# This file is included all calc Makefiles after the last Makefile variable
|
|
# is set and before the first make rule. This makes this file suitable to
|
|
# modify, replace or append Makefile variables.
|
|
#
|
|
# To replace a Makefile variable, use := symbols. For example:
|
|
#
|
|
# CCWERR:= -Werror
|
|
# DEBUG:= -O0 -g
|
|
#
|
|
# You can append to an existing Makefile variable using '+=' symbols.
|
|
# For example:
|
|
#
|
|
# CCOPT+= -Ofast
|
|
# COMMON_CFLAGS+= -std=gnu2x
|
|
####
|
|
|
|
###################################################################
|
|
# NOTE: For this and other commended out examples in this file, #
|
|
# you need to remove the leading '#<whitespaces>' to take effect. #
|
|
# #
|
|
# Comments start with a #-character. #
|
|
###################################################################
|
|
|
|
####
|
|
# Force calc to install under /usr/local
|
|
#
|
|
# PREFIX:= /usr/local
|
|
# BINDIR:= ${PREFIX}/bin
|
|
# LIBDIR:= ${PREFIX}/lib
|
|
# CALC_SHAREDIR:= ${PREFIX}/share/calc
|
|
# CALC_INCDIR:= ${PREFIX}/include/calc
|
|
####
|
|
|
|
####
|
|
# macOS Address Sanitizer (ASAN)
|
|
#
|
|
# This comment block was tested under:
|
|
#
|
|
# macOS 14.0 with Apple clang version 15.0.0 (clang-1500.0.40.1) for arm64
|
|
#
|
|
# See the FSANITIZE comment block in Makefile.config for common FSANITIZE values and more info.
|
|
#
|
|
# To use the Address Sanitizer, uncomment this set set of lines and recompile (make clobber all):
|
|
#
|
|
# FSANITIZE+= -fsanitize=nullability-arg
|
|
# FSANITIZE+= -fsanitize=nullability-assign
|
|
# FSANITIZE+= -fsanitize=nullability-return
|
|
# CFLAGS+= ${FSANITIZE}
|
|
# LDFLAGS+= ${FSANITIZE}
|
|
# DEBUG:= -O0 -g3
|
|
####
|
|
|
|
####
|
|
# RHEL (Linux) Address Sanitizer (ASAN)
|
|
#
|
|
# This comment block was tested under:
|
|
#
|
|
# RHEL9.2 with clang version 15.0.7 (Red Hat 15.0.7-2.el9) for x86_64
|
|
#
|
|
# with these RPMs installed:
|
|
#
|
|
# libasan-11.3.1-4.3.el9.x86_64 libubsan-11.3.1-4.3.el9.x86_64
|
|
#
|
|
# See the FSANITIZE comment block in Makefile.config for common FSANITIZE values and more info.
|
|
#
|
|
# To use the Address Sanitizer, uncomment this set set of lines and recompile (make clobber all):
|
|
#
|
|
# FSANITIZE+= -fsanitize=bounds
|
|
# CFLAGS+= ${FSANITIZE}
|
|
# LDFLAGS+= ${FSANITIZE}
|
|
# DEBUG:= -O0 -g3
|
|
###
|