Makefile 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #-------------------------------------------------------------------------------
  2. # Configure variable
  3. #-------------------------------------------------------------------------------
  4. TOP_DIR:=$(TOP_DIR)
  5. ROOT_DIR:=$(TOP_DIR)/../..
  6. MAKEFILE_PATH :=$(subst $(strip \),/,$(abspath $(lastword $(MAKEFILE_LIST))))
  7. USR_DIR=${TOP_DIR}/../../../catPro/wpoc
  8. #-------------------------------------------------------------------------------
  9. # Configure source code files
  10. #-------------------------------------------------------------------------------
  11. WPOC_DIR=src
  12. WPOC_SRC=${WPOC_DIR}/w_entry.c \
  13. ${WPOC_DIR}/w_oem.c \
  14. ${WPOC_DIR}/w_param.c \
  15. ${WPOC_DIR}/w_funs.c \
  16. ${WPOC_DIR}/w_poc_cmds.c \
  17. ${WPOC_DIR}/w_que_handler.c \
  18. PROTOBUF_DIR=src/protobuf
  19. PROTOBUF_SRC=${PROTOBUF_DIR}/protobuf-c/protobuf-c.c \
  20. ${PROTOBUF_DIR}/gtalk.pb-c.c
  21. SRC_FILES+= \
  22. main.c \
  23. ${WPOC_SRC} \
  24. ${PROTOBUF_SRC}
  25. #-------------------------------------------------------------------------------
  26. # the include directories
  27. #-------------------------------------------------------------------------------
  28. SDK_USR_INC_PATH=${TOP_DIR}/interface
  29. SDK_USR_DIR=-I${TOP_DIR}/common/include/fs \
  30. -I${TOP_DIR}/common/include/lwipv4v6 \
  31. -I${SDK_USR_INC_PATH}/network/sockets/inc \
  32. -I${SDK_USR_INC_PATH}/network/nw/inc \
  33. -I${SDK_USR_INC_PATH}/network/sim/inc \
  34. -I${SDK_USR_INC_PATH}/network/data_call/inc \
  35. -I${SDK_USR_INC_PATH}/time/inc \
  36. -I${SDK_USR_INC_PATH}/dev/inc \
  37. -I${SDK_USR_INC_PATH}/fs/inc \
  38. -I${SDK_USR_INC_PATH}/audio/inc \
  39. -I${SDK_USR_INC_PATH}/fota/inc \
  40. -I${SDK_USR_INC_PATH}/http/inc \
  41. -I${SDK_USR_INC_PATH}/ssl/inc \
  42. -I${SDK_USR_INC_PATH}/gnss/inc \
  43. -I${SDK_USR_INC_PATH}/log/inc \
  44. -I${SDK_USR_INC_PATH}/os/inc \
  45. -I${SDK_USR_INC_PATH}/driver/inc \
  46. -I${SDK_USR_INC_PATH}/at/inc \
  47. INC_DIRS+= \
  48. -I${TOP_DIR}/ \
  49. -I${TOP_DIR}/common/include \
  50. ${SDK_USR_DIR} \
  51. -I${USR_DIR} \
  52. -I${USR_DIR}/${WPOC_DIR} \
  53. -I${USR_DIR}/${PROTOBUF_DIR} \
  54. -I${USR_DIR}/${PROTOBUF_DIR}/protobuf-c \
  55. #-------------------------------------------------------------------------------
  56. # Configure compile flag for C
  57. #-------------------------------------------------------------------------------
  58. U_FLAGS:= -w
  59. #-------------------------------------------------------------------------------
  60. # Configure compile flag for C++
  61. #-------------------------------------------------------------------------------
  62. U_CPPFLAGS:=
  63. #-------------------------------------------------------------------------------
  64. # Configure default macro define
  65. #-------------------------------------------------------------------------------
  66. DFLAGS+= \
  67. -D__TM_ZONE=tm_zone \
  68. -D__TM_GMTOFF=tm_gmtoff \
  69. ${USER_FLAGS}
  70. #-------------------------------------------------------------------------------
  71. # Configure link library
  72. #-------------------------------------------------------------------------------
  73. U_LIBS:=${USR_DIR}/src/lib/woem.lib \
  74. #-------------------------------------------------------------------------------
  75. # include mk file
  76. #-------------------------------------------------------------------------------
  77. include ${TOP_DIR}/config/common/makefile.mk