Makefile 585 B

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