diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-12-10T14·54+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-12-10T14·54+0100 |
commit | 49a385096e08b42277b7105d5d8d1e0e62b6b7a4 (patch) | |
tree | 91b5ca200905ecf88d827752ba8b5a14fe1c9be7 /mk/patterns.mk |
Initial commit (imported from the Nix repo)
Diffstat (limited to 'mk/patterns.mk')
-rw-r--r-- | mk/patterns.mk | 5 |
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 |