07-25-07 12:20 PM
On Jul 25, 9:48 am, Chris Torek <nos...@torek.net> wrote:
> In article <1185335243.469457.307...@j4g2000prf.googlegroups.com>
>
> <dennis.vargh...@wipro.com> wrote:
>
> [much snippage]
>
>
> Besides the other reply you got, this line is somewhat dangerous:
> it gives "make" a rule to convert a ".o" file into a ".c" file.
> You want the opposite -- a method of converting a ".c" file into
> a ".o" file.
>
> Luckily for you, that rule is built-in, and reads, in effect:
>
> .c.o:
> $(CC) $(CFLAGS) -c $<
>
> (note that this is two separate lines). You will not get your
> $(INCLUDES) expanded, since it is not part of $(CC) nor $(CFLAGS)
> (but if you put your -I directives into CFLAGS, you will not need
> your own rule anyway).
> --
> In-Real-Life: Chris Torek, Wind River Systems
> Salt Lake City, UT, USA (40=B039.22'N, 111=B050.29'W) +1 801 277 2603
> email: forget about it http://web.torek.net/torek/index.html
> Reading email is like searching for food in the garbage, thanks to spamme=
rs.
Hi chris ,
Thanks for your reply .
i first did try to put both on saperate lines . e.g.
.c.o: lib/aps.h
$(CC) $(CFLAGS) $(INCLUDES) -c $<
But to this line i get an error -
*** missing separator. Stop. How do i solve this error .
[ Post a follow-up to this message ]
|