new ltt-usertrace
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 9 Mar 2006 21:18:57 +0000 (21:18 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 9 Mar 2006 21:18:57 +0000 (21:18 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1648 04897980-b3bd-0310-b5e0-8ef037075253

ltt-usertrace/Makefile

index 2b607996fa6e8b90226395bc61bdf2aa685a3979..c3daad73f734f03723968dd6c55a2dfb68475609 100644 (file)
@@ -13,15 +13,10 @@ LDFLAGS=-L.
 
 all: libs samples
 
+#SAMPLE PROGRAMS
 
-libs: libltt-instrument-functions.a libltt-instrument-functions.so.0 \
-                               libltt-usertrace-fast.a libltt-usertrace-fast.so.0
-
-samples: sample-thread sample sample-highspeed sample-printf \
-                               sample-instrument-fct
-
-sample-thread: sample-thread.c ltt-facility-loader-user_generic.c
-       $(CC) $(CFLAGS) -lpthread -o $@ $^
+samples: sample sample-highspeed sample-printf \
+                               sample-instrument-fct sample-thread-slow sample-thread-fast
 
 sample: sample.c ltt-facility-loader-user_generic.c
        $(CC) $(CFLAGS) -o $@ $^
@@ -35,12 +30,24 @@ sample-printf: sample-printf.c ltt-facility-loader-user_generic.c
 sample-instrument-fct: sample-instrument-fct.c
        $(CC) $(CFLAGS) -L. -g -finstrument-functions -lltt-instrument-functions -o $@ $^
 
-libltt-usertrace-fast.a: ltt-usertrace-fast.o ltt-facility-loader-user_generic.o
+sample-thread-slow: sample-thread-slow.c ltt-facility-loader-user_generic.c
+       $(CC) $(CFLAGS) -lpthread -o $@ $^
+
+sample-thread-fast: sample-thread-fast.c ltt-facility-loader-user_generic.c
+       $(CC) $(CFLAGS) -lpthread -o $@ $^
+
+
+#LIBRAIRIES
+
+libs: libltt-instrument-functions.a libltt-instrument-functions.so.0 \
+                               libltt-usertrace-fast.a libltt-usertrace-fast.so.0
+
+libltt-usertrace-fast.a: ltt-usertrace-fast.o
        @rm -f libltt-usertrace-fast.a
        $(AR) rc $@ $^
        $(RANLIB) $@
 
-libltt-usertrace-fast.so.0: ltt-usertrace-fast.o ltt-facility-loader-user_generic.o
+libltt-usertrace-fast.so.0: ltt-usertrace-fast.o
        @rm -f libltt-usertrace-fast.so libltt-usertrace-fast.so.0
        $(CC) $(CFLAGS) -lpthread -shared -Wl,-soname,libltt-usertrace-fast.so -o $@ $^
        ln -s libltt-usertrace-fast.so.0 libltt-usertrace-fast.so
This page took 0.024352 seconds and 4 git commands to generate.