X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=usertrace-fast%2FMakefile;h=d63a964802471531a5d05928be378b2af3d1cf82;hb=daa38dd50179effd7ccffa889cb2239dde155ace;hp=a154f8863ea16e2b20dfc30c8ab2424e7f96ab92;hpb=b5d612cbaca013b84531e78e43c97c6566346d08;p=lttv.git diff --git a/usertrace-fast/Makefile b/usertrace-fast/Makefile index a154f886..d63a9648 100644 --- a/usertrace-fast/Makefile +++ b/usertrace-fast/Makefile @@ -5,9 +5,11 @@ INCLUDE_DIR=/usr/include RANLIB=ranlib CC=gcc -CFLAGS=-I. -g +CFLAGS=-I. -O3 +#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 $@ $^ @@ -16,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 $@ $^