about summary refs log tree commit diff
path: root/mk/patterns.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-25T09·50+0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-25T09·50+0000
commitf980755766e7cd74c0c959eaa2a6d4655980e2ea (patch)
tree56452922b75f19a707cdecc4cee936f8fe7e372c /mk/patterns.mk
parente9b6397d2f902eb4f5bf0fd513013d92af074cfc (diff)
Split Makefile.lib into several *.mk files
Diffstat (limited to 'mk/patterns.mk')
-rw-r--r--mk/patterns.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/mk/patterns.mk b/mk/patterns.mk
new file mode 100644
index 000000000000..87d90955bf5f
--- /dev/null
+++ b/mk/patterns.mk
@@ -0,0 +1,5 @@
+%.o: %.cc
+	$(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