Makefile 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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/woem
  8. #-------------------------------------------------------------------------------
  9. # Configure source code files
  10. #-------------------------------------------------------------------------------
  11. WOEM_DIR=src
  12. WOEM_SRC=${WOEM_DIR}/oem.c \
  13. SRC_FILES+= \
  14. ${WOEM_SRC}
  15. # main.c \
  16. #-------------------------------------------------------------------------------
  17. # the include directories
  18. #-------------------------------------------------------------------------------
  19. SDK_USR_INC_PATH=${TOP_DIR}/interface
  20. SDK_USR_DIR=-I${TOP_DIR}/common/include/fs \
  21. -I${TOP_DIR}/common/include/lwipv4v6 \
  22. -I${SDK_USR_INC_PATH}/network/sockets/inc \
  23. -I${SDK_USR_INC_PATH}/network/nw/inc \
  24. -I${SDK_USR_INC_PATH}/network/sim/inc \
  25. -I${SDK_USR_INC_PATH}/network/data_call/inc \
  26. -I${SDK_USR_INC_PATH}/time/inc \
  27. -I${SDK_USR_INC_PATH}/dev/inc \
  28. -I${SDK_USR_INC_PATH}/fs/inc \
  29. -I${SDK_USR_INC_PATH}/audio/inc \
  30. -I${SDK_USR_INC_PATH}/fota/inc \
  31. -I${SDK_USR_INC_PATH}/http/inc \
  32. -I${SDK_USR_INC_PATH}/ssl/inc \
  33. -I${SDK_USR_INC_PATH}/gnss/inc \
  34. -I${SDK_USR_INC_PATH}/log/inc \
  35. -I${SDK_USR_INC_PATH}/os/inc \
  36. -I${SDK_USR_INC_PATH}/driver/inc \
  37. -I${SDK_USR_INC_PATH}/at/inc \
  38. INC_DIRS+= \
  39. -I${TOP_DIR}/ \
  40. -I${TOP_DIR}/common/include \
  41. ${SDK_USR_DIR} \
  42. -I${USR_DIR} \
  43. -I${USR_DIR}/${WOEM_DIR} \
  44. #-------------------------------------------------------------------------------
  45. # Configure compile flag for C
  46. #-------------------------------------------------------------------------------
  47. U_FLAGS:= -w
  48. #-------------------------------------------------------------------------------
  49. # Configure compile flag for C++
  50. #-------------------------------------------------------------------------------
  51. U_CPPFLAGS:=
  52. #-------------------------------------------------------------------------------
  53. # Configure default macro define
  54. #-------------------------------------------------------------------------------
  55. DFLAGS+= \
  56. -D__TM_ZONE=tm_zone \
  57. -D__TM_GMTOFF=tm_gmtoff \
  58. ${USER_FLAGS}
  59. #-------------------------------------------------------------------------------
  60. # Configure link library
  61. #-------------------------------------------------------------------------------
  62. U_LIBS:=
  63. #-------------------------------------------------------------------------------
  64. # include mk file
  65. #-------------------------------------------------------------------------------
  66. include ${TOP_DIR}/config/common/makefile.mk