aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/Makefile b/examples/Makefile
index c52d367..650966d 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -11,9 +11,11 @@ EXAMPLES += pcm-writei
.PHONY: all
all: $(EXAMPLES)
-pcm-readi: pcm-readi.c -ltinyalsa -ldl
+pcm-readi pcm-writei: LDLIBS+=-ldl
-pcm-writei: pcm-writei.c -ltinyalsa -ldl
+pcm-readi: pcm-readi.c -ltinyalsa
+
+pcm-writei: pcm-writei.c -ltinyalsa
.PHONY: clean
clean: