CFLAGS = -c -fPIC INC = include OBJECTS = mixer.o pcm.o LIB = libtinyalsa.so CROSS_COMPILE = all: $(LIB) tinyplay tinycap tinymix tinyplay: $(LIB) tinyplay.o $(CROSS_COMPILE)gcc tinyplay.o -L. -ltinyalsa -o tinyplay tinycap: $(LIB) tinycap.o $(CROSS_COMPILE)gcc tinycap.o -L. -ltinyalsa -o tinycap tinymix: $(LIB) tinymix.o $(CROSS_COMPILE)gcc tinymix.o -L. -ltinyalsa -o tinymix $(LIB): $(OBJECTS) $(CROSS_COMPILE)gcc -shared $(OBJECTS) -o $(LIB) .c.o: $(CROSS_COMPILE)gcc $(CFLAGS) $< -I$(INC) clean: -rm $(LIB) $(OBJECTS) tinyplay.o tinyplay tinycap.o tinycap \ tinymix.o tinymix