# 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 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