doc/examples: link decoding_encoding and muxing with math lib.
authorClément Bœsch <ubitux@gmail.com>
Wed, 9 May 2012 21:06:43 +0000 (23:06 +0200)
committerClément Bœsch <ubitux@gmail.com>
Sat, 12 May 2012 15:59:41 +0000 (17:59 +0200)
These two examples use the sin() function.

doc/examples/Makefile

index 99c04ff..9bb68ae 100644 (file)
@@ -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 $@