include module.mk
# process what the module.mks defined
-OBJ := $(patsubst %.cxx,%.o, $(filter %.cxx,$(SRC)))
+OBJ := $(patsubst %.cpp,%.o, $(filter %.cpp,$(SRC)))
DEPS := $(OBJ:.o=.d)
targets: $(TARGETLIBS) $(TARGETBINS)
$(CXX) -MM -MF $3 -MP -MT $2 $(CFLAGS) $(CXXFLAGS) $1
endef
-%.d: %.cxx
+%.d: %.cpp
$(call make-depend,$<,$@,$(subst .o,.d,$@))
# makedepend -o.d $(dirname $^) $(CFLAGS) $(CXXFILAGS) $^ -f- > $@
-%.o: %.cxx
+%.o: %.cpp
$(CXX) -c -o $@ $(CXXFLAGS) $^
include $(DEPS)