1998-09-02 18:23:57 -04:00
|
|
|
depend::
|
|
|
|
@echo "$(CXX) -MM \
|
|
|
|
$(WX_INCLUDES) \
|
|
|
|
$(ADD_COMPILE) \
|
1998-11-12 11:02:36 -05:00
|
|
|
$(LIB_SRC) $(LIB_C_SRC) $(LIB_CPP_SRC) $(BIN_SRC) $(BIN2_SRC)"
|
1998-09-02 18:23:57 -04:00
|
|
|
@(cd .. ;\
|
|
|
|
$(CXX) -MM \
|
|
|
|
$(WX_INCLUDES) \
|
|
|
|
$(ADD_COMPILE) \
|
1998-11-12 11:02:36 -05:00
|
|
|
$(LIB_SRC) $(LIB_C_SRC) $(LIB_CPP_SRC) $(BIN_SRC) $(BIN2_SRC)\
|
1998-09-02 18:23:57 -04:00
|
|
|
) > .depend
|
|
|
|
@cp Makefile Makefile.bak
|
1998-11-12 11:02:36 -05:00
|
|
|
@cat Makefile.bak | sed -e '/^# DO NOT DELETE/q' > Makefile1
|
1998-09-02 18:23:57 -04:00
|
|
|
@echo "# DO NOT DELETE" >> Makefile1
|
1998-11-12 11:02:36 -05:00
|
|
|
@cat .depend | sed 's/^\(.\+\.o\ *:\ *\)\([^\ ]\+\/\)/\2\1\2/g' >> Makefile1
|
1998-09-02 18:23:57 -04:00
|
|
|
@mv Makefile1 Makefile
|
|
|
|
@rm .depend
|
|
|
|
|