julius/julius-4.4.2.1-sharedlibs.p...

199 lines
7.6 KiB
Diff

diff -up julius-4.4.2.1/adinrec/Makefile.in.shared julius-4.4.2.1/adinrec/Makefile.in
--- julius-4.4.2.1/adinrec/Makefile.in.shared 2017-11-07 12:39:25.800762025 -0500
+++ julius-4.4.2.1/adinrec/Makefile.in 2017-11-07 12:39:25.802761977 -0500
@@ -28,7 +28,7 @@ TARGET=adinrec@EXEEXT@
all: $(TARGET)
-$(TARGET): adinrec.c $(LIBSENT)/libsent.a $(LIBJULIUS)/libjulius.a
+$(TARGET): adinrec.c $(LIBSENT)/libsent.so.0.0.0 $(LIBJULIUS)/libjulius.so.0.0.0
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ adinrec.c $(LDFLAGS)
############################################################
diff -up julius-4.4.2.1/adintool/Makefile.in.shared julius-4.4.2.1/adintool/Makefile.in
--- julius-4.4.2.1/adintool/Makefile.in.shared 2016-12-21 10:16:05.000000000 -0500
+++ julius-4.4.2.1/adintool/Makefile.in 2017-11-07 12:39:25.803761953 -0500
@@ -37,10 +37,10 @@ TARGET=adintool@EXEEXT@ $(GUITARGET)
all: $(TARGET)
-adintool@EXEEXT@: $(OBJ) $(LIBSENT)/libsent.a $(LIBJULIUS)/libjulius.a
+adintool@EXEEXT@: $(OBJ) $(LIBSENT)/libsent.so.0.0.0 $(LIBJULIUS)/libjulius.so.0.0.0
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(OBJ) $(LDFLAGS)
-adintool-gui@EXEEXT@: $(GUIOBJ) $(LIBSENT)/libsent.a $(LIBJULIUS)/libjulius.a
+adintool-gui@EXEEXT@: $(GUIOBJ) $(LIBSENT)/libsent.so.0.0.0 $(LIBJULIUS)/libjulius.so.0.0.0
$(CC) $(CFLAGS) $(CPPFLAGS) $(SDL_CFLAGS) -o $@ $(GUIOBJ) $(LDFLAGS) $(SDL_LDFLAGS)
install: install.bin
diff -up julius-4.4.2.1/binlm2arpa/Makefile.in.shared julius-4.4.2.1/binlm2arpa/Makefile.in
--- julius-4.4.2.1/binlm2arpa/Makefile.in.shared 2017-11-07 12:41:04.097413660 -0500
+++ julius-4.4.2.1/binlm2arpa/Makefile.in 2017-11-07 12:41:19.443047044 -0500
@@ -24,7 +24,7 @@ TARGET=binlm2arpa@EXEEXT@
all: $(TARGET)
-$(TARGET): $(OBJ) $(LIBSENT)/libsent.a
+$(TARGET): $(OBJ) $(LIBSENT)/libsent.so.0.0.0
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(OBJ) $(LDFLAGS)
install: install.bin
diff -up julius-4.4.2.1/generate-ngram/Makefile.in.shared julius-4.4.2.1/generate-ngram/Makefile.in
--- julius-4.4.2.1/generate-ngram/Makefile.in.shared 2017-11-07 12:39:25.800762025 -0500
+++ julius-4.4.2.1/generate-ngram/Makefile.in 2017-11-07 12:39:25.803761953 -0500
@@ -27,7 +27,7 @@ TARGET=generate-ngram@EXEEXT@
all: $(TARGET)
-$(TARGET): $(OBJ) $(LIBSENT)/libsent.a
+$(TARGET): $(OBJ) $(LIBSENT)/libsent.so.0.0.0
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(OBJ) $(LDFLAGS)
install: install.bin
diff -up julius-4.4.2.1/julius/Makefile.in.shared julius-4.4.2.1/julius/Makefile.in
--- julius-4.4.2.1/julius/Makefile.in.shared 2017-11-07 12:39:25.801762001 -0500
+++ julius-4.4.2.1/julius/Makefile.in 2017-11-07 12:39:25.803761953 -0500
@@ -53,7 +53,7 @@ record.o \
all: $(TARGET)
-$(TARGET): $(LIBSENT)/libsent.a $(LIBJULIUS)/libjulius.a $(OBJ)
+$(TARGET): $(LIBSENT)/libsent.so.0.0.0 $(LIBJULIUS)/libjulius.so.0.0.0 $(OBJ)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(OBJ) $(LDFLAGS) $(GTK_LIBS)
############################################################
diff -up julius-4.4.2.1/libjulius/Makefile.in.shared julius-4.4.2.1/libjulius/Makefile.in
--- julius-4.4.2.1/libjulius/Makefile.in.shared 2017-11-07 12:39:25.801762001 -0500
+++ julius-4.4.2.1/libjulius/Makefile.in 2017-11-07 12:39:25.803761953 -0500
@@ -16,8 +16,8 @@ SHELL=/bin/sh
LIBSENT=../libsent
CC=@CC@
-CFLAGS=@CFLAGS@
-CPPFLAGS=-Iinclude -I$(LIBSENT)/include @CPPFLAGS@ `$(LIBSENT)/libsent-config --cflags`
+CFLAGS=@CFLAGS@ -fPIC
+CPPFLAGS=-Iinclude -I$(LIBSENT)/include @CPPFLAGS@ -fPIC `$(LIBSENT)/libsent-config --cflags`
LDFLAGS=@LDFLAGS@ @LIBS@ -L$(LIBSENT) `$(LIBSENT)/libsent-config --libs`
RM=@RM@ -f
AR=@AR@ r
@@ -37,7 +37,9 @@ INSTALL_PROGRAM=@INSTALL_PROGRAM@
############################################################
PKGCONF_FILE = julius-@JULIUS_MAJOR_VERSION@.pc
-TARGET = libjulius.a
+BASESHAREDLIB=libjulius.so
+SHAREDLIB=$(BASESHAREDLIB).0
+TARGET=$(SHAREDLIB).0.0
OBJ = \
src/recogmain.o \
@@ -85,8 +87,11 @@ src/version.o
all: $(TARGET)
$(TARGET): $(OBJ)
- $(AR) $@ $?
- $(RANLIB) $@
+ $(CC) $(CFLAGS) -shared -Wl,-soname,$(SHAREDLIB) -o $@ $?
+ ln -s $(TARGET) $(SHAREDLIB)
+ ln -s $(TARGET) $(BASESHAREDLIB)
+ # $(AR) $@ $?
+ # $(RANLIB) $@
############################################################
@@ -96,6 +101,8 @@ install.lib: $(TARGET)
${INSTALL} -d ${DESTDIR}${libdir}
${INSTALL_DATA} $(TARGET) ${DESTDIR}${libdir}
${INSTALL_DATA} $(PKGCONF_FILE) ${DESTDIR}${pkgconfigdir}
+ ln -s $(TARGET) ${DESTDIR}${libdir}/$(SHAREDLIB)
+ ln -s $(TARGET) ${DESTDIR}${libdir}/$(BASESHAREDLIB)
install.include:
${INSTALL} -d ${DESTDIR}${includedir}/julius
diff -up julius-4.4.2.1/libsent/Makefile.in.shared julius-4.4.2.1/libsent/Makefile.in
--- julius-4.4.2.1/libsent/Makefile.in.shared 2017-11-07 12:39:25.801762001 -0500
+++ julius-4.4.2.1/libsent/Makefile.in 2017-11-07 12:39:25.803761953 -0500
@@ -12,14 +12,16 @@ SHELL=/bin/sh
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
CC=@CC@
-CFLAGS=@CFLAGS@
-CPPFLAGS=-Iinclude @CPPFLAGS@ @SOUNDINC@ @DEFS@
+CFLAGS=@CFLAGS@ -fPIC
+CPPFLAGS=-Iinclude @CPPFLAGS@ -fPIC @SOUNDINC@ @DEFS@
# LDFLAGS=@LDFLAGS@ @LIBS@
RM=@RM@ -f
AR=@AR@ r
RANLIB=@RANLIB@
PKGCONF_FILE = sent-@LIBSENT_MAJOR_VERSION@.pc
-TARGET=libsent.a
+BASESHAREDLIB=libsent.so
+SHAREDLIB=$(BASESHAREDLIB).0
+TARGET=$(SHAREDLIB).0.0
## install
prefix=@prefix@
@@ -144,8 +146,11 @@ src/wav2mfcc/para.o \
all: $(TARGET)
$(TARGET): $(OBJ)
- $(AR) $@ $?
- $(RANLIB) $@
+ $(CC) $(CFLAGS) -shared -Wl,-soname,$(SHAREDLIB) -o $@ $?
+ ln -s $(TARGET) $(SHAREDLIB)
+ ln -s $(TARGET) $(BASESHAREDLIB)
+ # $(AR) $@ $?
+ # $(RANLIB) $@
src/phmm/calc_dnn_fma.o: src/phmm/calc_dnn_fma.c
$(CC) $(CFLAGS) $(CPPFLAGS) @SIMD_FMA_CFLAGS@ -o $@ -c $<
@@ -171,6 +176,8 @@ install.lib: $(TARGET)
${INSTALL} -d ${DESTDIR}${libdir}
${INSTALL_DATA} $(TARGET) ${DESTDIR}${libdir}
${INSTALL_DATA} $(PKGCONF_FILE) ${DESTDIR}${pkgconfigdir}
+ ln -s $(TARGET) ${DESTDIR}${libdir}/$(SHAREDLIB)
+ ln -s $(TARGET) ${DESTDIR}${libdir}/$(BASESHAREDLIB)
install.include:
${INSTALL} -d ${DESTDIR}${includedir}/sent
diff -up julius-4.4.2.1/mkbingram/Makefile.in.shared julius-4.4.2.1/mkbingram/Makefile.in
--- julius-4.4.2.1/mkbingram/Makefile.in.shared 2017-11-07 12:39:25.801762001 -0500
+++ julius-4.4.2.1/mkbingram/Makefile.in 2017-11-07 12:39:25.803761953 -0500
@@ -24,7 +24,7 @@ TARGET=mkbingram@EXEEXT@
all: $(TARGET)
-$(TARGET): $(OBJ) $(LIBSENT)/libsent.a
+$(TARGET): $(OBJ) $(LIBSENT)/libsent.so.0.0.0
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(OBJ) $(LDFLAGS)
install: install.bin
diff -up julius-4.4.2.1/mkbinhmm/Makefile.in.shared julius-4.4.2.1/mkbinhmm/Makefile.in
--- julius-4.4.2.1/mkbinhmm/Makefile.in.shared 2017-11-07 12:39:25.801762001 -0500
+++ julius-4.4.2.1/mkbinhmm/Makefile.in 2017-11-07 12:39:25.803761953 -0500
@@ -23,10 +23,10 @@ INSTALL=@INSTALL@
all: mkbinhmm@EXEEXT@ mkbinhmmlist@EXEEXT@
-mkbinhmm@EXEEXT@: mkbinhmm.o $(LIBSENT)/libsent.a
+mkbinhmm@EXEEXT@: mkbinhmm.o $(LIBSENT)/libsent.so.0.0.0
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ mkbinhmm.o $(LDFLAGS)
-mkbinhmmlist@EXEEXT@: mkbinhmmlist.o $(LIBSENT)/libsent.a
+mkbinhmmlist@EXEEXT@: mkbinhmmlist.o $(LIBSENT)/libsent.so.0.0.0
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ mkbinhmmlist.o $(LDFLAGS)
install: install.bin
diff -up julius-4.4.2.1/mkss/Makefile.in.shared julius-4.4.2.1/mkss/Makefile.in
--- julius-4.4.2.1/mkss/Makefile.in.shared 2017-11-07 12:39:25.802761977 -0500
+++ julius-4.4.2.1/mkss/Makefile.in 2017-11-07 12:39:25.803761953 -0500
@@ -28,7 +28,7 @@ TARGET=mkss@EXEEXT@
all: $(TARGET)
-$(TARGET): mkss.c $(LIBSENT)/libsent.a $(LIBJULIUS)/libjulius.a
+$(TARGET): mkss.c $(LIBSENT)/libsent.so.0.0.0 $(LIBJULIUS)/libjulius.so.0.0.0
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ mkss.c $(LDFLAGS)
############################################################