about summary refs log tree commit diff
path: root/mk/patterns.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/patterns.mk')
-rw-r--r--mk/patterns.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/mk/patterns.mk b/mk/patterns.mk
index 87d90955bf5f..77e17213613d 100644
--- a/mk/patterns.mk
+++ b/mk/patterns.mk
@@ -1,5 +1,8 @@
 %.o: %.cc
 	$(QUIET) $(CXX) -o $@ -c $< $(GLOBAL_CXXFLAGS) $(CXXFLAGS) $($@_CXXFLAGS) -MMD -MF $(basename $@).dep -MP
 
+%.o: %.cpp
+	$(QUIET) $(CXX) -o $@ -c $< $(GLOBAL_CXXFLAGS) $(CXXFLAGS) $($@_CXXFLAGS) -MMD -MF $(basename $@).dep -MP
+
 %.o: %.c
 	$(QUIET) $(CC) -o $@ -c $< $(GLOBAL_CFLAGS) $(CFLAGS) $($@_CFLAGS) -MMD -MF $(basename $@).dep -MP