From 8e9506847d27ac98b24c105153a95010f70c7677 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 10 May 2013 13:29:42 -0400 Subject: [PATCH] example Makefiles: standardize on $^ for linking Signed-off-by: Mathieu Desnoyers --- doc/examples/demo/Makefile | 6 +++--- doc/examples/hello-static-lib/Makefile | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 $@ $< -- 2.34.1