[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: #include in a C file
From: |
Paul Smith |
Subject: |
Re: #include in a C file |
Date: |
Mon, 06 Dec 2010 11:22:35 -0500 |
On Mon, 2010-12-06 at 14:56 +0330, ali hagigat wrote:
> Dear Sam,
> You never answered my latest questions!!
> Does this rule have a recipe?!!:
> main.o main.d : main.c defs.h
When multiple targets appear in an explicit context, it's the same as
writing each target individually. We've explained this before.
So the above statement is identical to writing:
main.o : main.c defs.h
main.d : main.c defs.h
So if you have an implicit or explicit rule for those
targets/prerequisites, then yes, you have a recipe.
For example, in the text you quoted:
> >> %.d: %.c
>>> <recipe>
so yes, that target has a recipe. One assumes the there is also a rule
somewhere (the builtin rule if nothing else) saying how to build a .o
from a .c, so yes, that has a recipe as well.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
- Re: #include in a C file, (continued)
- 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
- Re: #include in a C file, ali hagigat, 2010/12/06
- Re: #include in a C file, Sam Ravnborg, 2010/12/06
- Re: #include in a C file, ali hagigat, 2010/12/06
- Re: #include in a C file,
Paul Smith <=
- Re: #include in a C file, ali hagigat, 2010/12/07
- Re: #include in a C file, Noel David Torres Taño, 2010/12/07
- Re: #include in a C file, Sam Ravnborg, 2010/12/06
- Re: #include in a C file, Björn Michaelsen, 2010/12/04