post_rules.mk 487 B

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