Hi Everybody,
Here's what I want to do...
I have c source files in several directories, and I want the object files
created from these files to be placed in a single directory. I am using the
following in my makefile,
dependencies.in:
$(CC) -MM ${CFLAGS} $(SOURCES) > $@
where CFLAGS has the usual meaning and SOURCES is a list of all the c
source files, (with path information). The problem is that the
dependencies.in file created from this command places the object files in
the same directory as the c file it is made from. Also the default rule no
longer applies because the object and c files are not together.
How can I create dependencies.in with the correct information?
Thanks
John