Makefile.defs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one
  3. # or more contributor license agreements. See the NOTICE file
  4. # distributed with this work for additional information
  5. # regarding copyright ownership. The ASF licenses this file
  6. # to you under the Apache License, Version 2.0 (the
  7. # "License"); you may not use this file except in compliance
  8. # with the License. You may obtain a copy of the License at
  9. # * http://www.apache.org/licenses/LICENSE-2.0
  10. # * Unless required by applicable law or agreed to in writing,
  11. # software distributed under the License is distributed on an
  12. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  13. # KIND, either express or implied. See the License for the
  14. # specific language governing permissions and limitations
  15. # under the License.
  16. #
  17. ifeq (,$(NIMBLE_ROOT))
  18. $(error NIMBLE_ROOT shall be defined)
  19. endif
  20. NIMBLE_CFLAGS :=
  21. NIMBLE_INCLUDE := \
  22. $(NIMBLE_ROOT)/nimble/include \
  23. $(NIMBLE_ROOT)/nimble/host/include \
  24. $(NIMBLE_ROOT)/nimble/host/services/ans/include \
  25. $(NIMBLE_ROOT)/nimble/host/services/bas/include \
  26. $(NIMBLE_ROOT)/nimble/host/services/bleuart/include \
  27. $(NIMBLE_ROOT)/nimble/host/services/gap/include \
  28. $(NIMBLE_ROOT)/nimble/host/services/gatt/include \
  29. $(NIMBLE_ROOT)/nimble/host/services/ias/include \
  30. $(NIMBLE_ROOT)/nimble/host/services/lls/include \
  31. $(NIMBLE_ROOT)/nimble/host/services/tps/include \
  32. $(NIMBLE_ROOT)/nimble/host/store/ram/include \
  33. $(NIMBLE_ROOT)/nimble/host/util/include \
  34. $(NIMBLE_ROOT)/porting/nimble/include \
  35. $(NULL)
  36. NIMBLE_SRC := \
  37. $(NIMBLE_ROOT)/nimble/host/src/ble_att.c \
  38. $(NIMBLE_ROOT)/nimble/host/src/ble_att_clt.c \
  39. $(NIMBLE_ROOT)/nimble/host/src/ble_att_cmd.c \
  40. $(NIMBLE_ROOT)/nimble/host/src/ble_att_svr.c \
  41. $(NIMBLE_ROOT)/nimble/host/src/ble_eddystone.c \
  42. $(NIMBLE_ROOT)/nimble/host/src/ble_gap.c \
  43. $(NIMBLE_ROOT)/nimble/host/src/ble_gattc.c \
  44. $(NIMBLE_ROOT)/nimble/host/src/ble_gatts.c \
  45. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_adv.c \
  46. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_atomic.c \
  47. $(NIMBLE_ROOT)/nimble/host/src/ble_hs.c \
  48. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_cfg.c \
  49. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_conn.c \
  50. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_dbg.c \
  51. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_flow.c \
  52. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_hci.c \
  53. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_hci_cmd.c \
  54. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_hci_evt.c \
  55. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_hci_util.c \
  56. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_id.c \
  57. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_log.c \
  58. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_mbuf.c \
  59. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_mqueue.c \
  60. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_misc.c \
  61. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_pvcy.c \
  62. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_startup.c \
  63. $(NIMBLE_ROOT)/nimble/host/src/ble_hs_stop.c \
  64. $(NIMBLE_ROOT)/nimble/host/src/ble_ibeacon.c \
  65. $(NIMBLE_ROOT)/nimble/host/src/ble_l2cap.c \
  66. $(NIMBLE_ROOT)/nimble/host/src/ble_l2cap_coc.c \
  67. $(NIMBLE_ROOT)/nimble/host/src/ble_l2cap_sig.c \
  68. $(NIMBLE_ROOT)/nimble/host/src/ble_l2cap_sig_cmd.c \
  69. $(NIMBLE_ROOT)/nimble/host/src/ble_monitor.c \
  70. $(NIMBLE_ROOT)/nimble/host/src/ble_sm_alg.c \
  71. $(NIMBLE_ROOT)/nimble/host/src/ble_sm.c \
  72. $(NIMBLE_ROOT)/nimble/host/src/ble_sm_cmd.c \
  73. $(NIMBLE_ROOT)/nimble/host/src/ble_sm_lgcy.c \
  74. $(NIMBLE_ROOT)/nimble/host/src/ble_sm_sc.c \
  75. $(NIMBLE_ROOT)/nimble/host/src/ble_store.c \
  76. $(NIMBLE_ROOT)/nimble/host/src/ble_store_util.c \
  77. $(NIMBLE_ROOT)/nimble/host/src/ble_uuid.c \
  78. $(NIMBLE_ROOT)/nimble/host/services/ans/src/ble_svc_ans.c \
  79. $(NIMBLE_ROOT)/nimble/host/services/bas/src/ble_svc_bas.c \
  80. $(NIMBLE_ROOT)/nimble/host/services/gap/src/ble_svc_gap.c \
  81. $(NIMBLE_ROOT)/nimble/host/services/gatt/src/ble_svc_gatt.c \
  82. $(NIMBLE_ROOT)/nimble/host/services/ias/src/ble_svc_ias.c \
  83. $(NIMBLE_ROOT)/nimble/host/services/lls/src/ble_svc_lls.c \
  84. $(NIMBLE_ROOT)/nimble/host/services/tps/src/ble_svc_tps.c \
  85. $(NIMBLE_ROOT)/nimble/host/store/ram/src/ble_store_ram.c \
  86. $(NIMBLE_ROOT)/nimble/host/util/src/addr.c \
  87. $(NIMBLE_ROOT)/nimble/src/ble_util.c \
  88. $(NULL)
  89. # Few utils and data structures copied from Mynewt
  90. NIMBLE_SRC += \
  91. $(NIMBLE_ROOT)/porting/nimble/src/nimble_port.c \
  92. $(NULL)
  93. # Few utils and data structures copied from Mynewt
  94. NIMBLE_SRC += \
  95. $(NIMBLE_ROOT)/porting/nimble/src/endian.c \
  96. $(NIMBLE_ROOT)/porting/nimble/src/mem.c \
  97. $(NIMBLE_ROOT)/porting/nimble/src/os_mbuf.c \
  98. $(NIMBLE_ROOT)/porting/nimble/src/os_mempool.c \
  99. $(NIMBLE_ROOT)/porting/nimble/src/os_msys_init.c \
  100. $(NULL)
  101. ifneq (,$(NIMBLE_CFG_CONTROLLER))
  102. include $(NIMBLE_ROOT)/porting/nimble/Makefile.controller
  103. endif
  104. # TinyCrypt (for SM)
  105. ifneq (,$(NIMBLE_CFG_TINYCRYPT))
  106. include $(NIMBLE_ROOT)/porting/nimble/Makefile.tinycrypt
  107. endif
  108. ifneq (,$(NIMBLE_CFG_MESH))
  109. include $(NIMBLE_ROOT)/porting/nimble/Makefile.mesh
  110. endif
  111. NIMBLE_OBJ := $(NIMBLE_SRC:.c=.o)