Makefile 553 B

123456789101112131415161718192021222324252627
  1. include ../../../tools/top.mk
  2. include ../../make.mk
  3. INC += \
  4. src \
  5. $(TOP)/hw \
  6. # Example source
  7. EXAMPLE_SOURCE += \
  8. src/main.c
  9. SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
  10. # TODO: suppress warning caused by host stack
  11. CFLAGS += -Wno-error=cast-align -Wno-error=null-dereference
  12. # TinyUSB Host Stack source
  13. SRC_C += \
  14. src/class/cdc/cdc_host.c \
  15. src/class/hid/hid_host.c \
  16. src/class/msc/msc_host.c \
  17. src/host/hub.c \
  18. src/host/usbh.c \
  19. src/portable/ohci/ohci.c \
  20. src/portable/nxp/lpc17_40/hcd_lpc17_40.c
  21. include ../../rules.mk