ghdl / ghdl-cosim

Documentation with code examples about interfacing VHDL with foreign languages and tools through GHDL
https://ghdl.github.io/ghdl-cosim
Apache License 2.0
46 stars 9 forks source link

Makefiles #24

Open radonnachie opened 4 years ago

radonnachie commented 4 years ago

I have taken the intvector subexamples and updated their execution from run.sh files to makefiles.

After discussing possible formatting of the makefiles and perhaps its contents, this PR's changes will be expanded to update all examples to a makefile execution. @umarcor will be tackling the appropriate CI changes.

As of the moment, run.sh files are renamed to old_run.sh files so that the output of the makefiles can be compared.

The first rule in each makefile is the default rule executed, afresh will clean and then run. This is triggered by make

All makefile rules can be called by specifying the target (argument left of the rule's ':') after make: eg make run

make echoes each command before executing it, unless the line starts with @... I have left all lines, excepting echoes, to be echoed as I like the transparency that echoing the commands provides.