Commit | Line | Data |
---|---|---|
30f22d45 FS |
1 | # Copyright 2017 Fred Sundvik |
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 | |
7424261d FS |
14 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | ||
7424261d FS |
16 | #include $(TMK_PATH)/protocol.mk |
17 | ||
18 | TEST_PATH=tests/$(TEST) | |
19 | ||
3bb0586a | 20 | $(TEST)_SRC= \ |
7d799627 | 21 | $(TEST_PATH)/keymap.c \ |
3bb0586a FS |
22 | $(TMK_COMMON_SRC) \ |
23 | $(QUANTUM_SRC) \ | |
a5b0f4de | 24 | $(SRC) \ |
3bb0586a | 25 | tests/test_common/matrix.c \ |
bd1729d5 | 26 | tests/test_common/test_driver.cpp \ |
36f820be FS |
27 | tests/test_common/keyboard_report_util.cpp \ |
28 | tests/test_common/test_fixture.cpp | |
0256cd8c FS |
29 | $(TEST)_SRC += $(patsubst $(ROOTDIR)/%,%,$(wildcard $(TEST_PATH)/*.cpp)) |
30 | ||
a5b0f4de | 31 | $(TEST)_DEFS=$(TMK_COMMON_DEFS) $(OPT_DEFS) |
8674f9c4 | 32 | $(TEST)_CONFIG=$(TEST_PATH)/config.h |
4e69a8bd | 33 | VPATH+=$(TOP_DIR)/tests/test_common |