mirror of
https://github.com/NixOS/nix.git
synced 2024-11-23 07:12:27 +00:00
5ff4d77f55
This cuts 'make install -j6' on my laptop from 170s to 134s.
12 lines
541 B
Makefile
12 lines
541 B
Makefile
$(buildprefix)%.o: %.cc
|
|
@mkdir -p "$(dir $@)"
|
|
$(trace-cxx) $(CXX) -o $@ -c $< $(GLOBAL_CXXFLAGS_PCH) $(GLOBAL_CXXFLAGS) $(CXXFLAGS) $($@_CXXFLAGS) -MMD -MF $(call filename-to-dep, $@) -MP
|
|
|
|
$(buildprefix)%.o: %.cpp
|
|
@mkdir -p "$(dir $@)"
|
|
$(trace-cxx) $(CXX) -o $@ -c $< $(GLOBAL_CXXFLAGS_PCH) $(GLOBAL_CXXFLAGS) $(CXXFLAGS) $($@_CXXFLAGS) -MMD -MF $(call filename-to-dep, $@) -MP
|
|
|
|
$(buildprefix)%.o: %.c
|
|
@mkdir -p "$(dir $@)"
|
|
$(trace-cc) $(CC) -o $@ -c $< $(GLOBAL_CFLAGS) $(CFLAGS) $($@_CFLAGS) -MMD -MF $(call filename-to-dep, $@) -MP
|