Keyboard firmwares for Atmel AVR and Cortex-M
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.

common.mk 962B

11 jaren geleden
11 jaren geleden
13 jaren geleden
13 jaren geleden
13 jaren geleden
13 jaren geleden
13 jaren geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. COMMON_DIR = common
  2. SRC += $(COMMON_DIR)/host.c \
  3. $(COMMON_DIR)/keyboard.c \
  4. $(COMMON_DIR)/action.c \
  5. $(COMMON_DIR)/action_macro.c \
  6. $(COMMON_DIR)/layer_switch.c \
  7. $(COMMON_DIR)/keymap.c \
  8. $(COMMON_DIR)/command.c \
  9. $(COMMON_DIR)/timer.c \
  10. $(COMMON_DIR)/print.c \
  11. $(COMMON_DIR)/debug.c \
  12. $(COMMON_DIR)/bootloader.c \
  13. $(COMMON_DIR)/bootmagic.c \
  14. $(COMMON_DIR)/eeconfig.c \
  15. $(COMMON_DIR)/util.c
  16. # Option modules
  17. ifdef MOUSEKEY_ENABLE
  18. SRC += $(COMMON_DIR)/mousekey.c
  19. OPT_DEFS += -DMOUSEKEY_ENABLE
  20. endif
  21. ifdef EXTRAKEY_ENABLE
  22. OPT_DEFS += -DEXTRAKEY_ENABLE
  23. endif
  24. ifdef CONSOLE_ENABLE
  25. OPT_DEFS += -DCONSOLE_ENABLE
  26. endif
  27. ifdef NKRO_ENABLE
  28. OPT_DEFS += -DNKRO_ENABLE
  29. endif
  30. ifdef PS2_MOUSE_ENABLE
  31. SRC += $(COMMON_DIR)/ps2.c \
  32. $(COMMON_DIR)/ps2_mouse.c
  33. OPT_DEFS += -DPS2_MOUSE_ENABLE
  34. endif
  35. ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE)
  36. OPT_DEFS += -DMOUSE_ENABLE
  37. endif
  38. # Search Path
  39. VPATH += $(TOP_DIR)/common