From 6b3977b50823dfb7eacb10534f82a393b51fc6d0 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 19 Aug 2001 01:25:04 +0000 Subject: [PATCH] Separated soname into separate definition --- lib/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index 3fff0d0..1269b0f 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -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 - -- 2.26.2