aboutsummaryrefslogtreecommitdiffstats
path: root/doc/building/mcode/GNULinux-GNAT.rst
blob: 8443c254fd5663ba24ec806a423e70f7f37245bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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