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
/
hello-static-lib
/
Makefile
diff --git
a/doc/examples/hello-static-lib/Makefile
b/doc/examples/hello-static-lib/Makefile
index cf72b35d34e720c2ea4bf45a8132ab2a16b9ab92..c5fdd31c4638f466c551d2347054dd92511e8e89 100644
(file)
--- a/
doc/examples/hello-static-lib/Makefile
+++ b/
doc/examples/hello-static-lib/Makefile
@@
-17,22
+17,27
@@
LOCAL_CPPFLAGS += -I.
LIBS = -ldl -llttng-ust # On Linux
#LIBS = -lc -llttng-ust # On BSD
LOCAL_CPPFLAGS += -I.
LIBS = -ldl -llttng-ust # On Linux
#LIBS = -lc -llttng-ust # On BSD
+AM_V_P := :
all: hello
lttng-ust-provider-hello.o: tp.c ust_tests_hello.h
all: hello
lttng-ust-provider-hello.o: tp.c ust_tests_hello.h
- $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
+ @if $(AM_V_P); then set -x; else echo " CC $@"; fi; \
+ $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
$(CFLAGS) -c -o $@ $<
lttng-ust-provider-hello.a: lttng-ust-provider-hello.o
$(CFLAGS) -c -o $@ $<
lttng-ust-provider-hello.a: lttng-ust-provider-hello.o
- ar -rc $@ lttng-ust-provider-hello.o
+ @if $(AM_V_P); then set -x; else echo " AR $@"; fi; \
+ ar -rc $@ lttng-ust-provider-hello.o
hello.o: hello.c
hello.o: hello.c
- $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
+ @if $(AM_V_P); then set -x; else echo " CC $@"; fi; \
+ $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
$(CFLAGS) -c -o $@ $<
hello: hello.o lttng-ust-provider-hello.a
$(CFLAGS) -c -o $@ $<
hello: hello.o lttng-ust-provider-hello.a
- $(CC) -o $@ $(LDFLAGS) $(CPPFLAGS) $(AM_LDFLAGS) $(AM_CFLAGS) \
+ @if $(AM_V_P); then set -x; else echo " CCLD $@"; fi; \
+ $(CC) -o $@ $(LDFLAGS) $(CPPFLAGS) $(AM_LDFLAGS) $(AM_CFLAGS) \
$(CFLAGS) hello.o lttng-ust-provider-hello.a $(LIBS)
.PHONY: clean
$(CFLAGS) hello.o lttng-ust-provider-hello.a $(LIBS)
.PHONY: clean
This page took
0.02388 seconds
and
4
git commands to generate.