Implement clock override plugin support
[lttng-ust.git] / doc / examples / clock-override / Makefile
CommitLineData
f9364363
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
18ifdef AM_CC
19 CC = $(AM_CC)
20endif
21
22LIBS = -ldl # On Linux
23#LIBS = -lc # On BSD
24LOCAL_CPPFLAGS += -I.
25
26all: lttng-ust-clock-override-example.so
27
28lttng-ust-clock-override-example.o: lttng-ust-clock-override-example.c
29 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) \
30 $(AM_CFLAGS) -fpic -c -o $@ $<
31
32lttng-ust-clock-override-example.so: lttng-ust-clock-override-example.o
33 $(CC) -shared -Wl,--no-as-needed -o $@ $(LDFLAGS) $(CFLAGS) \
34 $(AM_LDFLAGS) $(AM_CFLAGS) lttng-ust-clock-override-example.o
35
36.PHONY: clean
37clean:
38 rm -f *.o *.so
This page took 0.024799 seconds and 4 git commands to generate.