Allow CFLAGS or CPPFLAGS to be specified
This commit is contained in:
parent
0b31a0c5f2
commit
7b24380ecf
@ -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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user