Re: Make file with objects in one directory

2006-08-21 Thread Henrik Carlqvist
"Kiran" <[EMAIL PROTECTED]> wrote: > I have the following, but it compiles into the source itself. > %.o:%.c >$(CC) -c $< -o $@ The above pattern and way to call your compiler will place the object file in the same directory as the source file. The rule uses "%" as a pattern and the string re

Make file with objects in one directory

2006-08-20 Thread Kiran
Hi, I am new to unix make and so, this question may sound little silly. But please help. I need to compile a list of .c and .cpp source files that are in a big directory structure. Ex: /code_root /design/tools/test1.c /design/tools/test2.c /design/src/tcpstack.cpp /design/src/tcpsrlze.c /de