Advanced compiling
-
Another, more advanced option is to create a so-called Makefile.
In this file you would store all information required for compiling
and then just type
make
to compile and link. This option is the more attractive the more
dependencies you have within your file structure. For some examplatory
Makefile, look [here].
-
There is an even more advanced option. This option boils down to
automatically create makefiles such that compilers and their flags are
selected according to what the computer provides. The user then only
has to feed in the dependencies, i.e. to name source-files and
include-files and how they are connected with each other.
This option is particularly useful for programs you want to provide to
others and for huge programs contained in some subdirectories.
The environment you need for that goes under the name configure. I'll
provide more information later on.
[prev]
[top]
|