diff options
Diffstat (limited to 'common_features.mk')
| -rw-r--r-- | common_features.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common_features.mk b/common_features.mk index 6f02dbac6..3d3b8506e 100644 --- a/common_features.mk +++ b/common_features.mk | |||
| @@ -246,11 +246,21 @@ endif | |||
| 246 | 246 | ||
| 247 | ifeq ($(strip $(HAPTIC_ENABLE)), DRV2605L) | 247 | ifeq ($(strip $(HAPTIC_ENABLE)), DRV2605L) |
| 248 | COMMON_VPATH += $(DRIVER_PATH)/haptic | 248 | COMMON_VPATH += $(DRIVER_PATH)/haptic |
| 249 | SRC += haptic.c | ||
| 249 | SRC += DRV2605L.c | 250 | SRC += DRV2605L.c |
| 250 | SRC += i2c_master.c | 251 | SRC += i2c_master.c |
| 252 | OPT_DEFS += -DHAPTIC_ENABLE | ||
| 251 | OPT_DEFS += -DDRV2605L | 253 | OPT_DEFS += -DDRV2605L |
| 252 | endif | 254 | endif |
| 253 | 255 | ||
| 256 | ifeq ($(strip $(HAPTIC_ENABLE)), SOLENOID) | ||
| 257 | COMMON_VPATH += $(DRIVER_PATH)/haptic | ||
| 258 | SRC += haptic.c | ||
| 259 | SRC += solenoid.c | ||
| 260 | OPT_DEFS += -DHAPTIC_ENABLE | ||
| 261 | OPT_DEFS += -DSOLENOID_ENABLE | ||
| 262 | endif | ||
| 263 | |||
| 254 | ifeq ($(strip $(HD44780_ENABLE)), yes) | 264 | ifeq ($(strip $(HD44780_ENABLE)), yes) |
| 255 | SRC += drivers/avr/hd44780.c | 265 | SRC += drivers/avr/hd44780.c |
| 256 | OPT_DEFS += -DHD44780_ENABLE | 266 | OPT_DEFS += -DHD44780_ENABLE |
