Separated soname into separate definition
authorDavid Schleef <ds@schleef.org>
Sun, 19 Aug 2001 01:25:04 +0000 (01:25 +0000)
committerDavid Schleef <ds@schleef.org>
Sun, 19 Aug 2001 01:25:04 +0000 (01:25 +0000)
lib/Makefile

index 3fff0d01b1b6a157113f8c705621ae803e969b42..1269b0f82badefe0f447aa7d941c0c94fb0a28f8 100644 (file)
@@ -7,9 +7,11 @@ CFLAGS += -fPIC -I../include -I.
 OBJS=comedi.o timer.o sv.o range.o ioctl.o filler.o timed.o error.o \
        dio.o data.o get.o cmd.o buffer.o
 
+SONAME=libcomedi.so.0
+
 libcomedi.a: $(OBJS)
        #$(CC) -shared -Wl,-soname,libcomedi.so,-T,version_script -o libcomedi.so.${VERSION_CODE} $(OBJS) -lm
-       $(CC) -shared -Wl,-soname,libcomedi.so.0 -o libcomedi.so.${version} $(OBJS) -lm
+       $(CC) -shared -Wl,-soname,$(SONAME) -o libcomedi.so.${version} $(OBJS) -lm
        $(AR) rs libcomedi.a $(OBJS)
        ln -sf libcomedi.so.${version} libcomedi.so
        ln -sf libcomedi.so.${version} libcomedi.so.0
@@ -17,4 +19,3 @@ libcomedi.a: $(OBJS)
 clean:
        rm -f libcomedi.a libcomedi.so* *.o
 
-