Add silent mode to examples Makefiles
[urcu.git] / doc / examples / Makefile.examples.template
index 4b2378ea7b01e9d5d13baa0d156961255360d7f4..238a5cc8d45ec85c8512532a8b596b3fb81a5a99 100644 (file)
 # This makefile is purposefully kept simple to support GNU and BSD make.
 
 LOCAL_CFLAGS := -g -O2 -Wall
+AM_V_P := :
 
 all: $(BINARY)
 
 $(BINARY): $(OBJECTS)
-       $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
+       @if $(AM_V_P); then set -x; else echo "  CCLD     $@"; fi; \
+               $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
                -o $@ $(OBJECTS) $(LIBS)
 
 $(OBJECTS): $(SOURCES) $(DEPS)
-       $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) \
+       @if $(AM_V_P); then set -x; else echo "  CC       $@"; fi; \
+               $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) \
                -c -o $@ $(SOURCES)
 
 .PHONY: clean
This page took 0.022312 seconds and 4 git commands to generate.