These two examples use the sin() function.
Unified · Split
| @@ -17,6 +17,10 @@ EXAMPLES= decoding_encoding \ · 16 unmodified lines | ||
| 17 | 17 | |
| 18 | 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 | 24 | %: %.o |
| 21 | 25 | $(CC) $< $(LDLIBS) -o $@ |
| 22 | 26 | |