help-make
[Top][All Lists]
Advanced

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

Re: Problem in suffix of target


From: Paul Smith
Subject: Re: Problem in suffix of target
Date: Tue, 16 Jun 2009 12:01:23 -0400

On Tue, 2009-06-16 at 03:48 -0700, djupadhyay wrote:

> SRC=src\avcdbits.c \
> src\avcdcabc.c        \

when using GNU make you should always, always use forward slashes
throughout your makefile if possible.  Backslashes don't tend to work
that well in various situations.

> OBJS=$(SRC:.c=.obj)

> ./env/Relase/%.obj:%.c
>       ${CC} ${COMPILE_OPTION} ${INCLUDE} ${CFLAGS} ${PROCESSOR_OPT} $<

> One error is coming that src/filename.obj not found.

You're setting SRC to values like src\avcdbits.c etc.

Then you set OBJS to the contents of SRC with the .c replaced with .obj,
so now OBJS is set to values like src\avcdbits.obj

Then you tell make how to build ./env/Release/%.obj but that does not
match files like src\avcdbits.obj

Then you say "all" depends on OBJS.

Make can't figure out how to build a file like src\avcdbits.obj





reply via email to

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