Makefile修正。
@@ -2,8 +2,8 @@ | ||
2 | 2 | #include "test.h" |
3 | 3 | |
4 | 4 | TestSuite suites[] = { |
5 | - { "test_1", test_1_setup, test_1_teardown, test_1_cases }, | |
6 | - { "test_2", 0, 0, test_2_cases }, | |
5 | + { "test_1", test_1_cases, test_1_setup, test_1_teardown }, | |
6 | + { "test_2", test_2_cases, test_1_setup, 0 }, | |
7 | 7 | TEST_SUITE_NULL, |
8 | 8 | }; |
9 | 9 |
@@ -33,12 +33,12 @@ | ||
33 | 33 | |
34 | 34 | main.o: ../UnitTest.h test.h |
35 | 35 | test.h: ../UnitTest.h |
36 | -test_1.o: test.h | |
37 | -test_2.o: test.h | |
36 | +test_1.o: test.h ../UnitTest.h | |
37 | +test_2.o: test.h ../UnitTest.h | |
38 | 38 | |
39 | 39 | ../UnitTest.o: ../TestSuite.h ../LibcImpl.h |
40 | 40 | ../TestCase.h: ../UnitTest.h |
41 | -../TestCase.o: ../TestCase.h ../LibcImpl.h | |
41 | +../TestCase.o: ../TestCase.h ../LibcImpl.h ../UnitTest.h | |
42 | 42 | ../TestSuite.h: ../UnitTest.h |
43 | -../TestSuite.o: ../TestCase.h ../TestSuite.h ../LibcImpl.h | |
43 | +../TestSuite.o: ../TestCase.h ../TestSuite.h ../LibcImpl.h ../UnitTest.h | |
44 | 44 | ../LibcImpl.o: ../LibcImpl.h ../UnitTest.h |
@@ -22,9 +22,9 @@ | ||
22 | 22 | clean: |
23 | 23 | rm -f *.o *.a |
24 | 24 | |
25 | -UnitTest.o: TestSuite.h LibcImpl.h | |
25 | +UnitTest.o: TestSuite.h LibcImpl.h UnitTest.h | |
26 | 26 | TestCase.h: UnitTest.h |
27 | -TestCase.o: TestCase.h LibcImpl.h | |
27 | +TestCase.o: TestCase.h LibcImpl.h UnitTest.h | |
28 | 28 | TestSuite.h: UnitTest.h |
29 | -TestSuite.o: TestCase.h TestSuite.h LibcImpl.h | |
29 | +TestSuite.o: TestCase.h TestSuite.h LibcImpl.h UnitTest.h | |
30 | 30 | LibcImpl.o: LibcImpl.h UnitTest.h |