X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=blobdiff_plain;f=doc%2Fexamples%2Fhello-static-lib%2FMakefile;h=8f094e0e70e5fff33ff29458136bd6dc0aaea794;hp=c5fdd31c4638f466c551d2347054dd92511e8e89;hb=43f42e0a30023a5b535388a1d9588dde094932a4;hpb=beca55a1aa4ff272188d7c37c19eb0540f811c8b diff --git a/doc/examples/hello-static-lib/Makefile b/doc/examples/hello-static-lib/Makefile index c5fdd31c..8f094e0e 100644 --- a/doc/examples/hello-static-lib/Makefile +++ b/doc/examples/hello-static-lib/Makefile @@ -18,6 +18,7 @@ LOCAL_CPPFLAGS += -I. LIBS = -ldl -llttng-ust # On Linux #LIBS = -lc -llttng-ust # On BSD AM_V_P := : +AR ?= ar all: hello @@ -28,7 +29,7 @@ lttng-ust-provider-hello.o: tp.c ust_tests_hello.h lttng-ust-provider-hello.a: lttng-ust-provider-hello.o @if $(AM_V_P); then set -x; else echo " AR $@"; fi; \ - ar -rc $@ lttng-ust-provider-hello.o + $(AR) -rc $@ lttng-ust-provider-hello.o hello.o: hello.c @if $(AM_V_P); then set -x; else echo " CC $@"; fi; \