From: Mathieu Desnoyers Date: Fri, 10 May 2013 17:29:42 +0000 (-0400) Subject: example Makefiles: standardize on $^ for linking X-Git-Tag: v2.2.0-rc3~29 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8e9506847d27ac98b24c105153a95010f70c7677;p=lttng-ust.git example Makefiles: standardize on $^ for linking Signed-off-by: Mathieu Desnoyers --- diff --git a/doc/examples/demo/Makefile b/doc/examples/demo/Makefile index 7e9746fa..bb7eb6de 100644 --- a/doc/examples/demo/Makefile +++ b/doc/examples/demo/Makefile @@ -43,19 +43,19 @@ tp2.o: tp2.c ust_tests_demo2.h $(CC) $(CFLAGS) -fpic -c -o $@ $< lttng-ust-provider-ust-tests-demo.so: tp.o tp2.o - $(CC) -shared -o $@ $(LDFLAGS) -llttng-ust $+ + $(CC) -shared -o $@ $(LDFLAGS) -llttng-ust $^ tp3.o: tp3.c ust_tests_demo3.h $(CC) $(CFLAGS) -fpic -c -o $@ $< lttng-ust-provider-ust-tests-demo3.so: tp3.o - $(CC) -shared -o $@ $(LDFLAGS) -llttng-ust $+ + $(CC) -shared -o $@ $(LDFLAGS) -llttng-ust $^ demo.o: demo.c $(CC) $(CFLAGS) -c -o $@ $< demo: demo.o - $(CC) -o $@ $(LIBS) $+ + $(CC) -o $@ $(LIBS) $^ .PHONY: clean clean: diff --git a/doc/examples/hello-static-lib/Makefile b/doc/examples/hello-static-lib/Makefile index 81789e2b..3da65f04 100644 --- a/doc/examples/hello-static-lib/Makefile +++ b/doc/examples/hello-static-lib/Makefile @@ -40,7 +40,7 @@ lttng-ust-provider-hello.o: tp.c ust_tests_hello.h $(CC) $(CFLAGS) -c -o $@ $< lttng-ust-provider-hello.a: lttng-ust-provider-hello.o - ar -rc $@ $< + ar -rc $@ $^ hello.o: hello.c $(CC) $(CFLAGS) -c -o $@ $<