qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

rules.mk (2330B)


      1 # Copyright 2021 Simon Arlott
      2 #
      3 # This program is free software: you can redistribute it and/or modify
      4 # it under the terms of the GNU General Public License as published by
      5 # the Free Software Foundation, either version 2 of the License, or
      6 # (at your option) any later version.
      7 #
      8 # This program is distributed in the hope that it will be useful,
      9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
     10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     11 # GNU General Public License for more details.
     12 #
     13 # You should have received a copy of the GNU General Public License
     14 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
     15 
     16 DEBOUNCE_COMMON_DEFS := -DMATRIX_ROWS=4 -DMATRIX_COLS=10 -DDEBOUNCE=5
     17 
     18 DEBOUNCE_COMMON_SRC := $(QUANTUM_PATH)/debounce/tests/debounce_test_common.cpp \
     19 	$(PLATFORM_PATH)/timer.c \
     20 	$(PLATFORM_PATH)/$(PLATFORM_KEY)/timer.c
     21 
     22 debounce_none_DEFS := $(DEBOUNCE_COMMON_DEFS)
     23 debounce_none_SRC := $(DEBOUNCE_COMMON_SRC) \
     24 	$(QUANTUM_PATH)/debounce/none.c \
     25 	$(QUANTUM_PATH)/debounce/tests/none_tests.cpp
     26 
     27 debounce_sym_defer_g_DEFS := $(DEBOUNCE_COMMON_DEFS)
     28 debounce_sym_defer_g_SRC := $(DEBOUNCE_COMMON_SRC) \
     29 	$(QUANTUM_PATH)/debounce/sym_defer_g.c \
     30 	$(QUANTUM_PATH)/debounce/tests/sym_defer_g_tests.cpp
     31 
     32 debounce_sym_defer_pk_DEFS := $(DEBOUNCE_COMMON_DEFS)
     33 debounce_sym_defer_pk_SRC := $(DEBOUNCE_COMMON_SRC) \
     34 	$(QUANTUM_PATH)/debounce/sym_defer_pk.c \
     35 	$(QUANTUM_PATH)/debounce/tests/sym_defer_pk_tests.cpp
     36 
     37 debounce_sym_defer_pr_DEFS := $(DEBOUNCE_COMMON_DEFS)
     38 debounce_sym_defer_pr_SRC := $(DEBOUNCE_COMMON_SRC) \
     39 	$(QUANTUM_PATH)/debounce/sym_defer_pr.c \
     40 	$(QUANTUM_PATH)/debounce/tests/sym_defer_pr_tests.cpp
     41 
     42 debounce_sym_eager_pk_DEFS := $(DEBOUNCE_COMMON_DEFS)
     43 debounce_sym_eager_pk_SRC := $(DEBOUNCE_COMMON_SRC) \
     44 	$(QUANTUM_PATH)/debounce/sym_eager_pk.c \
     45 	$(QUANTUM_PATH)/debounce/tests/sym_eager_pk_tests.cpp
     46 
     47 debounce_sym_eager_pr_DEFS := $(DEBOUNCE_COMMON_DEFS)
     48 debounce_sym_eager_pr_SRC := $(DEBOUNCE_COMMON_SRC) \
     49 	$(QUANTUM_PATH)/debounce/sym_eager_pr.c \
     50 	$(QUANTUM_PATH)/debounce/tests/sym_eager_pr_tests.cpp
     51 
     52 debounce_asym_eager_defer_pk_DEFS := $(DEBOUNCE_COMMON_DEFS)
     53 debounce_asym_eager_defer_pk_SRC := $(DEBOUNCE_COMMON_SRC) \
     54 	$(QUANTUM_PATH)/debounce/asym_eager_defer_pk.c \
     55 	$(QUANTUM_PATH)/debounce/tests/asym_eager_defer_pk_tests.cpp