Skip to content

Commit

Permalink
Makefile: rename MAKEFILES -> BUILD_CONFIGURATION
Browse files Browse the repository at this point in the history
MAKEFILES is special and automatically inherited in sub makes.
  • Loading branch information
mahilleb-msft committed Jun 13, 2016
1 parent 3286934 commit cc296fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -672,15 +672,15 @@ DEP := $(patsubst %.o, %.d, $(OBJ))
# will result in the rebuild.
-include ${DEP}
MAKEFILES := Makefile $(BUILD_TOP)/Config.make
$(OBJDIR)/%.o : %.cu $(MAKEFILES)
BUILD_CONFIGURATION := Makefile $(BUILD_TOP)/Config.make
$(OBJDIR)/%.o : %.cu $(BUILD_CONFIGURATION)
@echo $(SEPARATOR)
@echo creating $@ for $(ARCH) with build type $(BUILDTYPE)
@mkdir -p $(dir $@)
$(NVCC) -c $< -o $@ $(COMMON_FLAGS) $(CUFLAGS) $(INCLUDEPATH:%=-I%) -Xcompiler "-fPIC -Werror"
$(OBJDIR)/%.o : %.cpp $(MAKEFILES)
$(OBJDIR)/%.o : %.cpp $(BUILD_CONFIGURATION)
@echo $(SEPARATOR)
@echo creating $@ for $(ARCH) with build type $(BUILDTYPE)
@mkdir -p $(dir $@)
Expand Down

0 comments on commit cc296fc

Please sign in to comment.