1999-05-08 15:17:39 -04:00
|
|
|
--- libjbig/Makefile.orig Fri Apr 10 21:33:27 1998
|
2000-03-23 01:51:58 -05:00
|
|
|
+++ libjbig/Makefile Wed Mar 22 20:31:42 2000
|
|
|
|
@@ -7,21 +7,40 @@
|
1999-05-08 15:17:39 -04:00
|
|
|
# Options for the compiler: A high optimization level is suggested
|
2000-03-23 01:51:58 -05:00
|
|
|
CFLAGS = -O -Wall -ansi -pedantic
|
1999-05-08 15:17:39 -04:00
|
|
|
|
|
|
|
-all: libjbig.a tstcodec
|
1999-12-27 01:12:08 -05:00
|
|
|
+.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:U} == YES
|
|
|
|
+all: libjbig.a
|
|
|
|
+.else
|
2000-03-23 01:51:58 -05:00
|
|
|
+all: libjbig.a libjbig.so.$(VERSION)
|
1999-12-27 01:12:08 -05:00
|
|
|
+.endif
|
1999-05-08 15:17:39 -04:00
|
|
|
|
|
|
|
tstcodec: tstcodec.c jbig.c jbig.h jbig_tab.o
|
|
|
|
$(CC) $(CFLAGS) -o tstcodec -DTEST_CODEC tstcodec.c jbig.c \
|
1999-12-27 01:12:08 -05:00
|
|
|
jbig_tab.o
|
1999-05-08 15:17:39 -04:00
|
|
|
|
1999-12-27 01:12:08 -05:00
|
|
|
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}
|
|
|
|
+
|
2000-03-23 01:51:58 -05:00
|
|
|
+libjbig.so.$(VERSION): jbig.so jbig_tab.so
|
1999-05-08 15:17:39 -04:00
|
|
|
+ rm -f ${.TARGET}
|
1999-06-11 14:25:48 -04:00
|
|
|
+ ld -Bshareable -Bforcearchive -o ${.TARGET} ${.ALLSRC}
|
1999-05-08 15:17:39 -04:00
|
|
|
+
|
1999-12-27 01:12:08 -05:00
|
|
|
+.SUFFIXES: .c .o .so
|
|
|
|
+
|
|
|
|
+.c.o:
|
|
|
|
+ ${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|
|
|
|
+
|
1999-05-08 15:17:39 -04:00
|
|
|
+.c.so:
|
1999-12-27 01:12:08 -05:00
|
|
|
+ ${CC} ${CFLAGS} -fpic -DPIC -c ${.IMPSRC} -o ${.TARGET}
|
|
|
|
|
|
|
|
jbig.o: jbig.c jbig.h
|
|
|
|
+jbig_tab.o: jbig_tab.c jbig.h
|
1999-05-08 15:17:39 -04:00
|
|
|
+jbig.so: jbig.c jbig.h
|
1999-12-27 01:12:08 -05:00
|
|
|
+jbig_tab.so: jbig_tab.c jbig.h
|
|
|
|
|
1999-05-08 15:17:39 -04:00
|
|
|
test: tstcodec
|
|
|
|
./tstcodec
|
|
|
|
|
|
|
|
clean:
|
|
|
|
- rm -f *.o *~ core gmon.out dbg_d\=??.pbm tstcodec
|
1999-12-27 01:12:08 -05:00
|
|
|
+ rm -f *.o *~ core gmon.out dbg_d\=??.pbm tstcodec libjbig.so.$(VERSION) libjbig.a
|