diff options
-rw-r--r-- | Makefile | 13 |
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) |