projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add silent mode to examples Makefiles
[lttng-ust.git]
/
doc
/
examples
/
demo-tracef
/
Makefile
diff --git
a/doc/examples/demo-tracef/Makefile
b/doc/examples/demo-tracef/Makefile
index 40e9a581e90df7657881590dab99270704be75ea..ee20784335ac00c486fb5d83519e6e5fb0e93d3e 100644
(file)
--- a/
doc/examples/demo-tracef/Makefile
+++ b/
doc/examples/demo-tracef/Makefile
@@
-15,22
+15,21
@@
#
# This makefile is purposefully kept simple to support GNU and BSD make.
#
# This makefile is purposefully kept simple to support GNU and BSD make.
-ifdef AM_CC
- CC = $(AM_CC)
-endif
-
LIBS = -ldl -llttng-ust # On Linux
#LIBS = -lc # On BSD
LOCAL_CPPFLAGS += -I.
LIBS = -ldl -llttng-ust # On Linux
#LIBS = -lc # On BSD
LOCAL_CPPFLAGS += -I.
+AM_V_P := :
all: demo-tracef
demo-tracef.o: demo-tracef.c
all: demo-tracef
demo-tracef.o: demo-tracef.c
- $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) \
- $(AM_CFLAGS) -c -o $@ $<
+ @if $(AM_V_P); then set -x; else echo " CC $@"; fi; \
+ $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
+ $(CFLAGS) -c -o $@ $<
demo-tracef: demo-tracef.o
demo-tracef: demo-tracef.o
- $(CC) $(LDFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(AM_CFLAGS) \
+ @if $(AM_V_P); then set -x; else echo " CCLD $@"; fi; \
+ $(CC) $(LDFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) $(CFLAGS) \
-o $@ $< $(LIBS)
.PHONY: clean
-o $@ $< $(LIBS)
.PHONY: clean
This page took
0.022639 seconds
and
4
git commands to generate.