X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=blobdiff_plain;f=src%2FMakefile;h=3eb3e597c7385857189a69aa7a1a44a5fc833078;hp=9f7a154f39c2c495dd3d42651955da673c28b84d;hb=a68587cf59ffe62f426309963382c4a6a9015ed7;hpb=e4d7555ada4b164f6ee12019356bdb0a12c5fbf9 diff --git a/src/Makefile b/src/Makefile index 9f7a154..3eb3e59 100644 --- a/src/Makefile +++ b/src/Makefile @@ -66,7 +66,7 @@ ${TARGET}: ${OBJS} # rule to make a depend file from a .cpp ${DEPSDIR}%.d: %.cpp ${Q1}echo "DEP: $@" - ${Q2}${CXX} -MM ${CXXFLAGS} $< | sed 's,: , $@: ,' > $@ + ${Q2}${CXX} -MM ${CXXFLAGS} $< | sed 's,\(^.*\):,${OBJSDIR}\1 $@:,' > $@ # rule to make an object file from a .cpp ${OBJSDIR}%.o: %.cpp