blob: 7fffc9314ad16d075fd2d68924415282e9a9d002 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
$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
|