]> git.ipfire.org Git - thirdparty/cups.git/blob - filter/Makefile
Copyright update...
[thirdparty/cups.git] / filter / Makefile
1 #
2 # "$Id: Makefile,v 1.52 2002/01/02 17:58:56 mike Exp $"
3 #
4 # Filter makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 1997-2002 by Easy Software Products.
7 #
8 # These coded instructions, statements, and computer programs are the
9 # property of Easy Software Products and are protected by Federal
10 # copyright law. Distribution and use rights are outlined in the file
11 # "LICENSE.txt" which should have been included with this file. If this
12 # file is missing or damaged please contact Easy Software Products
13 # at:
14 #
15 # Attn: CUPS Licensing Information
16 # Easy Software Products
17 # 44141 Airport View Drive, Suite 204
18 # Hollywood, Maryland 20636-3111 USA
19 #
20 # Voice: (301) 373-9603
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
23 #
24
25 include ../Makedefs
26
27 TARGETS = hpgltops texttops pstops imagetops imagetoraster \
28 rastertodymo rastertoepson rastertohp
29
30 HPGLOBJS = hpgl-attr.o hpgl-config.o hpgl-main.o hpgl-prolog.o \
31 hpgl-char.o hpgl-input.o hpgl-polygon.o hpgl-vector.o
32 IMAGEOBJS = image-bmp.o image-colorspace.o image-gif.o image-jpeg.o \
33 image-photocd.o image-pix.o image-png.o image-pnm.o \
34 image-sgi.o image-sgilib.o image-sun.o image-tiff.o \
35 image-zoom.o image.o raster.o
36 FORMOBJS = form-attr.o form-main.o form-ps.o form-text.o form-tree.o
37 OBJS = $(HPGLOBJS) $(IMAGEOBJS) $(FORMOBJS) \
38 imagetops.o imagetoraster.o common.o pstops.o raster.o \
39 rastertodymo.o rastertoepson.o rastertohp.o texttops.o \
40 textcommon.o
41
42 #
43 # Make all targets...
44 #
45
46 all: $(TARGETS)
47
48
49 #
50 # Clean all object files...
51 #
52
53 clean:
54 $(RM) $(OBJS) $(TARGETS) $(LIBCUPSIMAGE) `basename $(LIBCUPSIMAGE) .2`
55
56
57 #
58 # Install all targets...
59 #
60
61 install:
62 $(INSTALL_DIR) $(SERVERBIN)/filter
63 for file in $(TARGETS); do \
64 $(INSTALL_BIN) $$file $(SERVERBIN)/filter; \
65 done
66 $(INSTALL_DIR) $(LIBDIR)
67 $(INSTALL_LIB) $(LIBCUPSIMAGE) $(LIBDIR)
68 -if test $(LIBCUPSIMAGE) = "libcupsimage.so.2" -o $(LIBCUPSIMAGE) = "libcupsimage.sl.2"; then \
69 $(RM) $(LIBDIR)/`basename $(LIBCUPSIMAGE) .2`; \
70 $(LN) $(LIBCUPSIMAGE) $(LIBDIR)/`basename $(LIBCUPSIMAGE) .2`; \
71 fi
72 -if test $(LIBCUPSIMAGE) = "libcupsimage.2.dylib"; then \
73 $(RM) $(LIBDIR)/libcupsimage.dylib; \
74 $(LN) $(LIBCUPSIMAGE) $(LIBDIR)/libcupsimage.dylib; \
75 fi
76 $(INSTALL_DIR) $(INCLUDEDIR)/cups
77 $(INSTALL_DATA) raster.h $(INCLUDEDIR)/cups
78
79
80 #
81 # formtops
82 #
83
84 formtops: $(FORMOBJS) common.o ../Makedefs ../cups/$(LIBCUPS)
85 echo Linking $@...
86 $(CC) $(LDFLAGS) -o $@ $(FORMOBJS) common.o $(LIBS) -lm
87 $(FORMOBJS): form.h
88
89
90 #
91 # hpgltops
92 #
93
94 hpgltops: $(HPGLOBJS) common.o ../Makedefs ../cups/$(LIBCUPS)
95 echo Linking $@...
96 $(CC) $(LDFLAGS) -o $@ $(HPGLOBJS) common.o $(LIBS) -lm
97 $(HPGLOBJS): hpgltops.h
98
99
100 #
101 # libcupsimage.so.2, libcupsimage.sl.2
102 #
103
104 libcupsimage.so.2 libcupsimage.sl.2: $(IMAGEOBJS) ../Makedefs
105 echo Linking $@...
106 $(DSO) $(DSOFLAGS) -o $@ $(IMAGEOBJS) $(DSOLIBS) -lm
107 $(RM) `basename $@ .2`
108 $(LN) $@ `basename $@ .2`
109
110
111 #
112 # libcupsimage.2.dylib
113 #
114
115 libcupsimage.2.dylib: $(IMAGEOBJS) ../Makedefs
116 echo Linking $@...
117 $(DSO) $(DSOFLAGS) -o $@ $(IMAGEOBJS) $(DSOLIBS) $(LINKCUPS) -lm -lcc_dynamic
118 $(RM) libcupsimage.dylib
119 $(LN) $@ libcupsimage.dylib
120
121
122 #
123 # libcupsimage_s.a
124 #
125
126 libcupsimage_s.a: $(IMAGEOBJS) ../Makedefs
127 echo Linking $@...
128 $(DSO) $(DSOFLAGS) -o libcupsimage_s.o $(IMAGEOBJS) $(DSOLIBS) \
129 $(LINKCUPS) -lm
130 $(RM) $@
131 $(AR) $(ARFLAGS) $@ libcupsimage_s.o
132
133
134 #
135 # libcupsimage.la
136 #
137
138 libcupsimage.la: $(IMAGEOBJS) ../Makedefs
139 echo Linking $@...
140 $(DSO) -o $(DSOFLAGS) $@ $(IMAGEOBJS:.o=.lo) $(DSOLIBS) \
141 -rpath $(LIBDIR) -version-info 2:0
142
143
144 #
145 # libcupsimage.a
146 #
147
148 libcupsimage.a: $(IMAGEOBJS) ../Makedefs
149 echo Archiving $@...
150 $(RM) $@
151 $(AR) $(ARFLAGS) $@ $(IMAGEOBJS)
152 $(RANLIB) $@
153
154 $(IMAGEOBJS): image.h
155 raster.o: raster.h
156
157
158 #
159 # imagetops
160 #
161
162 imagetops: imagetops.o common.o $(LIBCUPSIMAGE) ../Makedefs \
163 ../cups/$(LIBCUPS)
164 echo Linking $@...
165 $(CC) $(LDFLAGS) -o $@ imagetops.o common.o $(LINKCUPSIMAGE) \
166 $(IMGLIBS) $(LIBS)
167 imagetops: common.h image.h
168
169
170 #
171 # imagetoraster
172 #
173
174 imagetoraster: imagetoraster.o common.o $(LIBCUPSIMAGE) ../Makedefs \
175 ../cups/$(LIBCUPS)
176 echo Linking $@...
177 $(CC) $(LDFLAGS) -o $@ imagetoraster.o common.o $(LINKCUPSIMAGE) \
178 $(IMGLIBS) $(LIBS)
179 imagetoraster: common.h image.h raster.h
180
181
182 #
183 # pstops
184 #
185
186 pstops: pstops.o common.o ../Makedefs ../cups/$(LIBCUPS)
187 echo Linking $@...
188 $(CC) $(LDFLAGS) -o $@ pstops.o common.o $(LIBS)
189 pstops.o: common.h
190
191
192 #
193 # rastertodymo
194 #
195
196 rastertodymo: rastertodymo.o ../Makedefs ../cups/$(LIBCUPS) libcupsimage.a
197 echo Linking $@...
198 $(CC) $(LDFLAGS) -o $@ rastertodymo.o libcupsimage.a $(LIBS)
199 rastertodymo.o: raster.h
200
201
202 #
203 # rastertoepson
204 #
205
206 rastertoepson: rastertoepson.o ../Makedefs ../cups/$(LIBCUPS) $(LIBCUPSIMAGE)
207 echo Linking $@...
208 $(CC) $(LDFLAGS) -o $@ rastertoepson.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS)
209 rastertoepson.o: raster.h
210
211
212 #
213 # rastertohp
214 #
215
216 rastertohp: rastertohp.o ../Makedefs ../cups/$(LIBCUPS) $(LIBCUPSIMAGE)
217 echo Linking $@...
218 $(CC) $(LDFLAGS) -o $@ rastertohp.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS)
219 rastertohp.o: raster.h
220
221
222 #
223 # texttops
224 #
225
226 texttops: texttops.o textcommon.o common.o ../Makedefs \
227 ../cups/$(LIBCUPS)
228 echo Linking $@...
229 $(CC) $(LDFLAGS) -o $@ texttops.o textcommon.o common.o $(LIBS)
230 texttops.o: common.h textcommon.h
231
232 common.o: common.h
233 textcommon.o: textcommon.h common.h
234
235
236 $(OBJS): ../Makedefs ../cups/cups.h ../cups/ppd.h ../cups/language.h
237
238
239 #
240 # End of "$Id: Makefile,v 1.52 2002/01/02 17:58:56 mike Exp $".
241 #