aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSimon Wilson <simonwilson@google.com>2011-06-03 18:27:08 -0700
committerSimon Wilson <simonwilson@google.com>2011-06-03 18:28:26 -0700
commit98be0055ff47332102cf7b9fc35b962e3b69a22a (patch)
treef0afe4e510db0cf36c0d9691fa84b14769ce163c /Makefile
parenta0ef465b3140a827b149146cd51c9489859db33d (diff)
Fix issues with tinyplay
- Add to Android.mk - Add "all" rule to Makefile - Remove redundant old play code from tinyplay.c - Add error checking to tinyplay
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index aa1310b..ac40b6b 100644
--- a/Makefile
+++ b/Makefile
@@ -3,10 +3,12 @@ INC = include
OBJECTS = mixer.o pcm.o
LIB = libtinyalsa.so
+all: $(LIB) tinyplay
+
tinyplay: $(LIB) tinyplay.o
gcc tinyplay.o -L. -ltinyalsa -o tinyplay
-libtinyalsa.so: $(OBJECTS)
+$(LIB): $(OBJECTS)
gcc -shared $(OBJECTS) -o $(LIB)
.c.o: