# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../jbigkit/shared-variant.patch # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- T2-COPYRIGHT-NOTE-END --- I like shared objects ... - Rene Rebe --- jbigkit/libjbig/Makefile 2004-06-08 16:40:06.000000000 +0200 +++ jbigkit-fixed/libjbig/Makefile 2005-02-23 09:16:22.358023704 +0100 @@ -5,9 +5,9 @@ CC = gcc # Options for the compiler: A high optimization level is suggested -CFLAGS = -O -Wall -ansi -pedantic +CFLAGS = -O -Wall -ansi -pedantic -fPIC -all: libjbig.a tstcodec +all: libjbig.a libjbig.so tstcodec tstcodec: tstcodec.c jbig.c jbig.h jbig_tab.o $(CC) $(CFLAGS) -o tstcodec -DTEST_CODEC tstcodec.c jbig.c \ @@ -18,6 +18,9 @@ ar rc libjbig.a jbig.o jbig_tab.o -ranlib libjbig.a +libjbig.so: jbig.o jbig_tab.o + $(CC) $(CFLAGS) -shared jbig.o jbig_tab.o -o libjbig.so + jbig.o: jbig.c jbig.h test: tstcodec @@ -27,4 +30,4 @@ ./tstcodec $@ clean: - rm -f *.o *~ core gmon.out dbg_d\=??.pbm tstcodec t82test.pbm + rm -f *.o *.so *~ core gmon.out dbg_d\=??.pbm tstcodec t82test.pbm