diff options
Diffstat (limited to 'common.mk')
| -rw-r--r-- | common.mk | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/common.mk b/common.mk new file mode 100644 index 000000000..17c6816f6 --- /dev/null +++ b/common.mk | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | SRC += host.c \ | ||
| 2 | keyboard.c \ | ||
| 3 | command.c \ | ||
| 4 | layer.c \ | ||
| 5 | timer.c \ | ||
| 6 | print.c \ | ||
| 7 | util.c | ||
| 8 | |||
| 9 | |||
| 10 | # Option modules | ||
| 11 | ifdef MOUSEKEY_ENABLE | ||
| 12 | SRC += mousekey.c | ||
| 13 | OPT_DEFS += -DMOUSEKEY_ENABLE | ||
| 14 | endif | ||
| 15 | |||
| 16 | ifdef PS2_MOUSE_ENABLE | ||
| 17 | SRC += ps2.c \ | ||
| 18 | ps2_mouse.c | ||
| 19 | OPT_DEFS += -DPS2_MOUSE_ENABLE | ||
| 20 | endif | ||
| 21 | |||
| 22 | ifdef EXTRAKEY_ENABLE | ||
| 23 | OPT_DEFS += -DEXTRAKEY_ENABLE | ||
| 24 | endif | ||
| 25 | |||
| 26 | ifdef NKRO_ENABLE | ||
| 27 | OPT_DEFS += -DNKRO_ENABLE | ||
| 28 | endif | ||
| 29 | |||
| 30 | ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE) | ||
| 31 | OPT_DEFS += -DMOUSE_ENABLE | ||
| 32 | endif | ||
| 33 | |||
| 34 | # Search Path | ||
| 35 | VPATH += $(COMMON_DIR) | ||
| 36 | |||
| 37 | |||
| 38 | include $(COMMON_DIR)/rules.mk | ||
