summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-05-09 23:06:43 +0200
committerClément Bœsch <ubitux@gmail.com>2012-05-12 17:59:41 +0200
commit2f197a20cf4277aa86d6a22363064f7ed3318bbb (patch)
treeb848d17e197903496f6289d4e43119b05f8a9ed3 /doc/examples
parent9a19341e6e7965818898bf624dbf8d5bb418f3d3 (diff)
doc/examples: link decoding_encoding and muxing with math lib.
These two examples use the sin() function.
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/examples/Makefile b/doc/examples/Makefile
index 99c04ffda5..9bb68ae894 100644
--- a/doc/examples/Makefile
+++ b/doc/examples/Makefile
@@ -17,6 +17,10 @@ EXAMPLES= decoding_encoding \
OBJS=$(addsuffix .o,$(EXAMPLES))
+# the following examples make explicit use of the math library
+decoding_encoding: LDLIBS += -lm
+muxing: LDLIBS += -lm
+
%: %.o
$(CC) $< $(LDLIBS) -o $@