1 Add support for building shared libraries
2 --- indri-5.4/src/Makefile 2013-09-04 06:16:24.212280233 -0700
3 +++ indri-5.4/src/Makefile 2013-09-04 06:15:35.997458620 -0700
5 # how to make a library from object files
6 $(OBJLIB): $(SPECHEADERS) $(OBJ) $(SPECOBJS)
7 rm -f $@; $(AR) -rs $@ $(OBJ)
8 + $(CC) $(CFLAGS) -shared -o $(OBJLIB:.a=.so).1 -h $(OBJLIB:.a=.so).1 $(OBJ) -Wl,-z -Wl,allextract ../contrib/lemur/obj/liblemur.a -Wl,-z -Wl,allextract ../contrib/antlr/obj/libantlr.a
11 $(SPECHEADERS): $(QUERYSPEC)
14 $(INSTALL_DATA) $(ALLHEADER) $(pkgincludedir)
15 $(AR) -rs $(libdir)/$(INDRILIB) $(OBJ)
16 + cp $(OBJLIB:.a=.so).1 $(libdir)
19 awk -f ../src/version-stamper "stamp=`date`" ../include/indri/indri-platform.h > ../include/indri/indri-platform.h2