aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSimon Wilson <simonwilson@google.com>2011-07-14 12:02:05 -0700
committerSimon Wilson <simonwilson@google.com>2011-07-14 12:06:23 -0700
commitdd84573ac22e3ec11f8edbf79f82384c01355ec6 (patch)
tree1f2282b1c8a340c73623f8ada757c8e028a8cf32 /Makefile
parentd6458e6f62ea7d09a82f78f509df58c452358ae8 (diff)
Add tinycap utility to capture PCM riff/wave files
This adds a utility to capture audio with a specified number of parameters. Capturing continues until a signal is received (ctrl-c). Contains some contributions from Chris Kelly <c-kelly@ti.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2013d59..63cbea4 100644
--- a/Makefile
+++ b/Makefile
@@ -3,11 +3,14 @@ INC = include
OBJECTS = mixer.o pcm.o
LIB = libtinyalsa.so
-all: $(LIB) tinyplay tinymix
+all: $(LIB) tinyplay tinycap tinymix
tinyplay: $(LIB) tinyplay.o
gcc tinyplay.o -L. -ltinyalsa -o tinyplay
+tinycap: $(LIB) tinycap.o
+ gcc tinycap.o -L. -ltinyalsa -o tinycap
+
tinymix: $(LIB) tinymix.o
gcc tinymix.o -L. -ltinyalsa -o tinymix
@@ -18,4 +21,5 @@ $(LIB): $(OBJECTS)
gcc $(CFLAGS) $< -I$(INC)
clean:
- rm $(LIB) $(OBJECTS) tinyplay.o tinyplay
+ rm $(LIB) $(OBJECTS) tinyplay.o tinyplay tinycap.o tinycap \
+ tinymix.o tinymix