Makefile 570 B

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