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
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make