Makefile.lpc55s6x 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. VPATH += :$(HALPATH)/lpc55s6x :$(HALPATH)/lpc55s6x/device
  2. SRC += lpc55s6x_hal.c startup_lpc55s69_cm33_core0.c system_LPC55S69_cm33_core0.c semihost_hardfault.c
  3. VPATH += :$(HALPATH)/lpc55s6x/utilities
  4. SRC += fsl_assert.c fsl_debug_console.c fsl_str.c
  5. VPATH += :$(HALPATH)/lpc55s6x/drivers
  6. SRC += fsl_clock.c fsl_common.c fsl_flexcomm.c fsl_gpio.c fsl_hashcrypt.c fsl_inputmux.c fsl_power.c fsl_puf.c fsl_reset.c fsl_rng.c fsl_usart.c
  7. VPATH += :$(HALPATH)/lpc55s6x/component
  8. SRC += fsl_generic_list.c fsl_serial_manager.c fsl_serial_port_uart.c fsl_usart_adapter.c
  9. EXTRAINCDIRS += $(HALPATH)/lpc55s6x $(HALPATH)/lpc55s6x/CMSIS
  10. EXTRAINCDIRS += $(HALPATH)/lpc55s6x/utilities $(HALPATH)/lpc55s6x/drivers
  11. EXTRAINCDIRS += $(HALPATH)/lpc55s6x/device
  12. EXTRAINCDIRS += $(HALPATH)/lpc55s6x/component
  13. MCU_FLAGS = -mcpu=cortex-m33
  14. CC = arm-none-eabi-gcc
  15. OBJCOPY = arm-none-eabi-objcopy
  16. OBJDUMP = arm-none-eabi-objdump
  17. SIZE = arm-none-eabi-size
  18. AR = arm-none-eabi-ar rcs
  19. NM = arm-none-eabi-nm
  20. #Output Format = Binary for this target
  21. FORMAT = binary
  22. CFLAGS += -fdata-sections -ffunction-sections -funsigned-char -funsigned-bitfields -mthumb -mlong-calls
  23. CPPFLAGS += $(CFLAGS)
  24. ASFLAGS += -mthumb
  25. CDEFS += -DCPU_LPC55S69JBD100 -DCPU_LPC55S69JBD100_cm33 -DCPU_LPC55S69JBD100_cm33_core0
  26. CPPDEFS += $(CDEFS)
  27. LDFLAGS += --specs=nano.specs -T $(HALPATH)/lpc55s6x/lpcxpresso55s69_flashiap1_debug.ld -Wl,--gc-sections -lm