projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update
[lttv.git]
/
usertrace-generic
/
Makefile
diff --git
a/usertrace-generic/Makefile
b/usertrace-generic/Makefile
index 91e09a85b7efb048dcd94301f25f3719494e9354..e4cab2f648ebe19c25714e6a2c1dab951f62a603 100644
(file)
--- a/
usertrace-generic/Makefile
+++ b/
usertrace-generic/Makefile
@@
-1,23
+1,31
@@
-
CC=gcc
CC=gcc
+INCLUDE_DIR=/usr/include
-all: sample-thread sample sample-highspeed sample-printf
+all: sample-thread sample sample-highspeed sample-printf
sample-instrument-fct
sample-thread: sample-thread.c ltt-facility-loader-user_generic.c
sample-thread: sample-thread.c ltt-facility-loader-user_generic.c
- $(CC) $(CFLAGS) -
I. -
lpthread -o $@ $^
+ $(CC) $(CFLAGS) -lpthread -o $@ $^
sample: sample.c ltt-facility-loader-user_generic.c
sample: sample.c ltt-facility-loader-user_generic.c
- $(CC) $(CFLAGS) -
I. -
o $@ $^
+ $(CC) $(CFLAGS) -o $@ $^
sample-highspeed: sample-highspeed.c ltt-facility-loader-user_generic.c
sample-highspeed: sample-highspeed.c ltt-facility-loader-user_generic.c
- $(CC) $(CFLAGS) -
I. -
o $@ $^
+ $(CC) $(CFLAGS) -o $@ $^
sample-printf: sample-printf.c ltt-facility-loader-user_generic.c
sample-printf: sample-printf.c ltt-facility-loader-user_generic.c
- $(CC) $(CFLAGS) -I. -o $@ $^
+ $(CC) $(CFLAGS) -o $@ $^
+
+sample-instrument-fct: sample-instrument-fct.c ltt-facility-loader-user_generic.c ltt-instrument-functions.c
+ $(CC) $(CFLAGS) -g -finstrument-functions -o $@ $^
+
+
+.PHONY : clean install
-.PHONY : clean
+install:
+ if [ ! -e "$(INCLUDE_DIR)/ltt" ] ; then mkdir $(INCLUDE_DIR)/ltt ; fi
+ cp -f ltt/*.h $(INCLUDE_DIR)/ltt
clean:
clean:
- rm -fr *.o *~ sample-thread sample sample-highspeed sample-printf
+ rm -fr *.o *~ sample-thread sample sample-highspeed sample-printf
sample-instrument-fct
This page took
0.023675 seconds
and
4
git commands to generate.