Browse Source

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

sbg
px4dev 12 years ago
parent
commit
2135628254
  1. 13
      makefiles/module.mk

13
makefiles/module.mk

@ -183,11 +183,16 @@ CXXFLAGS += -fvisibility=$(DEFAULT_VISIBILITY) -include $(PX4_INCLUDE_DIR)visibi @@ -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) @@ -219,3 +224,5 @@ $(MODULE_OBJ): $(OBJS) $(GLOBAL_DEPS)
clean:
$(Q) $(REMOVE) $(MODULE_PRELINK) $(OBJS)
-include $(DEPS)

Loading…
Cancel
Save