Install easy-ust and gen-tp examples in doc/
[deliverable/lttng-ust.git] / doc / examples / gen-tp / Makefile
1 # Copyright (C) 2011-2012 Matthew Khouzam <matthew.khouzam@ericsson.com>
2 # Copyright (C) 2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 # Copyright (C) 2012 Yannick Brosseau <yannick.brosseau@gmail.com>
4 #
5 # THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
6 # OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
7 #
8 # Permission is hereby granted to use or copy this program for any
9 # purpose, provided the above notices are retained on all copies.
10 # Permission to modify the code and to distribute modified code is
11 # granted, provided the above notices are retained, and a notice that
12 # the code was modified is included with the above copyright notice.
13
14 # This makefile is not using automake so that people can see how to make
15 # simply. It builds a program with a statically embedded tracepoint
16 # provider probe.
17
18 CC = gcc
19 LIBS = -ldl -llttng-ust
20
21 all: sample
22
23 sample: sample.o sample-tp.o
24 $(CC) $(LIBS) -o $@ $^
25
26 sample.o: sample.c sample_tracepoint.h
27 $(CC) $(CFLAGS) -c -o $@ $<
28
29 sample-tp.o: sample_tracepoint.c sample_tracepoint.h
30 $(CC) $(CFLAGS) -I. -c -o $@ $<
31
32 %.h: %.tp
33 lttng-gen-tp -o $@ $<
34 %.c: %.tp
35 lttng-gen-tp -o $@ $<
36
37 .PHONY: clean
38 clean:
39 rm -f *.o sample
40 rm -f sample_tracepoint.h sample_tracepoint.c
This page took 0.03117 seconds and 5 git commands to generate.