Fixed path separator issue for people using cmd instead of sh

svn path=/trunk/; revision=2665
This commit is contained in:
Phillip Susi 2002-03-03 17:52:01 +00:00
parent f090eec7df
commit 16c7c6fa94

View file

@ -10,8 +10,11 @@ ifneq ($(MAKECMDGOALS),clean)
include $(DEP_FILES)
endif
ifeq ($(SEP),\)
DEPENDS_PATH := $(subst /,\,$(PATH_TO_TOP))\tools
else
DEPENDS_PATH := $(PATH_TO_TOP)/tools
endif
.%.d: %.c $(PATH_TO_TOP)/tools/depends$(EXE_POSTFIX)
$(CC) $(CFLAGS) -M $< | $(DEPENDS_PATH)$(SEP)depends$(EXE_POSTFIX) $(@D) $@