#shell:
CFLAGS=
CC=gcc
ARG1=
ARG2=
if $CC $CFLAGS $ARG1 -S -o /dev/null -xc /dev/null >/dev/null 2>&1
then
echo "$ARG1"
else
echo "$ARG2"
fi
#GNU Makefile;
cc-option=$(shell $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null > \
/dev/null 2>&1 ;then echo "$(1)";else echo "$(2)";fi;)
PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)
2:标准错误
1:标准输出
阅读(984) | 评论(0) | 转发(0) |