version 1.2, 2001/01/28 04:11:03
|
version 1.3, 2001/02/05 02:31:34
|
|
|
|
|
define NEWLINE |
|
|
|
|
|
endef |
|
|
|
DEPEND_MAK = $(OBJ_DIR)/depend.mak | DEPEND_MAK = $(OBJ_DIR)/depend.mak |
| |
|
## |
|
## Notice that the system includes are excluded. That is because this |
|
## depend utility doesn't require that all the includes be resolved (just |
|
## the ones that matter (the ones the user put on the path). |
|
## |
|
|
depend: $(OBJ_DIR)/target $(ERROR) | depend: $(OBJ_DIR)/target $(ERROR) |
@ mu rm $(DEPEND_MAK) |
mu depend -O$(OBJ_DIR) $(INCLUDES) $(SOURCES) > $(DEPEND_MAK) |
@ echo === depend: |
|
$(foreach i, $(SOURCES), \ |
|
@ $(CXX) -P $(FLAGS) $(LOCAL_DEFINES) $(DEFINES) \ |
|
$(PRE_DEPEND_INCLUDES) $(DEPEND_INCLUDES) \ |
|
$(SYS_INCLUDES) $(INCLUDES) $(i) $(NEWLINE) \ |
|
@ mu depend \ |
|
$(subst .cpp,.i,$(i)) $(DEPEND_MAK) $(OBJ_DIR)/ $(NEWLINE) \ |
|
) |
|
| |
clean-depend: | clean-depend: |
$(RM) $(OBJ_DIR)/depend.mak | $(RM) $(OBJ_DIR)/depend.mak |