help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

#include in a C file


From: ali hagigat
Subject: #include in a C file
Date: Tue, 30 Nov 2010 11:54:22 +0330

4.13 Generating Prerequisites Automatically
To avoid this hassle, most modern C compilers can write these rules
for you, by looking
at the #include lines in the source files. Usually this is done with
the ‘-M’ option to the
compiler.
The practice we recommend for automatic prerequisite generation is to
have one makefile
corresponding to each source file.
----------------------------------------------------------------------
If compiler generates the necessary prerequisites automatically by -M
option why we need to have one makefile for each source file?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]