Hi,
I am generating some dependency files from gcc -MM.
Each rule in the resulted file is like:Code:Makefile.depend: *.h *.cc Makefile
$(CXX) -MM $(CXXFLAGS) *.cc > Makefile.depend
I want to specify the directory where the object files will be put, i.e.Quote:
main.o : main.cc defs.h \
src/misc.h
How to accomplish by using sed?Quote:
$(BIN_DIR)main.o : main.cc defs.h \
src/misc.h
Note that I am not considering specifying the directories of source but the ones of object files.
Thanks and regards!