Move to kernel style SPDX license identifiers
[lttng-ust.git] / doc / examples / getcpu-override / Makefile
CommitLineData
c0c0989a
MJ
1# SPDX-License-Identifier: MIT
2#
5e1b7b8b
MD
3# Copyright (C) 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4# Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5#
5e1b7b8b
MD
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
5e1b7b8b
MD
11LIBS = -ldl # On Linux
12#LIBS = -lc # On BSD
13LOCAL_CPPFLAGS += -I.
dc5af9e3 14AM_V_P := :
5e1b7b8b
MD
15
16all: lttng-ust-getcpu-override-example.so
17
18lttng-ust-getcpu-override-example.o: lttng-ust-getcpu-override-example.c
dc5af9e3
MJ
19 @if $(AM_V_P); then set -x; else echo " CC $@"; fi; \
20 $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
e1c62734 21 $(CFLAGS) -fpic -c -o $@ $<
5e1b7b8b
MD
22
23lttng-ust-getcpu-override-example.so: lttng-ust-getcpu-override-example.o
dc5af9e3
MJ
24 @if $(AM_V_P); then set -x; else echo " CCLD $@"; fi; \
25 $(CC) -Wl,--no-as-needed -o $@ $(LDFLAGS) $(AM_CFLAGS) \
40c1d6b9 26 $(AM_LDFLAGS) $(CFLAGS) -shared -fpic lttng-ust-getcpu-override-example.o
5e1b7b8b
MD
27
28.PHONY: clean
29clean:
30 rm -f *.o *.so
This page took 0.026865 seconds and 4 git commands to generate.