--- libjbig/Makefile.orig	Wed Jun 11 10:57:56 2003
+++ libjbig/Makefile	Tue Mar  2 01:30:20 2004
@@ -7,11 +7,15 @@
 # Options for the compiler: A high optimization level is suggested
 CFLAGS = -O -Wall -ansi -pedantic
 
-all: libjbig.a tstcodec
+all: libjbig.1.dylib libjbig.a tstcodec
 
 tstcodec: tstcodec.c jbig.c jbig.h jbig_tab.o
 	$(CC) $(CFLAGS) -o tstcodec -DTEST_CODEC tstcodec.c jbig.c \
 	jbig_tab.o
+
+libjbig.1.dylib: jbig.o jbig_tab.o
+	rm -f libjbig.1.dylib
+	gcc -fPIC -dynamiclib -install_name @@PREFIX@@/lib/libjbig.1.dylib -o libjbig.1.dylib jbig.o jbig_tab.o
 
 libjbig.a: jbig.o jbig_tab.o
 	rm -f libjbig.a
