summaryrefslogtreecommitdiff
path: root/graphics/urt/patches/patch-ad
blob: 17c2adeba88c89a1e4726b68639c1a6c930a441e (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
$NetBSD: patch-ad,v 1.3 2001/03/26 22:51:39 skrll Exp $

--- cnv/makefile.src.orig	Mon Dec 11 14:58:05 1995
+++ cnv/makefile.src
@@ -71,19 +71,16 @@
 
 #ifdef PBMPLUS
 #emit PBMDIR
-PBMDIR = 
+#PBMDIR = 
 # pgmtorle - pgm format to RLE
 # ppmtorle - ppm format to RLE
 # rletoppm - RLE to ppm format
 pgmtorle.out: pgmtorle.c
-	$(CC) $(CFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new
-	mv $*.new $@
+	${LIBTOOL} --mode=link ${CC} ${CFLAGS} ${INCPBMPLUS} $*.c -o $*.out ${LIBPBMPLUS} ../lib/librle.la -lm
 ppmtorle.out: ppmtorle.c
-	$(CC) $(CFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new
-	mv $*.new $@
+	${LIBTOOL} --mode=link ${CC} ${CFLAGS} ${INCPBMPLUS} $*.c -o $*.out ${LIBPBMPLUS} ../lib/librle.la -lm
 rletoppm.out: rletoppm.c
-	$(CC) $(CFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new
-	mv $*.new $@
+	${LIBTOOL} --mode=link ${CC} ${CFLAGS} ${INCPBMPLUS} $*.c -o $*.out ${LIBPBMPLUS} ../lib/librle.la -lm
 #endif
 
 #ifdef POSTSCRIPT
@@ -95,11 +92,9 @@
 # iristorle/rletoiris - Convert between RLE and SGI image format.
 #
 iristorle.out: iristorle.c
-	$(CC) $(CFLAGS) -I/usr/include/gl $*.c $(LIBS) -limage -o $*.new
-	mv $*.new $@
+	$(CC) $(CFLAGS) -I/usr/include/gl $*.c $(LIBS) -limage -o $*.out
 rletoiris.out: rletoiris.c
-	$(CC) $(CFLAGS) -I/usr/include/gl $*.c $(LIBS) -limage -o $*.new
-	mv $*.new $@
+	$(CC) $(CFLAGS) -I/usr/include/gl $*.c $(LIBS) -limage -o $*.out
 #endif
 
 #ifdef TIFF
@@ -108,11 +103,9 @@
 # tifftorle - Convert TIFF images to RLE
 # rletotiff - Convert RLE images to TIFF
 rletotiff.out: rletotiff.c
-	$(CC) $(CFLAGS) $(INCTIFF) $*.c $(LIBS) $(LIBTIFF) -lm -o $*.new
-	mv $*.new $@
+	${LIBTOOL} --mode=link ${CC} ${CFLAGS} ${INCTIFF} $*.c -o $*.out ${LIBTIFF} ../lib/librle.la -lm
 tifftorle.out: tifftorle.c
-	$(CC) $(CFLAGS) $(INCTIFF) $*.c $(LIBS) $(LIBTIFF) -lm -o $*.new
-	mv $*.new $@
+	${LIBTOOL} --mode=link ${CC} ${CFLAGS} ${INCTIFF} $*.c -o $*.out ${LIBTIFF} ../lib/librle.la -lm
 #endif
 
 #ifdef WASATCH
@@ -125,8 +118,7 @@
 # Will build with the default rule.
 # rletorla - RLE to Wavefront RLA
 rletorla.out: rletorla.c
-	$(CC) $(CFLAGS) $*.c $(LIBS) $(LIBWAVEFRONT) -lm -o $*.new
-	mv $*.new $@
+	${LIBTOOL} --mode=link ${CC} ${CFLAGS} $*.c -o $*.out ${LIBWAVEFRONT} ../lib/librle.la -lm
 #endif WAVEFRONT
 
 # Install stuff
@@ -144,8 +136,7 @@
 .SUFFIXES:
 .SUFFIXES: .out .c
 .c.out:
-	$(CC) $(CFLAGS) $*.c $(LIBS) -lm -o $*.new
-	mv $*.new $@
+	${LIBTOOL} --mode=link ${CC} ${CFLAGS} $*.c -o $*.out ../lib/librle.la -lm
 
 # Dependency lines.  Make sure to #ifdef them.
 # DO NOT DELETE THIS LINE