0.8.31
[lttv.git] / usertrace-fast / Makefile
index 2dafe00219d106201d05552d4c035f24f57cafc9..d63a964802471531a5d05928be378b2af3d1cf82 100644 (file)
@@ -6,9 +6,10 @@ RANLIB=ranlib
 
 CC=gcc
 CFLAGS=-I. -O3
-CFLAGS+=-DLTT_SUBBUF_SIZE_CPU=134217728
+#CFLAGS+=-DLTT_SUBBUF_SIZE_CPU=134217728
+#CFLAGS+=-DLTT_NULL_OUTPUT_TEST
 
-all: test sample-instrument-fct libltt-instrument-functions.a libltt-instrument-functions.so.0
+all: test sample-instrument-fct libltt-instrument-functions.a libltt-instrument-functions.so.0 sample-loop
 
 test: test.c ltt-usertrace-fast.c
        $(CC) $(CFLAGS) -I. -lpthread -o $@ $^
@@ -17,6 +18,9 @@ test: test.c ltt-usertrace-fast.c
 sample-instrument-fct: sample-instrument-fct.c
        $(CC) $(CFLAGS) -L. -g -finstrument-functions -lltt-instrument-functions -o $@ $^
 
+sample-loop: sample-loop.c ltt-usertrace-fast.o ltt-facility-loader-user_generic.o
+       $(CC) $(CFLAGS) -L. -lpthread -g -o $@ $^
+
 libltt-instrument-functions.a: ltt-instrument-functions.o ltt-facility-loader-user_generic.o ltt-usertrace-fast.o
        @rm -f libltt-instrument-functions.a
        $(AR) rc $@ $^
This page took 0.023804 seconds and 4 git commands to generate.