summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/common.mk b/common.mk
index 2735f5becf..f9faf2f95b 100644
--- a/common.mk
+++ b/common.mk
@@ -10,12 +10,16 @@ SRC += $(COMMON_DIR)/host.c \
$(COMMON_DIR)/print.c \
$(COMMON_DIR)/debug.c \
$(COMMON_DIR)/bootloader.c \
- $(COMMON_DIR)/bootmagic.c \
- $(COMMON_DIR)/eeconfig.c \
$(COMMON_DIR)/util.c
# Option modules
+ifdef BOOTMAGIC_ENABLE
+ SRC += $(COMMON_DIR)/bootmagic.c
+ SRC += $(COMMON_DIR)/eeconfig.c
+ OPT_DEFS += -DBOOTMAGIC_ENABLE
+endif
+
ifdef MOUSEKEY_ENABLE
SRC += $(COMMON_DIR)/mousekey.c
OPT_DEFS += -DMOUSEKEY_ENABLE