Hotfix: dependency scanning for modules was totally broken. Fix it so that changes to depended headers correctly cause modules to be rebuilt.

This commit is contained in:
px4dev
2013-05-23 00:08:35 +02:00
parent c6b6b7ffcd
commit 2135628254
+10 -3
View File
@@ -183,11 +183,16 @@ CXXFLAGS += -fvisibility=$(DEFAULT_VISIBILITY) -include $(PX4_INCLUDE_DIR)visibi
#
module: $(MODULE_OBJ) $(MODULE_COMMAND_FILES)
##
## Object files we will generate from sources
##
#
# Object files we will generate from sources
#
OBJS = $(addsuffix .o,$(SRCS))
#
# Dependency files that will be auto-generated
#
DEPS = $(addsuffix .d,$(SRCS))
#
# SRCS -> OBJS rules
#
@@ -219,3 +224,5 @@ $(MODULE_OBJ): $(OBJS) $(GLOBAL_DEPS)
clean:
$(Q) $(REMOVE) $(MODULE_PRELINK) $(OBJS)
-include $(DEPS)