3 INCLUDE_DIR
=/usr
/include
9 CFLAGS
+=-DLTT_SUBBUF_SIZE_CPU
=134217728
11 all: test sample-instrument-fct libltt-instrument-functions.a libltt-instrument-functions.so
.0
13 test: test.c ltt-usertrace-fast.c
14 $(CC
) $(CFLAGS
) -I.
-lpthread
-o
$@
$^
17 sample-instrument-fct
: sample-instrument-fct.c
18 $(CC
) $(CFLAGS
) -L.
-g
-finstrument-functions
-lltt-instrument-functions
-o
$@
$^
20 libltt-instrument-functions.a
: ltt-instrument-functions.o ltt-facility-loader-user_generic.o ltt-usertrace-fast.o
21 @
rm -f libltt-instrument-functions.a
25 libltt-instrument-functions.so
.0: ltt-instrument-functions.o ltt-facility-loader-user_generic.o ltt-usertrace-fast.o
26 @
rm -f libltt-instrument-functions.so libltt-instrument-functions.so
.0
27 $(CC
) $(CFLAGS
) -lpthread
-shared
-Wl
,-soname
,libltt-instrument-functions.so
-o
$@
$^
28 ln
-s libltt-instrument-functions.so
.0 libltt-instrument-functions.so
31 if
[ ! -e
"$(INCLUDE_DIR)/ltt" ] ; then mkdir
$(INCLUDE_DIR
)/ltt
; fi
32 cp
-f ltt
/*.h
$(INCLUDE_DIR
)/ltt
33 cp
-df libltt-instrument-functions.so
* libltt-instrument-functions.a
$(LIB_DIR
)
35 .PHONY
: clean install
38 rm -fr
*.o
*~
test sample-instrument-fct libltt-instrument-functions.a libltt-instrument-functions.so
*