Allow CFLAGS or CPPFLAGS to be specified

This commit is contained in:
Pierre Pronchery 2017-04-04 01:04:57 +02:00
parent 0b31a0c5f2
commit 7b24380ecf

View File

@ -25,6 +25,8 @@
#variables
CFLAGS=
CPPFLAGS=
PROGNAME="clint.sh"
PROJECTCONF="../project.conf"
#executables
@ -73,7 +75,7 @@ _clint()
_clint_file()
{
echo
$DEBUG $LINT "$filename" 2>&1
$DEBUG $LINT $CPPFLAGS $CFLAGS "$filename" 2>&1
}
@ -107,11 +109,14 @@ _warning()
#main
clean=0
while getopts "cP:" name; do
while getopts "cO:P:" name; do
case "$name" in
c)
clean=1
;;
O)
export "${OPTARG%%=*}"="${OPTARG#*=}"
;;
P)
#XXX ignored for compatibility
;;