diff options
Diffstat (limited to 'patterns.mk')
-rw-r--r-- | patterns.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/patterns.mk b/patterns.mk new file mode 100644 index 000000000000..77e17213613d --- /dev/null +++ b/patterns.mk @@ -0,0 +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 |