diff options
Diffstat (limited to 'common_features.mk')
-rw-r--r-- | common_features.mk | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/common_features.mk b/common_features.mk index 7dd63be5b..9b9425dc3 100644 --- a/common_features.mk +++ b/common_features.mk | |||
@@ -495,23 +495,19 @@ ifeq ($(strip $(CRC_ENABLE)), yes) | |||
495 | SRC += crc.c | 495 | SRC += crc.c |
496 | endif | 496 | endif |
497 | 497 | ||
498 | HAPTIC_ENABLE ?= no | 498 | ifeq ($(strip $(HAPTIC_ENABLE)),yes) |
499 | ifneq ($(strip $(HAPTIC_ENABLE)),no) | ||
500 | COMMON_VPATH += $(DRIVER_PATH)/haptic | 499 | COMMON_VPATH += $(DRIVER_PATH)/haptic |
501 | OPT_DEFS += -DHAPTIC_ENABLE | ||
502 | SRC += $(QUANTUM_DIR)/haptic.c | ||
503 | SRC += $(QUANTUM_DIR)/process_keycode/process_haptic.c | ||
504 | endif | ||
505 | 500 | ||
506 | ifneq ($(filter DRV2605L, $(HAPTIC_ENABLE)), ) | 501 | ifneq ($(filter DRV2605L, $(HAPTIC_DRIVER)), ) |
507 | SRC += DRV2605L.c | 502 | SRC += DRV2605L.c |
508 | QUANTUM_LIB_SRC += i2c_master.c | 503 | QUANTUM_LIB_SRC += i2c_master.c |
509 | OPT_DEFS += -DDRV2605L | 504 | OPT_DEFS += -DDRV2605L |
510 | endif | 505 | endif |
511 | 506 | ||
512 | ifneq ($(filter SOLENOID, $(HAPTIC_ENABLE)), ) | 507 | ifneq ($(filter SOLENOID, $(HAPTIC_DRIVER)), ) |
513 | SRC += solenoid.c | 508 | SRC += solenoid.c |
514 | OPT_DEFS += -DSOLENOID_ENABLE | 509 | OPT_DEFS += -DSOLENOID_ENABLE |
510 | endif | ||
515 | endif | 511 | endif |
516 | 512 | ||
517 | ifeq ($(strip $(HD44780_ENABLE)), yes) | 513 | ifeq ($(strip $(HD44780_ENABLE)), yes) |