diff options
Diffstat (limited to 'doc/building/mcode/GNULinux-GNAT.rst')
-rw-r--r-- | doc/building/mcode/GNULinux-GNAT.rst | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/building/mcode/GNULinux-GNAT.rst b/doc/building/mcode/GNULinux-GNAT.rst new file mode 100644 index 000000000..8443c254f --- /dev/null +++ b/doc/building/mcode/GNULinux-GNAT.rst @@ -0,0 +1,27 @@ +.. _BUILD:mcode:GNULinux-GNAT: + +GHDL with mcode backend build on GNU/Linux with GCC/GNAT +######################################################## + +On Linux, GHDL is configured by ``configure`` and build by ``make``. + +* First, GHDL needs to be configured. It is common to specify a ``PREFIX`` + (installation directory like ``/usr/local`` or ``/opt/ghdl``). Without any + other option, ``configure`` select `mcode` as backend. + +* Next, ``make`` starts the compilation process. + +* Finally, ``make install`` installs GHDL into the installation directory + specified by ``PREFIX``. You may need super user privileges (``sudo ...``). + + +.. rubric:: Example: + +.. code-block:: Bash + + cd <ghdl> + mkdir build + cd build + ../configure --prefix=PREFIX + make + sudo make install |