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: Sam Ravnborg
Subject: Re: Problem in suffix of target
Date: Tue, 16 Jun 2009 17:39:04 +0200
User-agent: Mutt/1.4.2.1i

On Tue, Jun 16, 2009 at 03:48:32AM -0700, djupadhyay wrote:
> 
> CG_TOOLS=C:\CCStudio_v3.3\C6000\cgtools
> CG_TOOLS_INCLUDE=$(CG_TOOLS)\include
> CG_TOOLS_BIN=$(CG_TOOLS)\bin
> 
> LIB_BASE_PATH="..\..\..\lib"
> LIB_INCLUDE_PATH= -i inc -i $(CG_TOOLS_INCLUDE)
> 
> 
> CC=$(CG_TOOLS_BIN)\cl6x
> AR=$(CG_TOOLS_BIN)\ar6x
> 
> SRC=src\avcdbits.c \
> src\avcdcabc.c        \
> src\avcdcnfg.c        \
> src\avcdcvlc.c        \
> src\avcddblf.c        \
> src\avcddpb.c \
> src\avcddtl.c \
> src\avcderrc.c        \
> src\avcdexp.c \
> src\avcdfal.c \
> src\avcdifce.c        \
> src\avcdmain.c        \
> src\avcdmb.c  \
> src\avcdnal.c \
> src\avcdparm.c        \
> src\avcdslc.c \
> src\avcdblk.c \
> src\TEL_Malloc.c
> 
> CFLAGS=
> LINK=
> INCLUDE=$(LIB_INCLUDE_PATH)
> LIB=AVCDLib.lib
> RM=del
> AR_OPT=-r
> COMPILE_OPTION=-o3
> OBJS=$(SRC:.c=.obj)
> MAPS=$(SRC:.c=.map)
> PROCESSOR_OPT=-mv6400
> OBJ_PATH=env\Release\
> FILE_OPT=-fr "D:\users\Common\AVCD_PR13_main_profile\lib\env\Release\"
> 
> #all:${OBJS}
> all:${OBJS}
>       ${AR} ${AR_OPT} ${LIB} ${OBJS}
> 
> ./env/Relase/%.obj:%.c
>       ${CC} ${COMPILE_OPTION} ${INCLUDE} ${CFLAGS} ${PROCESSOR_OPT} $<
> clean:
>       - ${RM} ${EXE}
>       - ${RM} ${OBJS}
>       - ${RM} ${MAPS}
> 
> rebuild: clean all
> 
> 
> One error is coming that src/filename.obj not found.
> I am not able to build it.

There is nothing in the Makefil you posted that references "filename".
Are you really sure this is the correct error message?

I do not know your C compiler, but I see nothing telling
the C compiler the name of the generated .o file.
Looks like a "-o $@" or somthing like that is missing.

Try to experiment a little with calling C compiler by hand
and see if it does what you expect.
And check if your Makefile produce the command you
really expects it to do.

It this fails try to be a bit more precise in the problem you see.

        Sam




reply via email to

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