clean: -rm *.o *~ core paper
install: @echo You must be root to install
ifeq ($(CC),gcc) $(CC) -o foo $(objects) $(libs_for_gcc) else $(CC) -o foo $(objects) $(normal_libs) endif
include ${TOP_DIR}/config/common/makefile.mk
先定义一个变量存头文件路径,比如变量 INCLUDES
INCLUDES += \ -I${TOP_DIR}/ \ -I${TOP_DIR}/common/include/quectel/open \ -I${TOP_DIR}/interface/network/sockets/inc \ -I${TOP_DIR}/interface/dev/inc \
PWD:=$(shell pwd)