blob: aa1310b0e469d0c890c56177b4b5c8374fbee828 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
CFLAGS = -c -fPIC
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)
.c.o:
gcc $(CFLAGS) $< -I$(INC)
clean:
rm $(LIB) $(OBJECTS) tinyplay.o tinyplay
|