aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSimon Wilson <ksattic@gmail.com>2011-06-02 23:40:00 -0700
committerSimon Wilson <ksattic@gmail.com>2011-06-02 23:40:00 -0700
commita0ef465b3140a827b149146cd51c9489859db33d (patch)
treecffc556e9bbe7315211185d3069c944303d1eebd /Makefile
parent44c6c359e72110e4716203115a787f90454ee8c3 (diff)
Add tinyplay utility to play PCM riff/wave files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 589ff4c..aa1310b 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,9 @@ INC = include
OBJECTS = mixer.o pcm.o
LIB = libtinyalsa.so
+tinyplay: $(LIB) tinyplay.o
+ gcc tinyplay.o -L. -ltinyalsa -o tinyplay
+
libtinyalsa.so: $(OBJECTS)
gcc -shared $(OBJECTS) -o $(LIB)
@@ -10,4 +13,4 @@ libtinyalsa.so: $(OBJECTS)
gcc $(CFLAGS) $< -I$(INC)
clean:
- rm $(LIB) $(OBJECTS)
+ rm $(LIB) $(OBJECTS) tinyplay.o tinyplay