CC = gcc CFLAGS=-Wall -Werror -O2 -I. -c -fPIC SRCS = usb2strm.c OBJS = $(SRCS:%.c=%.o) libstrm: ${OBJS} ${CC} -shared -Wl,-soname,$@.so.1 -o $@.so.1.0.1 $^ -lusb @if [ ! -e $@.so ]; then ln -s $@.so.1.0.1 $@.so; fi @if [ ! -e $@.so.1 ]; then ln -s $@.so.1.0.1 $@.so.1; fi clean: rm -f *.o *.so.* *.so