update
[lttv.git] / usertrace-generic / Makefile
1
2 CC=gcc
3 INCLUDE_DIR=/usr/include
4
5 all: sample-thread sample sample-highspeed sample-printf sample-instrument-fct
6
7 sample-thread: sample-thread.c ltt-facility-loader-user_generic.c
8 $(CC) $(CFLAGS) -lpthread -o $@ $^
9
10 sample: sample.c ltt-facility-loader-user_generic.c
11 $(CC) $(CFLAGS) -o $@ $^
12
13 sample-highspeed: sample-highspeed.c ltt-facility-loader-user_generic.c
14 $(CC) $(CFLAGS) -o $@ $^
15
16 sample-printf: sample-printf.c ltt-facility-loader-user_generic.c
17 $(CC) $(CFLAGS) -o $@ $^
18
19 sample-instrument-fct: sample-instrument-fct.c ltt-facility-loader-user_generic.c ltt-instrument-functions.c
20 $(CC) $(CFLAGS) -g -finstrument-functions -o $@ $^
21
22
23 .PHONY : clean install
24
25 install:
26 if [ ! -e "$(INCLUDE_DIR)/ltt" ] ; then mkdir $(INCLUDE_DIR)/ltt ; fi
27 cp -f ltt/*.h $(INCLUDE_DIR)/ltt
28
29 clean:
30 rm -fr *.o *~ sample-thread sample sample-highspeed sample-printf sample-instrument-fct
31
This page took 0.030227 seconds and 5 git commands to generate.