2004-06-05 Casper S. Hornstrup <chorns@users.sourceforge.net>

* tools/helper.mk: Skip automatic dependency tracking if
	DEPENDENCIES=no.

svn path=/trunk/; revision=9621
This commit is contained in:
Casper Hornstrup 2004-06-05 10:47:27 +00:00
parent f79f677f01
commit 97d7e660f0
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2004-06-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
* tools/helper.mk: Skip automatic dependency tracking if
DEPENDENCIES=no.
2004-05-31 Casper S. Hornstrup <chorns@users.sourceforge.net>
* include/reactos/version.h (KERNEL_VERSION_BUILD_TYPE): Replace possible

View file

@ -2,12 +2,10 @@
# Define $DEP_OBJECTS before this file is included
# $DEP_OBJECTS contain a list of object files that are checked for dependancies
ifneq ($(DEPENDENCIES),no)
DEP_FILTERED := $(filter-out $(DEP_EXCLUDE_FILTER), $(DEP_OBJECTS:.o=.d))
DEP_FILES := $(join $(dir $(DEP_FILTERED)), $(addprefix ., $(notdir $(DEP_FILTERED))))
# I (Andrew Greenwood) had to add this to compile under MinGW:
# SEP = /
ifneq ($(MAKECMDGOALS),clean)
-include $(DEP_FILES)
@ -36,3 +34,5 @@ endif
.%.d: %.asm $(PATH_TO_TOP)/tools/depends$(EXE_POSTFIX) $(GENERATED_HEADER_FILES)
$(NASM_CMD) $(NFLAGS) -M $< | $(DEPENDS_PATH)$(SEP)depends$(EXE_POSTFIX) $(@D) $@
endif