Ticket #43308: patch-libjbig_Makefile_darwin

File patch-libjbig_Makefile_darwin, 867 bytes (added by Schamschula (Marius Schamschula), 11 years ago)
Line 
1--- libjbig/Makefile.orig       2014-03-27 13:47:15.000000000 -0500
2+++ libjbig/Makefile    2014-04-09 15:24:57.000000000 -0500
3@@ -6,7 +6,7 @@
4 # Options for the compiler: A high optimization level is suggested
5 CFLAGS = -g -O -W -Wall -ansi -pedantic # --coverage
6 
7-all: libjbig.a libjbig85.a tstcodec tstcodec85
8+all: libjbig.dylib
9 
10 tstcodec: tstcodec.o jbig.o jbig_ar.o
11        $(CC) $(CFLAGS) -o tstcodec tstcodec.o jbig.o jbig_ar.o
12@@ -24,6 +24,13 @@
13        ar rc libjbig85.a jbig85.o jbig_ar.o
14        -ranlib libjbig85.a
15 
16+libjbig.dylib: libjbig.__MACPORTS_VERSION__.dylib
17+       ln -s $< $@
18+
19+libjbig.__MACPORTS_VERSION__.dylib:  jbig.o jbig_ar.o
20+       rm -f $@
21+       $(CC) $(CFLAGS) -dynamiclib -install_name __MACPORTS_PREFIX__/lib/libjbig.__MACPORTS_INSTALL_VERSION__.dylib -o $@ $^
22+
23 jbig.o: jbig.c jbig.h jbig_ar.h
24 jbig85.o: jbig85.c jbig85.h jbig_ar.h
25 jbig_ar.o: jbig_ar.c jbig_ar.h