[Top][All Lists]
[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?
- #include in a C file,
ali hagigat <=
- Re: #include in a C file, Paul Smith, 2010/12/01
- Re: #include in a C file, David Boyce, 2010/12/01
- Re: #include in a C file, ali hagigat, 2010/12/04
- Re: #include in a C file, Sam Ravnborg, 2010/12/04
- Re: #include in a C file, ali hagigat, 2010/12/05
- Re: #include in a C file, Sam Ravnborg, 2010/12/05
- Re: #include in a C file, ali hagigat, 2010/12/05
- Re: #include in a C file, Sam Ravnborg, 2010/12/05