12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- #-------------------------------------------------------------------------------
- # Configure variable
- #-------------------------------------------------------------------------------
- TOP_DIR:=$(TOP_DIR)
- ROOT_DIR:=$(TOP_DIR)/../..
- MAKEFILE_PATH :=$(subst $(strip \),/,$(abspath $(lastword $(MAKEFILE_LIST))))
- USR_DIR=${TOP_DIR}/../../../catPro/wpoc
- #-------------------------------------------------------------------------------
- # Configure source code files
- #-------------------------------------------------------------------------------
- WPOC_DIR=src
- WPOC_SRC=${WPOC_DIR}/w_entry.c \
- ${WPOC_DIR}/w_oem.c \
- ${WPOC_DIR}/w_param.c \
- ${WPOC_DIR}/w_funs.c \
- ${WPOC_DIR}/w_poc_cmds.c \
- ${WPOC_DIR}/w_que_handler.c \
- PROTOBUF_DIR=src/protobuf
- PROTOBUF_SRC=${PROTOBUF_DIR}/protobuf-c/protobuf-c.c \
- ${PROTOBUF_DIR}/gtalk.pb-c.c
- SRC_FILES+= \
- main.c \
- ${WPOC_SRC} \
- ${PROTOBUF_SRC}
-
- #-------------------------------------------------------------------------------
- # the include directories
- #-------------------------------------------------------------------------------
- SDK_USR_INC_PATH=${TOP_DIR}/interface
- SDK_USR_DIR=-I${TOP_DIR}/common/include/fs \
- -I${TOP_DIR}/common/include/lwipv4v6 \
- -I${SDK_USR_INC_PATH}/network/sockets/inc \
- -I${SDK_USR_INC_PATH}/network/nw/inc \
- -I${SDK_USR_INC_PATH}/network/sim/inc \
- -I${SDK_USR_INC_PATH}/network/data_call/inc \
- -I${SDK_USR_INC_PATH}/time/inc \
- -I${SDK_USR_INC_PATH}/dev/inc \
- -I${SDK_USR_INC_PATH}/fs/inc \
- -I${SDK_USR_INC_PATH}/audio/inc \
- -I${SDK_USR_INC_PATH}/fota/inc \
- -I${SDK_USR_INC_PATH}/http/inc \
- -I${SDK_USR_INC_PATH}/ssl/inc \
- -I${SDK_USR_INC_PATH}/gnss/inc \
- -I${SDK_USR_INC_PATH}/log/inc \
- -I${SDK_USR_INC_PATH}/os/inc \
- -I${SDK_USR_INC_PATH}/driver/inc \
- -I${SDK_USR_INC_PATH}/at/inc \
-
- INC_DIRS+= \
- -I${TOP_DIR}/ \
- -I${TOP_DIR}/common/include \
- ${SDK_USR_DIR} \
- -I${USR_DIR} \
- -I${USR_DIR}/${WPOC_DIR} \
- -I${USR_DIR}/${PROTOBUF_DIR} \
- -I${USR_DIR}/${PROTOBUF_DIR}/protobuf-c \
- #-------------------------------------------------------------------------------
- # Configure compile flag for C
- #-------------------------------------------------------------------------------
- U_FLAGS:= -w
- #-------------------------------------------------------------------------------
- # Configure compile flag for C++
- #-------------------------------------------------------------------------------
- U_CPPFLAGS:=
- #-------------------------------------------------------------------------------
- # Configure default macro define
- #-------------------------------------------------------------------------------
- DFLAGS+= \
- -D__TM_ZONE=tm_zone \
- -D__TM_GMTOFF=tm_gmtoff \
- ${USER_FLAGS}
- #-------------------------------------------------------------------------------
- # Configure link library
- #-------------------------------------------------------------------------------
- U_LIBS:=${USR_DIR}/src/lib/woem.lib \
- #-------------------------------------------------------------------------------
- # include mk file
- #-------------------------------------------------------------------------------
- include ${TOP_DIR}/config/common/makefile.mk
|