projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update build
[lttv.git]
/
usertrace-fast
/
Makefile
diff --git
a/usertrace-fast/Makefile
b/usertrace-fast/Makefile
index ced8f6fbeed2ae76fb6a4fa15b063a0efee76c65..d63a964802471531a5d05928be378b2af3d1cf82 100644
(file)
--- a/
usertrace-fast/Makefile
+++ b/
usertrace-fast/Makefile
@@
-1,25
+1,34
@@
+LIB_DIR=/usr/lib
+INCLUDE_DIR=/usr/include
+
RANLIB=ranlib
CC=gcc
RANLIB=ranlib
CC=gcc
+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
test: test.c ltt-usertrace-fast.c
- $(CC) $(CFLAGS) -lpthread -o $@ $^
+ $(CC) $(CFLAGS) -
I. -
lpthread -o $@ $^
sample-instrument-fct: sample-instrument-fct.c
$(CC) $(CFLAGS) -L. -g -finstrument-functions -lltt-instrument-functions -o $@ $^
sample-instrument-fct: sample-instrument-fct.c
$(CC) $(CFLAGS) -L. -g -finstrument-functions -lltt-instrument-functions -o $@ $^
-libltt-instrument-functions.a: ltt-instrument-functions.o ltt-facility-loader-user_generic.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 $@ $^
$(RANLIB) $@
@rm -f libltt-instrument-functions.a
$(AR) rc $@ $^
$(RANLIB) $@
-libltt-instrument-functions.so.0: ltt-instrument-functions.o ltt-facility-loader-user_generic.o
+libltt-instrument-functions.so.0: ltt-instrument-functions.o ltt-facility-loader-user_generic.o
ltt-usertrace-fast.o
@rm -f libltt-instrument-functions.so libltt-instrument-functions.so.0
@rm -f libltt-instrument-functions.so libltt-instrument-functions.so.0
- $(CC) $(CFLAGS) -shared -Wl,-soname,libltt-instrument-functions.so -o $@ $^
+ $(CC) $(CFLAGS) -
lpthread -
shared -Wl,-soname,libltt-instrument-functions.so -o $@ $^
ln -s libltt-instrument-functions.so.0 libltt-instrument-functions.so
install:
ln -s libltt-instrument-functions.so.0 libltt-instrument-functions.so
install:
This page took
0.023457 seconds
and
4
git commands to generate.