${CXX} ${CXXFLAGS} -o ${TARGET} $^ ${LIBS}
@echo ""
-.PHONY: depend
-depend: ${SRCS}
- ${CXX} -MM $^ > ${DEPENDS}
-
# how to make a depend file from a source file
%.d: %.cpp
@echo "DEP: $@"
.PHONY: clean
clean:
- rm -f ${OBJS} ${TARGET} *~ prof gmon.out
+ rm -f ${OBJS} ${TARGET}
.PHONY: distclean
distclean: clean
- rm -f tags ${DEPENDS}
+ rm -f ${DEPENDS} tags prof gmon.out
tags: ${SRCS}
ctags $^