Move to kernel style SPDX license identifiers
[lttng-ust.git] / doc / examples / clock-override / Makefile
... / ...
CommitLineData
1# SPDX-License-Identifier: MIT
2#
3# Copyright (C) 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4# Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5#
6# This Makefile is not using automake so that users may see how to build
7# a program with tracepoint provider probes as stand-alone shared objects.
8#
9# This makefile is purposefully kept simple to support GNU and BSD make.
10
11LIBS = -ldl # On Linux
12#LIBS = -lc # On BSD
13LOCAL_CPPFLAGS += -I.
14AM_V_P := :
15
16all: lttng-ust-clock-override-example.so
17
18lttng-ust-clock-override-example.o: lttng-ust-clock-override-example.c
19 @if $(AM_V_P); then set -x; else echo " CC $@"; fi; \
20 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
21 $(CFLAGS) -fpic -c -o $@ $<
22
23lttng-ust-clock-override-example.so: lttng-ust-clock-override-example.o
24 @if $(AM_V_P); then set -x; else echo " CCLD $@"; fi; \
25 $(CC) -Wl,--no-as-needed -o $@ $(LDFLAGS) $(AM_CFLAGS) \
26 $(AM_LDFLAGS) $(CFLAGS) -shared -fpic lttng-ust-clock-override-example.o
27
28.PHONY: clean
29clean:
30 rm -f *.o *.so
This page took 0.022376 seconds and 4 git commands to generate.