Makefile 461 B

123456789101112131415161718
  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. # board_test example is special example that doesn't enable device or host stack
  10. # This can cause some TinyUSB API missing, this hack to allow us to fill those API
  11. # to pass the compilation process
  12. CFLAGS += \
  13. -D"tud_int_handler(x)= " \
  14. include ../../rules.mk