Xiangfu Liu wrote:
> this is my first version Makefile for milkymist.git.

Looks promising ! A global "make clean" is already very valuable.
Maybe you could make this a bit more compact by using a loop,
e.g., like here:

http://projects.qi-hardware.com/index.php/p/ben-wpan/source/tree/master/makefiles/Makefile.recurse

Then you just need to define DIRS (or, this case, maybe
SW_DIRS, SOC_DIRS, etc.). DIRS would be just a list of directories,
e.g., like here

http://projects.qi-hardware.com/index.php/p/ben-wpan/source/tree/master/tools/Makefile

It would also be good if just "make" did something that either
corresponds to building "all you need" or maybe just prints a
list of targets. "All you need" is a bit difficult in this case,
because this may involve major external dependencies, such as
the Xilinx tools. But perhaps building the BIOS and all the
libraries and headers Flickernoise and RTEMS need would be a
start.

> I will try to make the output is more like kernel style.
[...]
> needs search more info about how to handle those make output.

Maybe this will help to illustrate the concept:

http://projects.qi-hardware.com/index.php/p/ben-wpan/source/tree/master/tools/Makefile.common

A more complex example would be here:

http://projects.qi-hardware.com/index.php/p/fped/source/tree/master/Makefile

- Werner
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode

Reply via email to