I've fixed lower case target names in this PR, and fixed one issue exists in makefile we submit.
Now we can compile all targets correctly.
I'll do a further cleanup in the next PR.
Some explanations:
The #4 and #7 lack the macro USE_MAKE, which causes the compiler fall into the #ifndef case in target.h. In this case, no matter what target we make, the output target .bin is still the target defined by #ifndef then #define MP6531.
So we need this USE_MAKE macro.
But the original command in makefile line: 33 -MF"$(@:%.o=%.d)" makes the line: 34 -D$(TARGET) be ignored. So we need to exchange these two lines.
Tested on make ALL, all targets were compiled and built correctly.
I've fixed lower case target names in this PR, and fixed one issue exists in makefile we submit.
Now we can compile all targets correctly.
I'll do a further cleanup in the next PR.
Some explanations:
The #4 and #7 lack the macro
USE_MAKE
, which causes the compiler fall into the#ifndef
case intarget.h
. In this case, no matter what target wemake
, the output target.bin
is still the target defined by#ifndef
then#define MP6531
.So we need this USE_MAKE macro.
But the original command in makefile line: 33
-MF"$(@:%.o=%.d)"
makes the line: 34-D$(TARGET)
be ignored. So we need to exchange these two lines.Tested on
make ALL
, all targets were compiled and built correctly.