fx2/linux/libstrm/Makefile

14 lines
309 B
Makefile
Raw Permalink Normal View History

2013-10-02 10:43:54 +02:00
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