- #遍历目录及子目录的函数
- definewalk
- $(wildcard$(1))$(foreache,$(wildcard$(1)/*),$(callwalk,$(e)))
- endef
- #遍历Classes目录
- ALLFILES=$(callwalk,$(LOCAL_PATH)/../../Classes)
- FILE_LIST:=hellocpp/main.cpp
- #从所有文件中提取出所有.cpp文件
- FILE_LIST+=$(filter%.cpp,$(ALLFILES))
- LOCAL_SRC_FILES:=$(FILE_LIST:$(LOCAL_PATH)/%=%)
- LOCAL_C_INCLUDES:=$(LOCAL_PATH)/../../Classes