Makefile 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531
  1. # This file was automagically generated by mbed.org. For more information,
  2. # see http://mbed.org/handbook/Exporting-to-GCC-ARM-Embedded
  3. ###############################################################################
  4. # Boiler-plate
  5. # cross-platform directory manipulation
  6. ifeq ($(shell echo $$OS),$$OS)
  7. MAKEDIR = if not exist "$(1)" mkdir "$(1)"
  8. RM = rmdir /S /Q "$(1)"
  9. else
  10. MAKEDIR = '$(SHELL)' -c "mkdir -p \"$(1)\""
  11. RM = '$(SHELL)' -c "rm -rf \"$(1)\""
  12. endif
  13. OBJDIR := BUILD
  14. # Move to the build directory
  15. ifeq (,$(filter $(OBJDIR),$(notdir $(CURDIR))))
  16. .SUFFIXES:
  17. mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
  18. MAKETARGET = '$(MAKE)' --no-print-directory -C $(OBJDIR) -f '$(mkfile_path)' \
  19. 'SRCDIR=$(CURDIR)' $(MAKECMDGOALS)
  20. .PHONY: $(OBJDIR) clean
  21. all:
  22. +@$(call MAKEDIR,$(OBJDIR))
  23. +@$(MAKETARGET)
  24. $(OBJDIR): all
  25. Makefile : ;
  26. % :: $(OBJDIR) ; :
  27. clean :
  28. $(call RM,$(OBJDIR))
  29. else
  30. # trick rules into thinking we are in the root, when we are in the bulid dir
  31. VPATH = ..
  32. # Boiler-plate
  33. ###############################################################################
  34. # Project settings
  35. PROJECT := Nixie_FW
  36. # Project settings
  37. ###############################################################################
  38. # Objects and Paths
  39. OBJECTS += SWO/SWO.o
  40. OBJECTS += main.o
  41. OBJECTS += tusb322.o
  42. OBJECTS += ds3231.o
  43. OBJECTS += pca9685.o
  44. OBJECTS += ioc.o
  45. OBJECTS += animation.o
  46. OBJECTS += mbed-dev/cmsis/TARGET_CORTEX_M/mbed_tz_context.o
  47. OBJECTS += mbed-dev/drivers/AnalogIn.o
  48. OBJECTS += mbed-dev/drivers/BusIn.o
  49. OBJECTS += mbed-dev/drivers/BusInOut.o
  50. OBJECTS += mbed-dev/drivers/BusOut.o
  51. OBJECTS += mbed-dev/drivers/CAN.o
  52. OBJECTS += mbed-dev/drivers/Ethernet.o
  53. OBJECTS += mbed-dev/drivers/FlashIAP.o
  54. OBJECTS += mbed-dev/drivers/I2C.o
  55. OBJECTS += mbed-dev/drivers/I2CSlave.o
  56. OBJECTS += mbed-dev/drivers/InterruptIn.o
  57. OBJECTS += mbed-dev/drivers/InterruptManager.o
  58. OBJECTS += mbed-dev/drivers/MbedCRC.o
  59. OBJECTS += mbed-dev/drivers/RawSerial.o
  60. OBJECTS += mbed-dev/drivers/SPI.o
  61. OBJECTS += mbed-dev/drivers/SPISlave.o
  62. OBJECTS += mbed-dev/drivers/Serial.o
  63. OBJECTS += mbed-dev/drivers/SerialBase.o
  64. OBJECTS += mbed-dev/drivers/TableCRC.o
  65. OBJECTS += mbed-dev/drivers/Ticker.o
  66. OBJECTS += mbed-dev/drivers/Timeout.o
  67. OBJECTS += mbed-dev/drivers/Timer.o
  68. OBJECTS += mbed-dev/drivers/TimerEvent.o
  69. OBJECTS += mbed-dev/drivers/UARTSerial.o
  70. OBJECTS += mbed-dev/hal/mbed_critical_section_api.o
  71. OBJECTS += mbed-dev/hal/mbed_flash_api.o
  72. OBJECTS += mbed-dev/hal/mbed_gpio.o
  73. OBJECTS += mbed-dev/hal/mbed_itm_api.o
  74. OBJECTS += mbed-dev/hal/mbed_lp_ticker_api.o
  75. OBJECTS += mbed-dev/hal/mbed_lp_ticker_wrapper.o
  76. OBJECTS += mbed-dev/hal/mbed_pinmap_common.o
  77. OBJECTS += mbed-dev/hal/mbed_sleep_manager.o
  78. OBJECTS += mbed-dev/hal/mbed_ticker_api.o
  79. OBJECTS += mbed-dev/hal/mbed_us_ticker_api.o
  80. OBJECTS += mbed-dev/platform/ATCmdParser.o
  81. OBJECTS += mbed-dev/platform/CallChain.o
  82. OBJECTS += mbed-dev/platform/FileBase.o
  83. OBJECTS += mbed-dev/platform/FileHandle.o
  84. OBJECTS += mbed-dev/platform/FilePath.o
  85. OBJECTS += mbed-dev/platform/FileSystemHandle.o
  86. OBJECTS += mbed-dev/platform/LocalFileSystem.o
  87. OBJECTS += mbed-dev/platform/Stream.o
  88. OBJECTS += mbed-dev/platform/mbed_alloc_wrappers.o
  89. OBJECTS += mbed-dev/platform/mbed_application.o
  90. OBJECTS += mbed-dev/platform/mbed_assert.o
  91. OBJECTS += mbed-dev/platform/mbed_board.o
  92. OBJECTS += mbed-dev/platform/mbed_critical.o
  93. OBJECTS += mbed-dev/platform/mbed_error.o
  94. OBJECTS += mbed-dev/platform/mbed_error_hist.o
  95. OBJECTS += mbed-dev/platform/mbed_interface.o
  96. OBJECTS += mbed-dev/platform/mbed_mem_trace.o
  97. OBJECTS += mbed-dev/platform/mbed_mktime.o
  98. OBJECTS += mbed-dev/platform/mbed_poll.o
  99. OBJECTS += mbed-dev/platform/mbed_retarget.o
  100. OBJECTS += mbed-dev/platform/mbed_rtc_time.o
  101. OBJECTS += mbed-dev/platform/mbed_sdk_boot.o
  102. OBJECTS += mbed-dev/platform/mbed_semihost_api.o
  103. OBJECTS += mbed-dev/platform/mbed_stats.o
  104. OBJECTS += mbed-dev/platform/mbed_wait_api_no_rtos.o
  105. OBJECTS += mbed-dev/platform/mbed_wait_api_rtos.o
  106. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/TARGET_NUCLEO_L432KC/PeripheralPins.o
  107. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/TARGET_NUCLEO_L432KC/system_clock.o
  108. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/device/TOOLCHAIN_GCC_ARM/startup_stm32l432xx.o
  109. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/analogin_device.o
  110. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/analogout_device.o
  111. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal.o
  112. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_adc.o
  113. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_adc_ex.o
  114. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_can.o
  115. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_can_legacy.o
  116. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_comp.o
  117. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_cortex.o
  118. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_crc.o
  119. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_crc_ex.o
  120. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_cryp.o
  121. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_cryp_ex.o
  122. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_dac.o
  123. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_dac_ex.o
  124. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_dcmi.o
  125. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_dfsdm.o
  126. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_dfsdm_ex.o
  127. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_dma.o
  128. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_dma2d.o
  129. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_dma_ex.o
  130. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_dsi.o
  131. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_firewall.o
  132. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_flash.o
  133. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_flash_ex.o
  134. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_flash_ramfunc.o
  135. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_gfxmmu.o
  136. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_gpio.o
  137. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_hash.o
  138. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_hash_ex.o
  139. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_hcd.o
  140. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_i2c.o
  141. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_i2c_ex.o
  142. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_irda.o
  143. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_iwdg.o
  144. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_lcd.o
  145. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_lptim.o
  146. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_ltdc.o
  147. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_ltdc_ex.o
  148. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_nand.o
  149. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_nor.o
  150. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_opamp.o
  151. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_opamp_ex.o
  152. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_ospi.o
  153. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_pcd.o
  154. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_pcd_ex.o
  155. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_pwr.o
  156. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_pwr_ex.o
  157. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_qspi.o
  158. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_rcc.o
  159. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_rcc_ex.o
  160. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_rng.o
  161. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_rtc.o
  162. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_rtc_ex.o
  163. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_sai.o
  164. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_sai_ex.o
  165. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_sd.o
  166. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_sd_ex.o
  167. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_smartcard.o
  168. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_smartcard_ex.o
  169. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_smbus.o
  170. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_spi.o
  171. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_spi_ex.o
  172. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_sram.o
  173. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_swpmi.o
  174. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_tim.o
  175. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_tim_ex.o
  176. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_tsc.o
  177. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_uart.o
  178. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_uart_ex.o
  179. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_usart.o
  180. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_usart_ex.o
  181. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_wwdg.o
  182. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_adc.o
  183. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_comp.o
  184. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_crc.o
  185. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_crs.o
  186. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_dac.o
  187. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_dma.o
  188. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_dma2d.o
  189. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_exti.o
  190. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_fmc.o
  191. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_gpio.o
  192. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_i2c.o
  193. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_lptim.o
  194. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_lpuart.o
  195. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_opamp.o
  196. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_pwr.o
  197. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_rcc.o
  198. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_rng.o
  199. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_rtc.o
  200. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_sdmmc.o
  201. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_spi.o
  202. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_swpmi.o
  203. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_tim.o
  204. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_usart.o
  205. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_usb.o
  206. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_utils.o
  207. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device/system_stm32l4xx.o
  208. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/flash_api.o
  209. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/gpio_irq_device.o
  210. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/l4_retarget.o
  211. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/pwmout_device.o
  212. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/serial_device.o
  213. OBJECTS += mbed-dev/targets/TARGET_STM/TARGET_STM32L4/spi_api.o
  214. OBJECTS += mbed-dev/targets/TARGET_STM/analogin_api.o
  215. OBJECTS += mbed-dev/targets/TARGET_STM/analogout_api.o
  216. OBJECTS += mbed-dev/targets/TARGET_STM/can_api.o
  217. OBJECTS += mbed-dev/targets/TARGET_STM/gpio_api.o
  218. OBJECTS += mbed-dev/targets/TARGET_STM/gpio_irq_api.o
  219. OBJECTS += mbed-dev/targets/TARGET_STM/hal_tick_overrides.o
  220. OBJECTS += mbed-dev/targets/TARGET_STM/i2c_api.o
  221. OBJECTS += mbed-dev/targets/TARGET_STM/lp_ticker.o
  222. OBJECTS += mbed-dev/targets/TARGET_STM/mbed_crc_api.o
  223. OBJECTS += mbed-dev/targets/TARGET_STM/mbed_overrides.o
  224. OBJECTS += mbed-dev/targets/TARGET_STM/pinmap.o
  225. OBJECTS += mbed-dev/targets/TARGET_STM/port_api.o
  226. OBJECTS += mbed-dev/targets/TARGET_STM/pwmout_api.o
  227. OBJECTS += mbed-dev/targets/TARGET_STM/rtc_api.o
  228. OBJECTS += mbed-dev/targets/TARGET_STM/serial_api.o
  229. OBJECTS += mbed-dev/targets/TARGET_STM/sleep.o
  230. OBJECTS += mbed-dev/targets/TARGET_STM/stm_spi_api.o
  231. OBJECTS += mbed-dev/targets/TARGET_STM/trng_api.o
  232. OBJECTS += mbed-dev/targets/TARGET_STM/us_ticker.o
  233. INCLUDE_PATHS += -I../.
  234. INCLUDE_PATHS += -I../SWO
  235. INCLUDE_PATHS += -I../mbed-dev
  236. INCLUDE_PATHS += -I../mbed-dev/cmsis
  237. INCLUDE_PATHS += -I../mbed-dev/cmsis/TARGET_CORTEX_M
  238. INCLUDE_PATHS += -I../mbed-dev/drivers
  239. INCLUDE_PATHS += -I../mbed-dev/hal
  240. INCLUDE_PATHS += -I../mbed-dev/hal/storage_abstraction
  241. INCLUDE_PATHS += -I../mbed-dev/platform
  242. INCLUDE_PATHS += -I../mbed-dev/targets/TARGET_STM
  243. INCLUDE_PATHS += -I../mbed-dev/targets/TARGET_STM/TARGET_STM32L4
  244. INCLUDE_PATHS += -I../mbed-dev/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC
  245. INCLUDE_PATHS += -I../mbed-dev/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/TARGET_NUCLEO_L432KC
  246. INCLUDE_PATHS += -I../mbed-dev/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/device
  247. INCLUDE_PATHS += -I../mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device
  248. LIBRARY_PATHS :=
  249. LIBRARIES :=
  250. LINKER_SCRIPT ?= ../mbed-dev/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/device/TOOLCHAIN_GCC_ARM/STM32L432XX.ld
  251. # Objects and Paths
  252. ###############################################################################
  253. # Tools and Flags
  254. AS = arm-none-eabi-gcc
  255. CC = arm-none-eabi-gcc
  256. CPP = arm-none-eabi-g++
  257. LD = arm-none-eabi-gcc
  258. ELF2BIN = arm-none-eabi-objcopy
  259. PREPROC = arm-none-eabi-cpp -E -P -Wl,--gc-sections -Wl,--wrap,main -Wl,--wrap,_malloc_r -Wl,--wrap,_free_r -Wl,--wrap,_realloc_r -Wl,--wrap,_memalign_r -Wl,--wrap,_calloc_r -Wl,--wrap,exit -Wl,--wrap,atexit -Wl,-n -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp
  260. C_FLAGS += -std=gnu99
  261. C_FLAGS += -include
  262. C_FLAGS += mbed_config.h
  263. C_FLAGS += -DDEVICE_CRC=1
  264. C_FLAGS += -DDEVICE_SPI=1
  265. C_FLAGS += -D__MBED__=1
  266. C_FLAGS += -DDEVICE_I2CSLAVE=1
  267. C_FLAGS += -D__FPU_PRESENT=1
  268. C_FLAGS += -DDEVICE_PORTOUT=1
  269. C_FLAGS += -DDEVICE_PORTINOUT=1
  270. C_FLAGS += -DTARGET_RTOS_M4_M7
  271. C_FLAGS += -DDEVICE_RTC=1
  272. C_FLAGS += -DDEVICE_SERIAL_ASYNCH=1
  273. C_FLAGS += -D__CMSIS_RTOS
  274. C_FLAGS += -DTOOLCHAIN_GCC
  275. C_FLAGS += -DDEVICE_I2C_ASYNCH=1
  276. C_FLAGS += -DTARGET_CORTEX_M
  277. C_FLAGS += -DTARGET_LIKE_CORTEX_M4
  278. C_FLAGS += -DDEVICE_ANALOGOUT=1
  279. C_FLAGS += -DTARGET_M4
  280. C_FLAGS += -DTARGET_STM32L4
  281. C_FLAGS += -DDEVICE_SPI_ASYNCH=1
  282. C_FLAGS += -DDEVICE_LPTICKER=1
  283. C_FLAGS += -DDEVICE_PWMOUT=1
  284. C_FLAGS += -DTARGET_STM32L432xC
  285. C_FLAGS += -DTARGET_CORTEX
  286. C_FLAGS += -DDEVICE_I2C=1
  287. C_FLAGS += -DTRANSACTION_QUEUE_SIZE_SPI=2
  288. C_FLAGS += -D__CORTEX_M4
  289. C_FLAGS += -DDEVICE_STDIO_MESSAGES=1
  290. C_FLAGS += -DTARGET_FAMILY_STM32
  291. C_FLAGS += -DTARGET_FF_ARDUINO
  292. C_FLAGS += -DDEVICE_PORTIN=1
  293. C_FLAGS += -DTARGET_RELEASE
  294. C_FLAGS += -DTARGET_STM
  295. C_FLAGS += -DTARGET_STM32L432KC
  296. C_FLAGS += -DDEVICE_SERIAL_FC=1
  297. C_FLAGS += -DDEVICE_USTICKER=1
  298. C_FLAGS += -DDEVICE_TRNG=1
  299. C_FLAGS += -DTARGET_LIKE_MBED
  300. C_FLAGS += -D__MBED_CMSIS_RTOS_CM
  301. C_FLAGS += -DDEVICE_SLEEP=1
  302. C_FLAGS += -DTOOLCHAIN_GCC_ARM
  303. C_FLAGS += -DDEVICE_CAN=1
  304. C_FLAGS += -DMBED_BUILD_TIMESTAMP=1543192334.62
  305. C_FLAGS += -DDEVICE_INTERRUPTIN=1
  306. C_FLAGS += -DDEVICE_SPISLAVE=1
  307. C_FLAGS += -DDEVICE_ANALOGIN=1
  308. C_FLAGS += -DDEVICE_SERIAL=1
  309. C_FLAGS += -DDEVICE_FLASH=1
  310. C_FLAGS += -DTARGET_NUCLEO_L432KC
  311. C_FLAGS += -DARM_MATH_CM4
  312. C_FLAGS += -include
  313. C_FLAGS += mbed_config.h
  314. C_FLAGS += -std=gnu99
  315. C_FLAGS += -c
  316. C_FLAGS += -Wall
  317. C_FLAGS += -Wextra
  318. C_FLAGS += -Wno-unused-parameter
  319. C_FLAGS += -Wno-missing-field-initializers
  320. C_FLAGS += -fmessage-length=0
  321. C_FLAGS += -fno-exceptions
  322. C_FLAGS += -fno-builtin
  323. C_FLAGS += -ffunction-sections
  324. C_FLAGS += -fdata-sections
  325. C_FLAGS += -funsigned-char
  326. C_FLAGS += -MMD
  327. C_FLAGS += -fno-delete-null-pointer-checks
  328. C_FLAGS += -fomit-frame-pointer
  329. C_FLAGS += -Os
  330. C_FLAGS += -g1
  331. C_FLAGS += -mcpu=cortex-m4
  332. C_FLAGS += -mthumb
  333. C_FLAGS += -mfpu=fpv4-sp-d16
  334. C_FLAGS += -mfloat-abi=softfp
  335. C_FLAGS += -DMBED_ROM_START=0x8000000
  336. C_FLAGS += -DMBED_ROM_SIZE=0x40000
  337. CXX_FLAGS += -std=gnu++98
  338. CXX_FLAGS += -fno-rtti
  339. CXX_FLAGS += -Wvla
  340. CXX_FLAGS += -include
  341. CXX_FLAGS += mbed_config.h
  342. CXX_FLAGS += -DDEVICE_CRC=1
  343. CXX_FLAGS += -DDEVICE_SPI=1
  344. CXX_FLAGS += -D__MBED__=1
  345. CXX_FLAGS += -DDEVICE_I2CSLAVE=1
  346. CXX_FLAGS += -D__FPU_PRESENT=1
  347. CXX_FLAGS += -DDEVICE_PORTOUT=1
  348. CXX_FLAGS += -DDEVICE_PORTINOUT=1
  349. CXX_FLAGS += -DTARGET_RTOS_M4_M7
  350. CXX_FLAGS += -DDEVICE_RTC=1
  351. CXX_FLAGS += -DDEVICE_SERIAL_ASYNCH=1
  352. CXX_FLAGS += -D__CMSIS_RTOS
  353. CXX_FLAGS += -DTOOLCHAIN_GCC
  354. CXX_FLAGS += -DDEVICE_I2C_ASYNCH=1
  355. CXX_FLAGS += -DTARGET_CORTEX_M
  356. CXX_FLAGS += -DTARGET_LIKE_CORTEX_M4
  357. CXX_FLAGS += -DDEVICE_ANALOGOUT=1
  358. CXX_FLAGS += -DTARGET_M4
  359. CXX_FLAGS += -DTARGET_STM32L4
  360. CXX_FLAGS += -DDEVICE_SPI_ASYNCH=1
  361. CXX_FLAGS += -DDEVICE_LPTICKER=1
  362. CXX_FLAGS += -DDEVICE_PWMOUT=1
  363. CXX_FLAGS += -DTARGET_STM32L432xC
  364. CXX_FLAGS += -DTARGET_CORTEX
  365. CXX_FLAGS += -DDEVICE_I2C=1
  366. CXX_FLAGS += -DTRANSACTION_QUEUE_SIZE_SPI=2
  367. CXX_FLAGS += -D__CORTEX_M4
  368. CXX_FLAGS += -DDEVICE_STDIO_MESSAGES=1
  369. CXX_FLAGS += -DTARGET_FAMILY_STM32
  370. CXX_FLAGS += -DTARGET_FF_ARDUINO
  371. CXX_FLAGS += -DDEVICE_PORTIN=1
  372. CXX_FLAGS += -DTARGET_RELEASE
  373. CXX_FLAGS += -DTARGET_STM
  374. CXX_FLAGS += -DTARGET_STM32L432KC
  375. CXX_FLAGS += -DDEVICE_SERIAL_FC=1
  376. CXX_FLAGS += -DDEVICE_USTICKER=1
  377. CXX_FLAGS += -DDEVICE_TRNG=1
  378. CXX_FLAGS += -DTARGET_LIKE_MBED
  379. CXX_FLAGS += -D__MBED_CMSIS_RTOS_CM
  380. CXX_FLAGS += -DDEVICE_SLEEP=1
  381. CXX_FLAGS += -DTOOLCHAIN_GCC_ARM
  382. CXX_FLAGS += -DDEVICE_CAN=1
  383. CXX_FLAGS += -DMBED_BUILD_TIMESTAMP=1543192334.62
  384. CXX_FLAGS += -DDEVICE_INTERRUPTIN=1
  385. CXX_FLAGS += -DDEVICE_SPISLAVE=1
  386. CXX_FLAGS += -DDEVICE_ANALOGIN=1
  387. CXX_FLAGS += -DDEVICE_SERIAL=1
  388. CXX_FLAGS += -DDEVICE_FLASH=1
  389. CXX_FLAGS += -DTARGET_NUCLEO_L432KC
  390. CXX_FLAGS += -DARM_MATH_CM4
  391. CXX_FLAGS += -include
  392. CXX_FLAGS += mbed_config.h
  393. CXX_FLAGS += -std=gnu++98
  394. CXX_FLAGS += -fno-rtti
  395. CXX_FLAGS += -Wvla
  396. CXX_FLAGS += -c
  397. CXX_FLAGS += -Wall
  398. CXX_FLAGS += -Wextra
  399. CXX_FLAGS += -Wno-unused-parameter
  400. CXX_FLAGS += -Wno-missing-field-initializers
  401. CXX_FLAGS += -fmessage-length=0
  402. CXX_FLAGS += -fno-exceptions
  403. CXX_FLAGS += -fno-builtin
  404. CXX_FLAGS += -ffunction-sections
  405. CXX_FLAGS += -fdata-sections
  406. CXX_FLAGS += -funsigned-char
  407. CXX_FLAGS += -MMD
  408. CXX_FLAGS += -fno-delete-null-pointer-checks
  409. CXX_FLAGS += -fomit-frame-pointer
  410. CXX_FLAGS += -Os
  411. CXX_FLAGS += -g1
  412. CXX_FLAGS += -mcpu=cortex-m4
  413. CXX_FLAGS += -mthumb
  414. CXX_FLAGS += -mfpu=fpv4-sp-d16
  415. CXX_FLAGS += -mfloat-abi=softfp
  416. CXX_FLAGS += -DMBED_ROM_START=0x8000000
  417. CXX_FLAGS += -DMBED_ROM_SIZE=0x40000
  418. ASM_FLAGS += -x
  419. ASM_FLAGS += assembler-with-cpp
  420. ASM_FLAGS += -DTRANSACTION_QUEUE_SIZE_SPI=2
  421. ASM_FLAGS += -D__CORTEX_M4
  422. ASM_FLAGS += -DARM_MATH_CM4
  423. ASM_FLAGS += -D__FPU_PRESENT=1
  424. ASM_FLAGS += -D__MBED_CMSIS_RTOS_CM
  425. ASM_FLAGS += -D__CMSIS_RTOS
  426. ASM_FLAGS += -I../.
  427. ASM_FLAGS += -I../SWO
  428. ASM_FLAGS += -I../mbed-dev
  429. ASM_FLAGS += -I../mbed-dev/cmsis
  430. ASM_FLAGS += -I../mbed-dev/cmsis/TARGET_CORTEX_M
  431. ASM_FLAGS += -I../mbed-dev/drivers
  432. ASM_FLAGS += -I../mbed-dev/hal
  433. ASM_FLAGS += -I../mbed-dev/hal/storage_abstraction
  434. ASM_FLAGS += -I../mbed-dev/platform
  435. ASM_FLAGS += -I../mbed-dev/targets/TARGET_STM
  436. ASM_FLAGS += -I../mbed-dev/targets/TARGET_STM/TARGET_STM32L4
  437. ASM_FLAGS += -I../mbed-dev/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC
  438. ASM_FLAGS += -I../mbed-dev/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/TARGET_NUCLEO_L432KC
  439. ASM_FLAGS += -I../mbed-dev/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/device
  440. ASM_FLAGS += -I../mbed-dev/targets/TARGET_STM/TARGET_STM32L4/device
  441. LD_FLAGS :=-Wl,--gc-sections -Wl,--wrap,main -Wl,--wrap,_malloc_r -Wl,--wrap,_free_r -Wl,--wrap,_realloc_r -Wl,--wrap,_memalign_r -Wl,--wrap,_calloc_r -Wl,--wrap,exit -Wl,--wrap,atexit -Wl,-n -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp
  442. LD_SYS_LIBS :=-Wl,--start-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -Wl,--end-group
  443. # Tools and Flags
  444. ###############################################################################
  445. # Rules
  446. .PHONY: all lst size
  447. all: $(PROJECT).bin $(PROJECT).hex $(PROJECT).dfu size
  448. .s.o:
  449. +@$(call MAKEDIR,$(dir $@))
  450. +@echo "Assemble: $(notdir $<)"
  451. @$(AS) -c $(ASM_FLAGS) -o $@ $<
  452. .S.o:
  453. +@$(call MAKEDIR,$(dir $@))
  454. +@echo "Assemble: $(notdir $<)"
  455. @$(AS) -c $(ASM_FLAGS) -o $@ $<
  456. .c.o:
  457. +@$(call MAKEDIR,$(dir $@))
  458. +@echo "Compile: $(notdir $<)"
  459. @$(CC) $(C_FLAGS) $(INCLUDE_PATHS) -o $@ $<
  460. .cpp.o:
  461. +@$(call MAKEDIR,$(dir $@))
  462. +@echo "Compile: $(notdir $<)"
  463. @$(CPP) $(CXX_FLAGS) $(INCLUDE_PATHS) -o $@ $<
  464. $(PROJECT).link_script.ld: $(LINKER_SCRIPT)
  465. @$(PREPROC) $< -o $@
  466. $(PROJECT).elf: $(OBJECTS) $(SYS_OBJECTS) $(PROJECT).link_script.ld
  467. +@echo "link: $(notdir $@)"
  468. @$(LD) $(LD_FLAGS) -T $(filter-out %.o, $^) $(LIBRARY_PATHS) --output $@ $(filter %.o, $^) $(LIBRARIES) $(LD_SYS_LIBS)
  469. $(PROJECT).bin: $(PROJECT).elf
  470. $(ELF2BIN) -O binary $< $@
  471. +@echo "===== bin file ready to flash: $(OBJDIR)/$@ ====="
  472. $(PROJECT).hex: $(PROJECT).elf
  473. $(ELF2BIN) -O ihex $< $@
  474. $(PROJECT).dfu: $(PROJECT).bin
  475. python $(VPATH)/dfu.py -b 0x08000000:$< -D 0x0483:0xdf11 $@
  476. +@echo "===== dfu file ready to flash: $(OBJDIR)/$@ ====="
  477. # Rules
  478. ###############################################################################
  479. # Dependencies
  480. DEPS = $(OBJECTS:.o=.d) $(SYS_OBJECTS:.o=.d)
  481. -include $(DEPS)
  482. endif
  483. # Dependencies
  484. ###############################################################################