3d57eb5b |
1 | |
3d57eb5b |
2 | CC=gcc |
15146922 |
3 | INCLUDE_DIR=/usr/include |
3d57eb5b |
4 | |
e36efdc5 |
5 | all: sample-thread sample sample-highspeed sample-printf |
3d57eb5b |
6 | |
7 | sample-thread: sample-thread.c ltt-facility-loader-user_generic.c |
15146922 |
8 | $(CC) $(CFLAGS) -lpthread -o $@ $^ |
3d57eb5b |
9 | |
10 | sample: sample.c ltt-facility-loader-user_generic.c |
15146922 |
11 | $(CC) $(CFLAGS) -o $@ $^ |
972a52cf |
12 | |
13 | sample-highspeed: sample-highspeed.c ltt-facility-loader-user_generic.c |
15146922 |
14 | $(CC) $(CFLAGS) -o $@ $^ |
3d57eb5b |
15 | |
e36efdc5 |
16 | sample-printf: sample-printf.c ltt-facility-loader-user_generic.c |
15146922 |
17 | $(CC) $(CFLAGS) -o $@ $^ |
18 | |
19 | .PHONY : clean install |
e36efdc5 |
20 | |
15146922 |
21 | install: |
22 | if [ ! -e "$(INCLUDE_DIR)/ltt" ] ; then mkdir $(INCLUDE_DIR)/ltt ; fi |
23 | cp -f ltt/*.h $(INCLUDE_DIR)/ltt |
3d57eb5b |
24 | |
25 | clean: |
e36efdc5 |
26 | rm -fr *.o *~ sample-thread sample sample-highspeed sample-printf |
3d57eb5b |
27 | |