You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

Makefile 578B

123456789101112131415161718192021222324252627282930313233
  1. PROJECT = infinity
  2. TMK_DIR = ../..
  3. MBED_DIR = $(TMK_DIR)/mbed-sdk
  4. #VPATH += $(MBED_DIR):$(TMK_DIR)
  5. vpath %.s .:$(MBED_DIR):$(TMK_DIR)
  6. vpath %.c .:$(MBED_DIR):$(TMK_DIR)
  7. vpath %.cpp .:$(MBED_DIR):$(TMK_DIR)
  8. OBJDIR = ./build
  9. OBJECTS = \
  10. $(OBJDIR)/main.o
  11. CONFIG_H = config.h
  12. INCLUDE_PATHS = -I.
  13. # Build Options
  14. # Comment out to disable
  15. #BOOTMAGIC_ENABLE = yes
  16. #MOUSEKEY_ENABLE = yes
  17. include mbed-infinity.mk
  18. include $(TMK_DIR)/tool/mbed/mbed.mk
  19. include $(TMK_DIR)/tool/mbed/common.mk
  20. include $(TMK_DIR)/tool/mbed/gcc.mk
  21. program:
  22. dfu-util -D $(OBJDIR)/$(PROJECT).bin