问题标题:
makefile中CFLAGS+=-DPOSGP730-DUSE_PHONE-D__GNU_C__-DFS_EXT3-Wall$(INCPATH)ifeq($(strip$(pl)),posa)x09x09如果返回为空,posaelse#CROSS_COMPILE=arm-unknown-linux-gnu-CROSS_COMPILE=arm-linux-CC=$(CROSS_COMPILE)gccLD=$(CROSS_COMPILE
问题描述:
makefile中CFLAGS+=-DPOSGP730-DUSE_PHONE-D__GNU_C__-DFS_EXT3-Wall$(INCPATH)
ifeq($(strip$(pl)),posa)x09x09如果返回为空,posa
else
#CROSS_COMPILE=arm-unknown-linux-gnu-
CROSS_COMPILE=arm-linux-
CC=$(CROSS_COMPILE)gcc
LD=$(CROSS_COMPILE)ld
RM=rmx09x09//删除
CP=cpx09x09//拷贝
endif
CFLAGS+=-DPOSGP730-DUSE_PHONE-D__GNU_C__-DFS_EXT3-Wall$(INCPATH)-DNDEBUG$(CROSS_CFLAGS)-O2-Wl,-rpath,./
龚晓峰回答:
-D*表示:#define*
如:-DPOSGP730等价于#definePOSGP730
-Wall表示打开所有编译告警信息
-O2表示优化级别.
-Wl,-rpath,./为传递给连接器的选项,表示程序执行时的库加载路径
另:怀疑该处有误:$(INCPATH)应为-I$(INCPATH)
点击显示
其它推荐