Quieten down the build
This commit is contained in:
parent
edb33dce4c
commit
50bab1c90a
11
Makefile.in
11
Makefile.in
@ -18,6 +18,7 @@
|
||||
|
||||
.PHONY: all
|
||||
|
||||
V=@
|
||||
PROGRAMS=\
|
||||
cache_check \
|
||||
cache_dump \
|
||||
@ -92,12 +93,14 @@ test-programs: $(TEST_PROGRAMS)
|
||||
.SUFFIXES: .d
|
||||
|
||||
%.d: %.cc
|
||||
$(CXX) -MM -MT $(subst .cc,.o,$<) $(INCLUDES) $(CXXFLAGS) $< > $@.$$$$;\
|
||||
sed 's,\([^ :]*\)\.o[ :]*,\1.o $@ : Makefile ,g' < $@.$$$$ > $@; \
|
||||
$(RM) $@.$$$$
|
||||
@echo " [dependencies] $<"
|
||||
$(V) $(CXX) -MM -MT $(subst .cc,.o,$<) $(INCLUDES) $(CXXFLAGS) $< > $@.$$$$;\
|
||||
$(V) sed 's,\([^ :]*\)\.o[ :]*,\1.o $@ : Makefile ,g' < $@.$$$$ > $@; \
|
||||
$(V) $(RM) $@.$$$$
|
||||
|
||||
%.o: %.cc
|
||||
$(CXX) -c $(INCLUDES) $(CXXFLAGS) -o $@ $<
|
||||
@echo " [CXX] $<"
|
||||
$(V) $(CXX) -c $(INCLUDES) $(CXXFLAGS) -o $@ $<
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Thin provisioning tools
|
||||
|
@ -103,11 +103,13 @@ MOCK_SOURCE=\
|
||||
.SUFFIXES: .gmo
|
||||
|
||||
%.gmo: %.cc
|
||||
$(CXX) -c $(INCLUDES) $(GMOCK_INCLUDES) $(CXXFLAGS) -o $@ $<
|
||||
@echo " [CXX] $<"
|
||||
$(V) $(CXX) -c $(INCLUDES) $(GMOCK_INCLUDES) $(CXXFLAGS) -o $@ $<
|
||||
|
||||
MOCK_OBJECTS=$(subst .cc,.gmo,$(MOCK_SOURCE))
|
||||
|
||||
unit-tests/gmock_tests: $(MOCK_OBJECTS) lib/libgmock.a
|
||||
g++ $(CXXFLAGS) -o $@ $(MOCK_OBJECTS) $(LIBS) $(GMOCK_LIBS)
|
||||
@echo " [LD] $<"
|
||||
$(V) g++ $(CXXFLAGS) -o $@ $(MOCK_OBJECTS) $(LIBS) $(GMOCK_LIBS)
|
||||
|
||||
all: $(TEST_PROGRAMS)
|
||||
|
Loading…
Reference in New Issue
Block a user