Hi, I wrote some Makefiles that we use in a course here. The entire lab skeleton is actually available for download but I have uploaded just the Makefiles to my homepage if you are interested:
It is not perfect but it works ok for me and most students in the course seem to think so as well :) They have been tested in both Linux and cygwin.
I wrote the Makefiles for the following reasons:
- Since they are text based, revision control is easy
- We can avoid the (for now) unstable Project Navigator
- Building a project will not spew lots of temporary files in the project directory. (They will end up in the synthdir directory.)
The Makefile has been tested with ISE 8.1 and 8.2.
I also have a small shell script which I use to build small projects where I haven't bothered to create a Makefile. That is also available on the web page. It is heavily inspired by the Makefile mentioned above.
Some things which would be nice to be able to handle:
- VHDL libraries (not everything should end up in work)
- Don't recompile all files when starting a simulation target
- Mixed VHDL/Verilog in the Makefiles
Tips and tricks for these Makefiles will be gratefully received :) I know that they are a bit ugly at the moment.
/Andreas