diff --git a/Makefile.in b/Makefile.in index 9bdc0179..a3c42a29 100644 --- a/Makefile.in +++ b/Makefile.in @@ -19,7 +19,10 @@ LDCONFIG:=true MKDEPS := ./config.status PROGS:= yate YLIB := libyate.so.@PACKAGE_VERSION@ -SLIBS:= $(YLIB) libyate.so libyatesig.so.@PACKAGE_VERSION@ libyatesig.so +SLIBS:= $(YLIB) libyate.so \ + libyatesig.so.@PACKAGE_VERSION@ libyatesig.so \ + libyatemgcp.so.@PACKAGE_VERSION@ libyatemgcp.so \ + libyatejingle.so.@PACKAGE_VERSION@ libyatejingle.so INCS := yateclass.h yatemime.h yatengine.h yatephone.h yatecbase.h GENS := yateversn.h LIBS := diff --git a/libs/yjingle/Makefile.in b/libs/yjingle/Makefile.in index f65d1448..d4b289ef 100644 --- a/libs/yjingle/Makefile.in +++ b/libs/yjingle/Makefile.in @@ -14,6 +14,10 @@ INCFILES := @top_srcdir@/yateclass.h @srcdir@/../yxml/tinystr.h @srcdir@/../yxml PROGS= LIBS = libyatejingle.a OBJS = xmlparser.o xmpputils.o jbstream.o jbengine.o session.o jgengine.o +LIBD_DEV:= libyatejingle.so +LIBD_VER:= $(LIBD_DEV).@PACKAGE_VERSION@ +LIBD:= ../../$(LIBD_VER) ../../$(LIBD_DEV) +YXML:= ../yxml/libyatexml.a LOCALFLAGS = LOCALLIBS = @@ -27,7 +31,7 @@ exec_prefix = @exec_prefix@ -include YateLocal.mak .PHONY: all debug ddebug xdebug -all: $(LIBS) $(PROGS) +all: $(LIBS) $(LIBD) $(PROGS) debug: $(MAKE) all DEBUG=-g3 MODSTRIP= @@ -44,7 +48,7 @@ strip: all .PHONY: clean clean: - @-$(RM) $(PROGS) $(LIBS) $(OBJS) core 2>/dev/null + @-$(RM) $(PROGS) $(LIBS) $(LIBD) $(OBJS) core 2>/dev/null %.o: @srcdir@/%.cpp $(INCFILES) $(COMPILE) -c $< @@ -52,5 +56,14 @@ clean: Makefile: @srcdir@/Makefile.in ../../config.status cd ../.. && ./config.status -libyatejingle.a: $(OBJS) +../../$(LIBD_VER): $(OBJS) $(YXML) + $(LINK) -shared -o $@ -Wl,--soname=$(LIBD_VER) $^ + +../../$(LIBD_DEV): ../../$(LIBD_VER) + cd ../.. && ln -sf $(LIBD_VER) $(LIBD_DEV) + +$(LIBS): $(OBJS) $(AR) rcs $@ $^ + +$(YXML): + $(MAKE) -C ../yxml diff --git a/libs/ymgcp/Makefile.in b/libs/ymgcp/Makefile.in index 7d6ef49a..d3ba92dc 100644 --- a/libs/ymgcp/Makefile.in +++ b/libs/ymgcp/Makefile.in @@ -14,6 +14,9 @@ INCFILES := @top_srcdir@/yateclass.h @srcdir@/yatemgcp.h PROGS= LIBS = libyatemgcp.a OBJS = engine.o transaction.o message.o endpoint.o +LIBD_DEV:= libyatemgcp.so +LIBD_VER:= $(LIBD_DEV).@PACKAGE_VERSION@ +LIBD:= ../../$(LIBD_VER) ../../$(LIBD_DEV) LOCALFLAGS = LOCALLIBS = @@ -27,7 +30,7 @@ exec_prefix = @exec_prefix@ -include YateLocal.mak .PHONY: all debug ddebug xdebug -all: $(LIBS) $(PROGS) +all: $(LIBS) $(LIBD) $(PROGS) debug: $(MAKE) all DEBUG=-g3 MODSTRIP= @@ -44,7 +47,7 @@ strip: all .PHONY: clean clean: - @-$(RM) $(PROGS) $(LIBS) $(OBJS) core 2>/dev/null + @-$(RM) $(PROGS) $(LIBS) $(LIBD) $(OBJS) core 2>/dev/null %.o: @srcdir@/%.cpp $(INCFILES) $(COMPILE) -c $< @@ -52,5 +55,11 @@ clean: Makefile: @srcdir@/Makefile.in ../../config.status cd ../.. && ./config.status -libyatemgcp.a: $(OBJS) +../../$(LIBD_VER): $(OBJS) + $(LINK) -shared -o $@ -Wl,--soname=$(LIBD_VER) $^ + +../../$(LIBD_DEV): ../../$(LIBD_VER) + cd ../.. && ln -sf $(LIBD_VER) $(LIBD_DEV) + +$(LIBS): $(OBJS) $(AR) rcs $@ $^ diff --git a/modules/Makefile.in b/modules/Makefile.in index a22301a4..efd05e75 100644 --- a/modules/Makefile.in +++ b/modules/Makefile.in @@ -232,17 +232,17 @@ yiaxchan.yate: ../libs/yiax/libyateiax.a yiaxchan.yate: LOCALFLAGS = -I@top_srcdir@/libs/yiax yiaxchan.yate: LOCALLIBS = -L../libs/yiax -lyateiax -yjinglechan.yate: ../libs/yxml/libyatexml.a ../libs/yjingle/libyatejingle.a +yjinglechan.yate: ../libyatejingle.so yjinglechan.yate: LOCALFLAGS = -I@top_srcdir@/libs/yxml -I@top_srcdir@/libs/yjingle -yjinglechan.yate: LOCALLIBS = -L../libs/yjingle -L../libs/yxml -lyatejingle -lyatexml +yjinglechan.yate: LOCALLIBS = -lyatejingle server/dbpbx.yate server/pbxassist.yate: ../libs/ypbx/libyatepbx.a server/dbpbx.yate server/pbxassist.yate: LOCALFLAGS = -I@top_srcdir@/libs/ypbx server/dbpbx.yate server/pbxassist.yate: LOCALLIBS = ../libs/ypbx/libyatepbx.a -server/mgcpgw.yate server/mgcpca.yate: ../libs/ymgcp/libyatemgcp.a +server/mgcpgw.yate server/mgcpca.yate: ../libyatemgcp.so server/mgcpgw.yate server/mgcpca.yate: LOCALFLAGS = -I@top_srcdir@/libs/ymgcp -server/mgcpgw.yate server/mgcpca.yate: LOCALLIBS = ../libs/ymgcp/libyatemgcp.a +server/mgcpgw.yate server/mgcpca.yate: LOCALLIBS = -lyatemgcp ilbccodec.yate: ../libs/ilbc/libilbc.a ilbccodec.yate: LOCALLIBS = ../libs/ilbc/libilbc.a @@ -293,7 +293,7 @@ qt4/updater.yate: LOCALLIBS = @QT4_LIB_NET@ ../libs/yiax/libyateiax.a: $(MAKE) -C ../libs/yiax -../libs/ymgcp/libyatemgcp.a: +../libyatemgcp.so ../libs/ymgcp/libyatemgcp.a: $(MAKE) -C ../libs/ymgcp ../libs/ymodem/libyatemodem.a: @@ -302,7 +302,7 @@ qt4/updater.yate: LOCALLIBS = @QT4_LIB_NET@ ../libs/yxml/libyatexml.a: $(MAKE) -C ../libs/yxml -../libs/yjingle/libyatejingle.a: +../libyatejingle.so ../libs/yjingle/libyatejingle.a: $(MAKE) -C ../libs/yjingle ../libs/ypbx/libyatepbx.a: