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