# the "html" target helps for documentation (req. code2html)
CC = gcc
-LIBS = -ldl -llttng-ust
+LIBS = -ldl -llttng-ust # On Linux
+#LIBS = -lc -llttng-ust # On BSD
CFLAGS = -I.
all: sample
sample: sample.o tp.o
- $(CC) $(LIBS) -o $@ $^
+ $(CC) -o $@ $^ $(LIBS)
sample.o: sample.c sample_component_provider.h
$(CC) $(CFLAGS) -c -o $@ $<