post_rules.mk (487B)
1 OPT_ENCODER_TYPE ?= default 2 VALID_OPT_ENCODER_TYPES := default simple tiny custom 3 4 ifeq ($(filter $(OPT_ENCODER_TYPE),$(VALID_OPT_ENCODER_TYPES)),) 5 $(call CATASTROPHIC_ERROR,Invalid OPT_ENCODER_TYPE,OPT_ENCODER_TYPE="$(OPT_ENCODER_TYPE)" is not a valid pointing device type) 6 else 7 ifneq ($(strip $(OPT_ENCODER_TYPE)), custom) 8 VPATH += keyboards/ploopyco/common 9 SRC += opt_encoder_$(strip $(OPT_ENCODER_TYPE)).c 10 ANALOG_DRIVER_REQUIRED = yes 11 endif 12 endif