aboutsummaryrefslogtreecommitdiff
path: root/examples/Makefile
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2016-12-04 13:17:53 -0800
committerTaylor Holberton <taylorcholberton@gmail.com>2016-12-04 13:17:53 -0800
commit5317e1ce90f781458e3e75585a6f46ba2ea788f2 (patch)
tree296a8ba9e7f4bc62b04519f928137e041794544e /examples/Makefile
parent9d1b7f22f5d5c2a02fa450e73a24914b700f9bb9 (diff)
Added examples for basic IO
Added an example of pcm_writei usage and an example of pcm_readi usage. Both examples use a common file called 'audio.raw'.
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/Makefile b/examples/Makefile
new file mode 100644
index 0000000..235f348
--- /dev/null
+++ b/examples/Makefile
@@ -0,0 +1,12 @@
+CC = gcc
+CFLAGS = -Wall -Wextra -Werror -Wfatal-errors
+
+VPATH = ../src
+
+.PHONY: all
+all: pcm-readi pcm-writei
+
+pcm-readi: pcm-readi.c -ltinyalsa
+
+pcm-writei: pcm-writei.c -ltinyalsa
+