45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
--- libjbig/Makefile.orig Sat Apr 8 07:15:46 2000
|
|
+++ libjbig/Makefile Mon Oct 16 15:18:00 2000
|
|
@@ -7,16 +7,31 @@
|
|
# Options for the compiler: A high optimization level is suggested
|
|
CFLAGS = -O -Wall -ansi -pedantic
|
|
|
|
-all: libjbig.a tstcodec
|
|
+PICFLAG= -fpic
|
|
+
|
|
+.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:L} == "yes"
|
|
+all: libjbig.a
|
|
+.else
|
|
+all: libjbig.a libjbig.so.$(VERSION)
|
|
+.endif
|
|
|
|
tstcodec: tstcodec.c jbig.c jbig.h jbig_tab.o
|
|
$(CC) $(CFLAGS) -o tstcodec -DTEST_CODEC tstcodec.c jbig.c \
|
|
jbig_tab.o
|
|
|
|
libjbig.a: jbig.o jbig_tab.o
|
|
- rm -f libjbig.a
|
|
- ar rc libjbig.a jbig.o jbig_tab.o
|
|
- ranlib libjbig.a
|
|
+ rm -f ${.TARGET}
|
|
+ ar rc ${.TARGET} ${.ALLSRC}
|
|
+ ranlib ${.TARGET}
|
|
+
|
|
+libjbig.so.$(VERSION): jbig.so jbig_tab.so
|
|
+ rm -f ${.TARGET}
|
|
+ ${CC} -shared $(PICFLAG) -o ${.TARGET} ${.ALLSRC}
|
|
+
|
|
+.SUFFIXES: .o .so
|
|
+
|
|
+.c.so:
|
|
+ ${CC} ${CFLAGS} $(PICFLAG) -DPIC -c ${.IMPSRC} -o ${.TARGET}
|
|
|
|
jbig.o: jbig.c jbig.h
|
|
|
|
@@ -24,4 +39,4 @@
|
|
./tstcodec
|
|
|
|
clean:
|
|
- rm -f *.o *~ core gmon.out dbg_d\=??.pbm tstcodec
|
|
+ rm -f *.o *~ core gmon.out dbg_d\=??.pbm tstcodec libjbig.so.$(VERSION) libjbig.a
|