aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Wilson <ksattic@gmail.com>2011-06-02 23:38:14 -0700
committerSimon Wilson <ksattic@gmail.com>2011-06-02 23:38:14 -0700
commit44c6c359e72110e4716203115a787f90454ee8c3 (patch)
tree8942c517b999c15f9717d1147254311f3ff80974
parent1bd580fcba8f8dc4587d5d8c42edd85857b11b65 (diff)
Add Makefile for libtinyalsa
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..589ff4c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+CFLAGS = -c -fPIC
+INC = include
+OBJECTS = mixer.o pcm.o
+LIB = libtinyalsa.so
+
+libtinyalsa.so: $(OBJECTS)
+ gcc -shared $(OBJECTS) -o $(LIB)
+
+.c.o:
+ gcc $(CFLAGS) $< -I$(INC)
+
+clean:
+ rm $(LIB) $(OBJECTS)