Added more dependency checking. Object files now depend on Makefile.

This commit is contained in:
Harry Moffat 2008-01-01 19:11:21 +00:00
parent 771b03e646
commit 376f8d5dc2

View file

@ -42,7 +42,8 @@ all: $(LIB) .depends
@(for lh in $(BASE_H) ; do \
$(INSTALL_TSC) "$${lh}" $(INCDIR) ; \
done)
%.d:
%.d: Makefile %.o
@CXX_DEPENDS@ $(CXX_FLAGS) $(CXX_INCLUDES) $*.cpp > $*.d
.cpp.o:
@ -77,6 +78,8 @@ depends:
.depends: $(DEPENDS)
cat $(DEPENDS) > .depends
$(BASE_OBJ): Makefile
TAGS:
etags *.h *.cpp