These two examples use the sin() function.
Unified · Split
| @@ -17,6 +17,10 @@ EXAMPLES= decoding_encoding \ · 16 unmodified lines | |||
| 17 | 17 | ||
| 18 | OBJS=$(addsuffix .o,$(EXAMPLES)) | 18 | OBJS=$(addsuffix .o,$(EXAMPLES)) |
| 19 | 19 | ||
| 20 | # the following examples make explicit use of the math library | ||
| 21 | decoding_encoding: LDLIBS += -lm | ||
| 22 | muxing: LDLIBS += -lm | ||
| 23 | |||
| 20 | %: %.o | 24 | %: %.o |
| 21 | $(CC) $< $(LDLIBS) -o $@ | 25 | $(CC) $< $(LDLIBS) -o $@ |
| 22 | 26 | ||