@@ -22,10 +22,15 @@ Output/%.s: %.c Output/.dir $(INCLUDES)
22
22
-S ${PROJ_SRC_DIR} /$* .c -o Output/$* .first.s
23
23
-$(LLVMCC ) $(CPPFLAGS ) $(CFLAGS ) $(LOPTFLAGS ) $(X_TARGET_FLAGS ) -Os \
24
24
-fno-verbose-asm -S ${PROJ_SRC_DIR} /$* .c -o Output/$* .second.s
25
+ echo " ---------------------------------------------------------------" \
26
+ > Output/$* .dbgopt.report.txt; \
27
+ echo " >>> ========= '$* ' Program" >> Output/$* .dbgopt.report.txt; \
28
+ echo " ---------------------------------------------------------------\n" \
29
+ >> Output/$* .dbgopt.report.txt;
25
30
@-if diff Output/$* .first.s Output/$* .second.s > $@ ; then \
26
- echo " --------- TEST-PASS: $* " > Output/$* .dbgopt.report.txt; \
31
+ echo " TEST: PASS " > > Output/$* .dbgopt.report.txt; \
27
32
else \
28
- echo " --------- TEST-FAIL: $* " > Output/$* .dbgopt.report.txt; \
33
+ echo " TEST: FAIL " > > Output/$* .dbgopt.report.txt; \
29
34
fi
30
35
31
36
Output/% .s : % .cpp Output/.dir $(INCLUDES )
@@ -34,10 +39,15 @@ Output/%.s: %.cpp Output/.dir $(INCLUDES)
34
39
-S ${PROJ_SRC_DIR} /$* .cpp -o Output/$* .first.s
35
40
-$(LLVMCC ) $(CPPFLAGS ) $(CFLAGS ) $(LOPTFLAGS ) $(X_TARGET_FLAGS ) -Os -S \
36
41
-fno-verbose-asm ${PROJ_SRC_DIR} /$* .cpp -o Output/$* .second.s
42
+ echo " ---------------------------------------------------------------" \
43
+ > Output/$* .dbgopt.report.txt; \
44
+ echo " >>> ========= '$* ' Program" >> Output/$* .dbgopt.report.txt; \
45
+ echo " ---------------------------------------------------------------\n" \
46
+ >> Output/$* .dbgopt.report.txt;
37
47
@-if diff Output/$* .first.s Output/$* .second.s > $@ ; then \
38
- echo " --------- TEST-PASS: $* " > Output/$* .dbgopt.report.txt; \
48
+ echo " TEST: PASS " > > Output/$* .dbgopt.report.txt; \
39
49
else \
40
- echo " --------- TEST-FAIL: $* " > Output/$* .dbgopt.report.txt; \
50
+ echo " TEST: FAIL " > > Output/$* .dbgopt.report.txt; \
41
51
fi
42
52
43
53
Output/% .s : % .cc Output/.dir $(INCLUDES )
@@ -46,10 +56,15 @@ Output/%.s: %.cc Output/.dir $(INCLUDES)
46
56
-S ${PROJ_SRC_DIR} /$* .cc -o Output/$* .first.s
47
57
-$(LLVMCC ) $(CPPFLAGS ) $(CFLAGS ) $(LOPTFLAGS ) $(X_TARGET_FLAGS ) -Os -S \
48
58
-fno-verbose-asm ${PROJ_SRC_DIR} /$* .cc -o Output/$* .second.s
59
+ echo " ---------------------------------------------------------------" \
60
+ > Output/$* .dbgopt.report.txt; \
61
+ echo " >>> ========= '$* ' Program" >> Output/$* .dbgopt.report.txt; \
62
+ echo " ---------------------------------------------------------------\n" \
63
+ >> Output/$* .dbgopt.report.txt;
49
64
@-if diff Output/$* .first.s Output/$* .second.s > $@ ; then \
50
- echo " --------- TEST-PASS: $* " > Output/$* .dbgopt.report.txt; \
65
+ echo " TEST: PASS " > > Output/$* .dbgopt.report.txt; \
51
66
else \
52
- echo " --------- TEST-FAIL: $* " > Output/$* .dbgopt.report.txt; \
67
+ echo " TEST: FAIL " > > Output/$* .dbgopt.report.txt; \
53
68
fi
54
69
55
70
Output/% .s : % .m Output/.dir $(INCLUDES )
@@ -58,10 +73,15 @@ Output/%.s: %.m Output/.dir $(INCLUDES)
58
73
-S ${PROJ_SRC_DIR} /$* .m -o Output/$* .first.s
59
74
-$(LLVMCC ) $(CFLAGS ) $(LOPTFLAGS ) $(X_TARGET_FLAGS ) -Os -S \
60
75
-fno-verbose-asm ${PROJ_SRC_DIR} /$* .m -o Output/$* .second.s
76
+ echo " ---------------------------------------------------------------" \
77
+ > Output/$* .dbgopt.report.txt; \
78
+ echo " >>> ========= '$* ' Program" >> Output/$* .dbgopt.report.txt; \
79
+ echo " ---------------------------------------------------------------\n" \
80
+ >> Output/$* .dbgopt.report.txt;
61
81
@-if diff Output/$* .first.s Output/$* .second.s > $@ ; then \
62
- echo " --------- TEST-PASS: $* " > Output/$* .dbgopt.report.txt; \
82
+ echo " TEST: PASS " > > Output/$* .dbgopt.report.txt; \
63
83
else \
64
- echo " --------- TEST-FAIL: $* " > Output/$* .dbgopt.report.txt; \
84
+ echo " TEST: FAIL " > > Output/$* .dbgopt.report.txt; \
65
85
fi
66
86
67
87
Output/% .s : % .mm Output/.dir $(INCLUDES )
@@ -70,10 +90,15 @@ Output/%.s: %.mm Output/.dir $(INCLUDES)
70
90
-S ${PROJ_SRC_DIR} /$* .mm -o Output/$* .first.s
71
91
-$(LLVMCC ) $(CPPFLAGS ) $(CFLAGS ) $(LOPTFLAGS ) $(X_TARGET_FLAGS ) -Os -S \
72
92
-fno-verbose-asm ${PROJ_SRC_DIR} /$* .mm -o Output/$* .second.s
93
+ echo " ---------------------------------------------------------------" \
94
+ > Output/$* .dbgopt.report.txt; \
95
+ echo " >>> ========= '$* ' Program" >> Output/$* .dbgopt.report.txt; \
96
+ echo " ---------------------------------------------------------------\n" \
97
+ >> Output/$* .dbgopt.report.txt;
73
98
@-if diff Output/$* .first.s Output/$* .second.s > $@ ; then \
74
- echo " --------- TEST-PASS: $* " > Output/$* .dbgopt.report.txt; \
99
+ echo " TEST: PASS " > > Output/$* .dbgopt.report.txt; \
75
100
else \
76
- echo " --------- TEST-FAIL: $* " > Output/$* .dbgopt.report.txt; \
101
+ echo " TEST: FAIL " > > Output/$* .dbgopt.report.txt; \
77
102
fi
78
103
79
104
Asms := $(sort $(addsuffix .s, $(notdir $(basename $(Source ) ) ) ) )
0 commit comments