Fix: examples Makefiles should pass $(LIBS) at last
[lttng-ust.git] / doc / examples / gen-tp / Makefile
index b29eed4cf707821d8d695274d7387f2a72399150..127fb95f2ddbf37e0c10268b82d44faf29b81521 100644 (file)
 # provider probe.
 
 CC = gcc
-LIBS = -ldl -llttng-ust
+
+LIBS = -ldl -llttng-ust                #On Linux
+#LIBS = -lc -llttng-ust                #On BSD
 
 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 $@ $<
This page took 0.023346 seconds and 4 git commands to generate.