1 # Copyright (C) 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 # THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
4 # OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
6 # Permission is hereby granted to use or copy this program for any
7 # purpose, provided the above notices are retained on all copies.
8 # Permission to modify the code and to distribute modified code is
9 # granted, provided the above notices are retained, and a notice that
10 # the code was modified is included with the above copyright notice.
12 # This Makefile is not using automake so that users may see how to build
13 # a program with tracepoint provider probes compiled as static libraries.
15 # This makefile is purposefully kept simple to support GNU and BSD make.
18 LIBS
= -ldl
-llttng-ust
# On Linux
19 #LIBS = -lc -llttng-ust # On BSD
24 lttng-ust-provider-hello.o
: tp.c ust_tests_hello.h
25 @if
$(AM_V_P
); then set
-x
; else echo
" CC $@"; fi
; \
26 $(CC
) $(CPPFLAGS
) $(LOCAL_CPPFLAGS
) $(AM_CFLAGS
) $(AM_CPPFLAGS
) \
29 lttng-ust-provider-hello.a
: lttng-ust-provider-hello.o
30 @if
$(AM_V_P
); then set
-x
; else echo
" AR $@"; fi
; \
31 ar -rc
$@ lttng-ust-provider-hello.o
34 @if
$(AM_V_P
); then set
-x
; else echo
" CC $@"; fi
; \
35 $(CC
) $(CPPFLAGS
) $(LOCAL_CPPFLAGS
) $(AM_CFLAGS
) $(AM_CPPFLAGS
) \
38 hello
: hello.o lttng-ust-provider-hello.a
39 @if
$(AM_V_P
); then set
-x
; else echo
" CCLD $@"; fi
; \
40 $(CC
) -o
$@
$(LDFLAGS
) $(CPPFLAGS
) $(AM_LDFLAGS
) $(AM_CFLAGS
) \
41 $(CFLAGS
) hello.o lttng-ust-provider-hello.a
$(LIBS
)