example Makefiles: standardize on $^ for linking
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 10 May 2013 17:29:42 +0000 (13:29 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 10 May 2013 17:29:42 +0000 (13:29 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/demo/Makefile
doc/examples/hello-static-lib/Makefile

index 7e9746fa181c3a9d9585f8cae38b8f077b9b59f9..bb7eb6dec481326e0201f3f9f342c7fc6b107dcd 100644 (file)
@@ -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:
index 81789e2b5b64faacf355ec868bc9dd31f985dc9e..3da65f042971529bf3d76f0b57cf2b0cdb9222c9 100644 (file)
@@ -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 $@ $<
This page took 0.025899 seconds and 4 git commands to generate.