1 # SPDX-License-Identifier: MIT
3 # Copyright (C) 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
5 # This Makefile is not using automake so that users may see how to build
6 # a program with tracepoint provider probes compiled as static libraries.
8 # This makefile is purposefully kept simple to support GNU and BSD make.
11 LIBS
= -ldl
-llttng-ust
# On Linux
12 #LIBS = -lc -llttng-ust # On BSD
18 lttng-ust-provider-hello.o
: tp.c ust_tests_hello.h
19 @if
$(AM_V_P
); then set
-x
; else echo
" CC $@"; fi
; \
20 $(CC
) $(CPPFLAGS
) $(LOCAL_CPPFLAGS
) $(AM_CFLAGS
) $(AM_CPPFLAGS
) \
23 lttng-ust-provider-hello.a
: lttng-ust-provider-hello.o
24 @if
$(AM_V_P
); then set
-x
; else echo
" AR $@"; fi
; \
25 $(AR
) -rc
$@ lttng-ust-provider-hello.o
28 @if
$(AM_V_P
); then set
-x
; else echo
" CC $@"; fi
; \
29 $(CC
) $(CPPFLAGS
) $(LOCAL_CPPFLAGS
) $(AM_CFLAGS
) $(AM_CPPFLAGS
) \
32 hello
: hello.o lttng-ust-provider-hello.a
33 @if
$(AM_V_P
); then set
-x
; else echo
" CCLD $@"; fi
; \
34 $(CC
) -o
$@
$(LDFLAGS
) $(CPPFLAGS
) $(AM_LDFLAGS
) $(AM_CFLAGS
) \
35 $(CFLAGS
) hello.o lttng-ust-provider-hello.a
$(LIBS
)