C files searching and Linking

Dear friends,

 First off all , let me apologize for my inexperience. I am just starting use of Linux and gcc .

Actually I ve some .c files in the present directory , and now I am 

giving

 +vc <my_file1.c> <my.file2.c> <myfile3.c>. 

All the c files are in present directory. Then my Vcs Tool automatically calls the gcc command for me ..
Like

gcc  -pipe -m32 -O -I/user/vcs_mx/2006.06/include -c ./my_file1.c
gcc  -pipe -m32 -O -I/user/vcs_mx/2006.06/include -c ./my_file2.c
gcc  -pipe -m32 -O -I/user/vcs_mx/2006.06/include -c ./my_file3.c

But my problem is I want to store all these .c files in a src directory and call it from there..But not using absolute path name for all files..

I guess there -Idir/Ldir for directory search , But I tried seems to be not working .

Thanks for your help..

Regards,

Can you not write a makefile for it ? Overwrite the VCS action to call make on the makefile instead of calling gcc directly (if it is possible).

Thanks for your kind reply ..

Actually Now I am having a shell script inside which I am using the vcs command like

vcs -mhdl -q -R -l   \
        +incdir+${RTL_INCLUDE}+${RTL_VENCH}+./test.cmd \
        +vc  file_read.c rf_model.c adc_mdl.c \

Here the last line calls my c files in my present directory..
But I can edit the last line as so that it links my lib(.so file) or search the directory where all my c files resides..

+vc -gcc <anyoption of gcc compiler>  

I am extreamly sorry to give some tool information for c file compilation to this forum
I Think it would support my explanation If I provide some VCS Tool information here..

Useful Compile-Time Options
VCS has other compile-time options that are not specially for DirectC
but you might find them useful when enabling and calling C/C++
functions in your Verilog source code.
-cc
Specifies the C compiler (default is cc in your search path)
-cpp
Specifies the C++ compiler (default is CC in your search path)
-ld
Specifies the linker for final linking to build simv (default is the
same as the C++ compiler)
Note:
Don't specify incompatible C++ compiler and linker (by specifying
-cpp and -ld simultaneously. That may result in compile failure
with unrecognized symbols.
These options may be necessary on the vcs command line. If you
include object files on the command line, you must include the options
to specify which compiler and linker generated these object files.

I need help Badly..

Regards,
Prady