066ed09eff
JBIG-KIT implements a highly effective data compression algorithm for bi-level high-resolution images such as fax pages or scanned documents. JBIG-KIT provides a portable library of compression and decompression functions with a documented interface. You can very easily include into your image or document processing software. In addition, JBIG-KIT provides ready-to-use compression and decompression programs with a simple command line interface (similar to the converters found in Jef Poskanzer's PBM graphics file conversion package).
62 lines
2.3 KiB
Text
62 lines
2.3 KiB
Text
$NetBSD: patch-ab,v 1.1.1.1 2010/01/21 12:35:31 obache Exp $
|
|
|
|
libtoolize
|
|
|
|
--- pbmtools/Makefile.orig 2008-08-25 22:26:39.000000000 +0000
|
|
+++ pbmtools/Makefile
|
|
@@ -7,35 +7,38 @@ CC = gcc
|
|
# Options for the compiler
|
|
CFLAGS = -g -Wall -ansi -pedantic -I../libjbig # --coverage
|
|
|
|
-.SUFFIXES: .1 .5 .txt $(SUFFIXES)
|
|
+.SUFFIXES: .1 .5 .txt .lo $(SUFFIXES)
|
|
+
|
|
+.c.lo:
|
|
+ ${LIBTOOL} --mode=compile --tag=CC $(CC) $(CFLAGS) -o $@ -c $<
|
|
|
|
all: pbmtojbg jbgtopbm pbmtojbg85 jbgtopbm85 \
|
|
pbmtojbg.txt jbgtopbm.txt pbm.txt pgm.txt
|
|
|
|
-pbmtojbg: pbmtojbg.o ../libjbig/libjbig.a
|
|
- $(CC) $(CFLAGS) -o pbmtojbg pbmtojbg.o -L../libjbig -ljbig
|
|
+pbmtojbg: pbmtojbg.lo ../libjbig/libjbig.la
|
|
+ ${LIBTOOL} --mode=link --tag=CC $(CC) $(CFLAGS) -o pbmtojbg pbmtojbg.lo ../libjbig/libjbig.la
|
|
|
|
-jbgtopbm: jbgtopbm.o ../libjbig/libjbig.a
|
|
- $(CC) $(CFLAGS) -o jbgtopbm jbgtopbm.o -L../libjbig -ljbig
|
|
+jbgtopbm: jbgtopbm.lo
|
|
+ ${LIBTOOL} --mode=link --tag=CC $(CC) $(CFLAGS) -o jbgtopbm jbgtopbm.lo ../libjbig/libjbig.la
|
|
|
|
-pbmtojbg85: pbmtojbg85.o ../libjbig/libjbig85.a
|
|
- $(CC) $(CFLAGS) -o pbmtojbg85 pbmtojbg85.o -L../libjbig -ljbig85
|
|
+pbmtojbg85: pbmtojbg85.lo ../libjbig/libjbig85.la
|
|
+ ${LIBTOOL} --mode=link --tag=CC $(CC) $(CFLAGS) -o pbmtojbg85 pbmtojbg85.lo ../libjbig/libjbig85.la
|
|
|
|
-jbgtopbm85: jbgtopbm85.o ../libjbig/libjbig85.a
|
|
- $(CC) $(CFLAGS) -o jbgtopbm85 jbgtopbm85.o -L../libjbig -ljbig85
|
|
+jbgtopbm85: jbgtopbm85.lo ../libjbig/libjbig85.la
|
|
+ ${LIBTOOL} --mode=link --tag=CC $(CC) $(CFLAGS) -o jbgtopbm85 jbgtopbm85.lo ../libjbig/libjbig85.la
|
|
|
|
-jbgtopbm.o: jbgtopbm.c ../libjbig/jbig.h
|
|
-pbmtojbg.o: pbmtojbg.c ../libjbig/jbig.h
|
|
-jbgtopbm85.o: jbgtopbm85.c ../libjbig/jbig85.h
|
|
-pbmtojbg85.o: pbmtojbg85.c ../libjbig/jbig85.h
|
|
+jbgtopbm.lo: jbgtopbm.c ../libjbig/jbig.h
|
|
+pbmtojbg.lo: pbmtojbg.c ../libjbig/jbig.h
|
|
+jbgtopbm85.lo: jbgtopbm85.c ../libjbig/jbig85.h
|
|
+pbmtojbg85.lo: pbmtojbg85.c ../libjbig/jbig85.h
|
|
|
|
-../libjbig/libjbig.a: ../libjbig/jbig.c ../libjbig/jbig.h \
|
|
+../libjbig/libjbig.la: ../libjbig/jbig.c ../libjbig/jbig.h \
|
|
../libjbig/jbig_ar.c ../libjbig/jbig_ar.h
|
|
- make -C ../libjbig libjbig.a
|
|
+ make -C ../libjbig libjbig.la
|
|
|
|
-../libjbig/libjbig85.a: ../libjbig/jbig85.c ../libjbig/jbig85.h \
|
|
+../libjbig/libjbig85.la: ../libjbig/jbig85.c ../libjbig/jbig85.h \
|
|
../libjbig/jbig_ar.c ../libjbig/jbig_ar.h
|
|
- make -C ../libjbig libjbig85.a
|
|
+ make -C ../libjbig libjbig85.la
|
|
|
|
test: test82 test85
|
|
|