added path filtering

This commit is contained in:
Jeff Hill
2002-07-03 15:03:22 +00:00
parent 51e7a0d97a
commit b88f3127e4
2 changed files with 7 additions and 6 deletions

View File

@@ -263,8 +263,9 @@ LDCMD = $(LD) -o $@ $^
#--------------------------------------------------
# Build compile line here
COMPILE.c = $(CC) -c $(CPPFLAGS) $(CFLAGS) $(INCLUDES) $(SOURCE_FLAG)
COMPILE.cpp = $(CCC) -c $(CPPFLAGS) $(CXXFLAGS) $(INCLUDES) $(SOURCE_CXXFLAG)
PATH_FILTER = $(1)
COMPILE.c = $(CC) -c $(CPPFLAGS) $(CFLAGS) $(call PATH_FILTER,$(INCLUDES)) $(SOURCE_FLAG)
COMPILE.cpp = $(CCC) -c $(CPPFLAGS) $(CXXFLAGS) $(call PATH_FILTER,$(INCLUDES)) $(SOURCE_CXXFLAG)
#--------------------------------------------------
# Build depends command here

View File

@@ -203,7 +203,7 @@ ifeq ($(HDEPENDS),YES)
@$(HDEPENDS_TARGETS_CMD) $*$(DEP)
endif
@$(RM) $@
$(COMPILE.c) $<
$(COMPILE.c) $(call PATH_FILTER,$<)
%$(OBJ): %.cc
ifeq ($(HDEPENDS),YES)
@@ -212,7 +212,7 @@ ifeq ($(HDEPENDS),YES)
@$(HDEPENDS_TARGETS_CMD) $*$(DEP)
endif
@$(RM) $@
$(COMPILE.cpp) $< $(COMPILE_FILTER.cpp)
$(COMPILE.cpp) $(call PATH_FILTER,$<) $(COMPILE_FILTER.cpp)
%$(OBJ): %.cpp
ifeq ($(HDEPENDS),YES)
@@ -221,7 +221,7 @@ ifeq ($(HDEPENDS),YES)
@$(HDEPENDS_TARGETS_CMD) $*$(DEP)
endif
@$(RM) $@
$(COMPILE.cpp) $< $(COMPILE_FILTER.cpp)
$(COMPILE.cpp) $(call PATH_FILTER,$<) $(COMPILE_FILTER.cpp)
%$(OBJ): %.C
ifeq ($(HDEPENDS),YES)
@@ -230,7 +230,7 @@ ifeq ($(HDEPENDS),YES)
@$(HDEPENDS_TARGETS_CMD) $*$(DEP)
endif
@$(RM) $@
$(COMPILE.cpp) $< $(COMPILE_FILTER.cpp)
$(COMPILE.cpp) $(call PATH_FILTER,$<) $(COMPILE_FILTER.cpp)
# WIN95/NT resource compiler
%$(RES): %.rc