Introduce vtracef
[lttng-ust.git] / doc / examples / demo-tracef / Makefile
CommitLineData
641c659a
MD
1# Copyright (C) 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
2# Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3#
4# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
5# OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
6#
7# Permission is hereby granted to use or copy this program for any
8# purpose, provided the above notices are retained on all copies.
9# Permission to modify the code and to distribute modified code is
10# granted, provided the above notices are retained, and a notice that
11# the code was modified is included with the above copyright notice.
12#
13# This Makefile is not using automake so that users may see how to build
14# a program with tracepoint provider probes as stand-alone shared objects.
15#
16# This makefile is purposefully kept simple to support GNU and BSD make.
17
641c659a
MD
18LIBS = -ldl -llttng-ust # On Linux
19#LIBS = -lc # On BSD
20LOCAL_CPPFLAGS += -I.
dc5af9e3 21AM_V_P := :
641c659a 22
cfd56ee1 23all: demo-tracef demo-vtracef
641c659a
MD
24
25demo-tracef.o: demo-tracef.c
dc5af9e3
MJ
26 @if $(AM_V_P); then set -x; else echo " CC $@"; fi; \
27 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
e1c62734 28 $(CFLAGS) -c -o $@ $<
641c659a
MD
29
30demo-tracef: demo-tracef.o
dc5af9e3
MJ
31 @if $(AM_V_P); then set -x; else echo " CCLD $@"; fi; \
32 $(CC) $(LDFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) $(CFLAGS) \
641c659a
MD
33 -o $@ $< $(LIBS)
34
cfd56ee1
MRB
35demo-vtracef.o: demo-vtracef.c
36 @if $(AM_V_P); then set -x; else echo " CC $@"; fi; \
37 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
38 $(CFLAGS) -c -o $@ $<
39
40demo-vtracef: demo-vtracef.o
41 @if $(AM_V_P); then set -x; else echo " CCLD $@"; fi; \
42 $(CC) $(LDFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) $(CFLAGS) \
43 -o $@ $< $(LIBS)
44
641c659a
MD
45.PHONY: clean
46clean:
cfd56ee1 47 rm -f *.o *.a demo-tracef demo-vtracef
This page took 0.025706 seconds and 4 git commands to generate.