Fix: examples Makefiles should pass $(LIBS) at last
[lttng-ust.git] / doc / examples / gen-tp / Makefile
index c78fc67dd8951554f1d8582d9b35e84ea3644e0b..c03859b7cbc9e36efdb60a4bff36421302c50f01 100644 (file)
@@ -21,7 +21,7 @@ LIBS = -ldl -llttng-ust
 all: sample
 
 sample: sample.o sample_tracepoint.o
-       $(CC) $(LIBS) -o $@ $^
+       $(CC) -o $@ $^ $(LIBS)
 
 sample.o: sample.c sample_tracepoint.h
        $(CC) $(CFLAGS) -c -o $@ $<
@@ -33,7 +33,7 @@ sample.o: sample.c sample_tracepoint.h
 # This rule generate .o only and depends on rules for generating
 # the .h and .c
 %.o: %.tp %.c %.h
-       tools/lttng-gen-tp -o $@ $<
+       lttng-gen-tp -o $@ $<
 
 # The following rule can be used to generate all files instead of having one
 # for each file type. Note that the sample.o has a dependency on the
This page took 0.02299 seconds and 4 git commands to generate.