Revert "ust-event.h: use BYTE_ORDER instead of __BYTE_ORDER"
[lttng-ust.git] / doc / examples / easy-ust / Makefile
CommitLineData
4807c6de
MD
1# Copyright (C) 2011-2012 Matthew Khouzam <matthew.khouzam@ericsson.com>
2# Copyright (C) 2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3#
4# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
5# OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
6#
7# Permission is hereby granted to use or copy this program for any
8# purpose, provided the above notices are retained on all copies.
9# Permission to modify the code and to distribute modified code is
10# granted, provided the above notices are retained, and a notice that
11# the code was modified is included with the above copyright notice.
12
13# This makefile is not using automake so that people can see how to make
14# simply. It builds a program with a statically embedded tracepoint
15# provider probe.
16# the "html" target helps for documentation (req. code2html)
17
18CC = gcc
90cefaa3
MD
19LIBS = -ldl -llttng-ust # On Linux
20#LIBS = -lc -llttng-ust # On BSD
4807c6de
MD
21CFLAGS = -I.
22
23all: sample
24
25sample: sample.o tp.o
26 $(CC) $(LIBS) -o $@ $^
27
28sample.o: sample.c sample_component_provider.h
29 $(CC) $(CFLAGS) -c -o $@ $<
30
31tp.o: tp.c sample_component_provider.h
32 $(CC) $(CFLAGS) -c -o $@ $<
33
34html: sample_component_provider.html sample.html tp.html
35
36%.html: %.c
37 code2html -lc $< $@
38
39%.html : %.h
40 code2html -lc $< $@
41
42.PHONY: clean
43clean:
44 rm -f *.html
45 rm -f *.o sample
This page took 0.024301 seconds and 4 git commands to generate.