Allow CFLAGS or CPPFLAGS to be specified
This commit is contained in:
parent
0b31a0c5f2
commit
7b24380ecf
@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
|
|
||||||
#variables
|
#variables
|
||||||
|
CFLAGS=
|
||||||
|
CPPFLAGS=
|
||||||
PROGNAME="clint.sh"
|
PROGNAME="clint.sh"
|
||||||
PROJECTCONF="../project.conf"
|
PROJECTCONF="../project.conf"
|
||||||
#executables
|
#executables
|
||||||
@ -73,7 +75,7 @@ _clint()
|
|||||||
_clint_file()
|
_clint_file()
|
||||||
{
|
{
|
||||||
echo
|
echo
|
||||||
$DEBUG $LINT "$filename" 2>&1
|
$DEBUG $LINT $CPPFLAGS $CFLAGS "$filename" 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -107,11 +109,14 @@ _warning()
|
|||||||
|
|
||||||
#main
|
#main
|
||||||
clean=0
|
clean=0
|
||||||
while getopts "cP:" name; do
|
while getopts "cO:P:" name; do
|
||||||
case "$name" in
|
case "$name" in
|
||||||
c)
|
c)
|
||||||
clean=1
|
clean=1
|
||||||
;;
|
;;
|
||||||
|
O)
|
||||||
|
export "${OPTARG%%=*}"="${OPTARG#*=}"
|
||||||
|
;;
|
||||||
P)
|
P)
|
||||||
#XXX ignored for compatibility
|
#XXX ignored for compatibility
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user