aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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