Lines 76-88
PBMDIR =
Link Here
|
76 |
# ppmtorle - ppm format to RLE |
76 |
# ppmtorle - ppm format to RLE |
77 |
# rletoppm - RLE to ppm format |
77 |
# rletoppm - RLE to ppm format |
78 |
pgmtorle.out: pgmtorle.c |
78 |
pgmtorle.out: pgmtorle.c |
79 |
$(CC) $(CFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new |
79 |
$(CC) $(CFLAGS) $(LDFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new |
80 |
mv $*.new $@ |
80 |
mv $*.new $@ |
81 |
ppmtorle.out: ppmtorle.c |
81 |
ppmtorle.out: ppmtorle.c |
82 |
$(CC) $(CFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new |
82 |
$(CC) $(CFLAGS) $(LDFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new |
83 |
mv $*.new $@ |
83 |
mv $*.new $@ |
84 |
rletoppm.out: rletoppm.c |
84 |
rletoppm.out: rletoppm.c |
85 |
$(CC) $(CFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new |
85 |
$(CC) $(CFLAGS) $(LDFLAGS) $(INCPBMPLUS) $*.c $(LIBS) $(LIBPBMPLUS) -o $*.new |
86 |
mv $*.new $@ |
86 |
mv $*.new $@ |
87 |
#endif |
87 |
#endif |
88 |
|
88 |
|
Lines 95-104
rletoppm.out: rletoppm.c
Link Here
|
95 |
# iristorle/rletoiris - Convert between RLE and SGI image format. |
95 |
# iristorle/rletoiris - Convert between RLE and SGI image format. |
96 |
# |
96 |
# |
97 |
iristorle.out: iristorle.c |
97 |
iristorle.out: iristorle.c |
98 |
$(CC) $(CFLAGS) -I/usr/include/gl $*.c $(LIBS) -limage -o $*.new |
98 |
$(CC) $(CFLAGS) $(LDFLAGS) -I/usr/include/gl $*.c $(LIBS) -limage -o $*.new |
99 |
mv $*.new $@ |
99 |
mv $*.new $@ |
100 |
rletoiris.out: rletoiris.c |
100 |
rletoiris.out: rletoiris.c |
101 |
$(CC) $(CFLAGS) -I/usr/include/gl $*.c $(LIBS) -limage -o $*.new |
101 |
$(CC) $(CFLAGS) $(LDFLAGS) -I/usr/include/gl $*.c $(LIBS) -limage -o $*.new |
102 |
mv $*.new $@ |
102 |
mv $*.new $@ |
103 |
#endif |
103 |
#endif |
104 |
|
104 |
|
Lines 108-117
TIFFDIR =
Link Here
|
108 |
# tifftorle - Convert TIFF images to RLE |
108 |
# tifftorle - Convert TIFF images to RLE |
109 |
# rletotiff - Convert RLE images to TIFF |
109 |
# rletotiff - Convert RLE images to TIFF |
110 |
rletotiff.out: rletotiff.c |
110 |
rletotiff.out: rletotiff.c |
111 |
$(CC) $(CFLAGS) $(INCTIFF) $*.c $(LIBS) $(LIBTIFF) -lm -o $*.new |
111 |
$(CC) $(CFLAGS) $(LDFLAGS) $(INCTIFF) $*.c $(LIBS) $(LIBTIFF) -lm -o $*.new |
112 |
mv $*.new $@ |
112 |
mv $*.new $@ |
113 |
tifftorle.out: tifftorle.c |
113 |
tifftorle.out: tifftorle.c |
114 |
$(CC) $(CFLAGS) $(INCTIFF) $*.c $(LIBS) $(LIBTIFF) -lm -o $*.new |
114 |
$(CC) $(CFLAGS) $(LDFLAGS) $(INCTIFF) $*.c $(LIBS) $(LIBTIFF) -lm -o $*.new |
115 |
mv $*.new $@ |
115 |
mv $*.new $@ |
116 |
#endif |
116 |
#endif |
117 |
|
117 |
|
Lines 125-131
tifftorle.out: tifftorle.c
Link Here
|
125 |
# Will build with the default rule. |
125 |
# Will build with the default rule. |
126 |
# rletorla - RLE to Wavefront RLA |
126 |
# rletorla - RLE to Wavefront RLA |
127 |
rletorla.out: rletorla.c |
127 |
rletorla.out: rletorla.c |
128 |
$(CC) $(CFLAGS) $*.c $(LIBS) $(LIBWAVEFRONT) -lm -o $*.new |
128 |
$(CC) $(CFLAGS) $(LDFLAGS) $*.c $(LIBS) $(LIBWAVEFRONT) -lm -o $*.new |
129 |
mv $*.new $@ |
129 |
mv $*.new $@ |
130 |
#endif WAVEFRONT |
130 |
#endif WAVEFRONT |
131 |
|
131 |
|
Lines 144-150
pristine: pristine-pgm
Link Here
|
144 |
.SUFFIXES: |
144 |
.SUFFIXES: |
145 |
.SUFFIXES: .out .c |
145 |
.SUFFIXES: .out .c |
146 |
.c.out: |
146 |
.c.out: |
147 |
$(CC) $(CFLAGS) $*.c $(LIBS) -lm -o $*.new |
147 |
$(CC) $(CFLAGS) $(LDFLAGS) $*.c $(LIBS) -lm -o $*.new |
148 |
mv $*.new $@ |
148 |
mv $*.new $@ |
149 |
|
149 |
|
150 |
# Dependency lines. Make sure to #ifdef them. |
150 |
# Dependency lines. Make sure to #ifdef them. |