1 # SPDX-License-Identifier: MIT
3 # Copyright (C) 2011-2012 Matthew Khouzam <matthew.khouzam@ericsson.com>
4 # Copyright (C) 2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 # This makefile is not using automake so that users can see how to build
7 # a program with a statically embedded tracepoint provider probe.
8 # the "html" target helps for documentation (req. code2html)
10 # This makefile is purposefully kept simple to support GNU and BSD make.
12 LIBS
= -ldl
-llttng-ust
# On Linux
13 #LIBS = -lc -llttng-ust # On BSD
20 @if
$(AM_V_P
); then set
-x
; else echo
" CCLD $@"; fi
; \
21 $(CC
) -o
$@
$(LDFLAGS
) $(AM_CFLAGS
) $(AM_LDFLAGS
) $(CFLAGS
) \
24 sample.o
: sample.c sample_component_provider.h
25 @if
$(AM_V_P
); then set
-x
; else echo
" CC $@"; fi
; \
26 $(CC
) $(CPPFLAGS
) $(LOCAL_CPPFLAGS
) $(AM_CFLAGS
) $(AM_CPPFLAGS
) \
29 tp.o
: tp.c sample_component_provider.h
30 @if
$(AM_V_P
); then set
-x
; else echo
" CC $@"; fi
; \
31 $(CC
) $(CPPFLAGS
) $(LOCAL_CPPFLAGS
) $(AM_CFLAGS
) $(AM_CPPFLAGS
) \
34 html
: sample_component_provider.html sample.html tp.html