rules.mk 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. DEBOUNCE_COMMON_DEFS := -DMATRIX_ROWS=4 -DMATRIX_COLS=10 -DDEBOUNCE=5
  16. DEBOUNCE_COMMON_SRC := $(QUANTUM_PATH)/debounce/tests/debounce_test_common.cpp \
  17. $(PLATFORM_PATH)/$(PLATFORM_KEY)/timer.c
  18. debounce_none_DEFS := $(DEBOUNCE_COMMON_DEFS)
  19. debounce_none_SRC := $(DEBOUNCE_COMMON_SRC) \
  20. $(QUANTUM_PATH)/debounce/none.c \
  21. $(QUANTUM_PATH)/debounce/tests/none_tests.cpp
  22. debounce_sym_defer_g_DEFS := $(DEBOUNCE_COMMON_DEFS)
  23. debounce_sym_defer_g_SRC := $(DEBOUNCE_COMMON_SRC) \
  24. $(QUANTUM_PATH)/debounce/sym_defer_g.c \
  25. $(QUANTUM_PATH)/debounce/tests/sym_defer_g_tests.cpp
  26. debounce_sym_defer_pk_DEFS := $(DEBOUNCE_COMMON_DEFS)
  27. debounce_sym_defer_pk_SRC := $(DEBOUNCE_COMMON_SRC) \
  28. $(QUANTUM_PATH)/debounce/sym_defer_pk.c \
  29. $(QUANTUM_PATH)/debounce/tests/sym_defer_pk_tests.cpp
  30. debounce_sym_defer_pr_DEFS := $(DEBOUNCE_COMMON_DEFS)
  31. debounce_sym_defer_pr_SRC := $(DEBOUNCE_COMMON_SRC) \
  32. $(QUANTUM_PATH)/debounce/sym_defer_pr.c \
  33. $(QUANTUM_PATH)/debounce/tests/sym_defer_pr_tests.cpp
  34. debounce_sym_eager_pk_DEFS := $(DEBOUNCE_COMMON_DEFS)
  35. debounce_sym_eager_pk_SRC := $(DEBOUNCE_COMMON_SRC) \
  36. $(QUANTUM_PATH)/debounce/sym_eager_pk.c \
  37. $(QUANTUM_PATH)/debounce/tests/sym_eager_pk_tests.cpp
  38. debounce_sym_eager_pr_DEFS := $(DEBOUNCE_COMMON_DEFS)
  39. debounce_sym_eager_pr_SRC := $(DEBOUNCE_COMMON_SRC) \
  40. $(QUANTUM_PATH)/debounce/sym_eager_pr.c \
  41. $(QUANTUM_PATH)/debounce/tests/sym_eager_pr_tests.cpp
  42. debounce_asym_eager_defer_pk_DEFS := $(DEBOUNCE_COMMON_DEFS)
  43. debounce_asym_eager_defer_pk_SRC := $(DEBOUNCE_COMMON_SRC) \
  44. $(QUANTUM_PATH)/debounce/asym_eager_defer_pk.c \
  45. $(QUANTUM_PATH)/debounce/tests/asym_eager_defer_pk_tests.cpp