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