]> git.ipfire.org Git - thirdparty/cups.git/blame - filter/Makefile
Load cups into easysw/current.
[thirdparty/cups.git] / filter / Makefile
CommitLineData
ef416fc2 1#
b423cd4c 2# "$Id: Makefile 5192 2006-02-27 03:08:47Z mike $"
ef416fc2 3#
4# Filter makefile for the Common UNIX Printing System (CUPS).
5#
bd7854cb 6# Copyright 1997-2006 by Easy Software Products.
ef416fc2 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 USA
19#
20# Voice: (301) 373-9600
21# EMail: cups-info@cups.org
22# WWW: http://www.cups.org
23#
24# This file is subject to the Apple OS-Developed Software exception.
25#
26
27include ../Makedefs
28
29FILTERS = gziptoany hpgltops texttops pstops imagetops imagetoraster \
30 rastertolabel rastertoepson rastertohp
31TARGETS = $(FILTERS) testraster
32
33HPGLOBJS = hpgl-attr.o hpgl-config.o hpgl-main.o hpgl-prolog.o \
34 hpgl-char.o hpgl-input.o hpgl-polygon.o hpgl-vector.o
35IMAGEOBJS = image-bmp.o image-colorspace.o image-gif.o image-jpeg.o \
36 image-photocd.o image-pix.o image-png.o image-pnm.o \
37 image-sgi.o image-sgilib.o image-sun.o image-tiff.o \
38 image-zoom.o image.o interpret.o raster.o
39FORMOBJS = form-attr.o form-main.o form-ps.o form-text.o form-tree.o
40OBJS = $(HPGLOBJS) $(IMAGEOBJS) $(FORMOBJS) \
41 imagetops.o imagetoraster.o common.o pstops.o raster.o \
42 rastertolabel.o rastertoepson.o rastertohp.o \
43 texttops.o textcommon.o testraster.o gziptoany.o
44
45
46#
47# Make all targets...
48#
49
50all: $(TARGETS) $(LIBCUPSIMAGE) libcupsimage.a
51
52
53#
54# Clean all object files...
55#
56
57clean:
58 $(RM) $(OBJS) $(TARGETS) $(LIBCUPSIMAGE) libcupsimage.a
59 $(RM) `basename $(LIBCUPSIMAGE) .2` libcupsimage.dylib
60
61
62#
63# Update dependencies (without system header dependencies...)
64#
65
66depend:
67 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
68
69
70#
71# Install all targets...
72#
73
923edb68 74install: all installhdrs $(INSTALLSTATIC)
bd7854cb 75 $(INSTALL_DIR) -m 755 $(SERVERBIN)/filter
ef416fc2 76 for file in $(FILTERS); do \
77 $(INSTALL_BIN) $$file $(SERVERBIN)/filter; \
78 done
79 $(RM) $(SERVERBIN)/filter/rastertodymo
80 $(LN) rastertolabel $(SERVERBIN)/filter/rastertodymo
923edb68 81 $(INSTALL_DIR) -m 755 $(LIBDIR)
ef416fc2 82 $(INSTALL_LIB) $(LIBCUPSIMAGE) $(LIBDIR)
83 -if test $(LIBCUPSIMAGE) = "libcupsimage.so.2" -o $(LIBCUPSIMAGE) = "libcupsimage.sl.2"; then \
84 $(RM) $(LIBDIR)/`basename $(LIBCUPSIMAGE) .2`; \
85 $(LN) $(LIBCUPSIMAGE) $(LIBDIR)/`basename $(LIBCUPSIMAGE) .2`; \
86 fi
87 -if test $(LIBCUPSIMAGE) = "libcupsimage.2.dylib"; then \
88 $(STRIP) -x $(LIBDIR)/$(LIBCUPSIMAGE); \
89 $(RM) $(LIBDIR)/libcupsimage.dylib; \
90 $(LN) $(LIBCUPSIMAGE) $(LIBDIR)/libcupsimage.dylib; \
91 fi
923edb68 92
93installstatic:
94 $(INSTALL_DIR) -m 755 $(LIBDIR)
ef416fc2 95 -if test $(LIBCUPSIMAGE) != "libcupsimage.a"; then \
96 $(INSTALL_LIB) libcupsimage.a $(LIBDIR); \
97 $(RANLIB) $(LIBDIR)/libcupsimage.a; \
98 fi
99
100installhdrs:
bd7854cb 101 $(INSTALL_DIR) -m 755 $(INCLUDEDIR)/cups
ef416fc2 102 $(INSTALL_DATA) image.h $(INCLUDEDIR)/cups
103 $(INSTALL_DATA) raster.h $(INCLUDEDIR)/cups
104
105
b423cd4c 106#
107# Automatic API help files...
108#
109
110apihelp:
111 echo Generating CUPS API help files...
112 mxmldoc --section "Programming" --title "Raster API" \
113 --intro api-raster.shtml \
114 raster.h interpret.c raster.c >../doc/help/api-raster.html
115
116
ef416fc2 117#
118# formtops
119#
120
121formtops: $(FORMOBJS) common.o ../cups/$(LIBCUPS)
122 echo Linking $@...
123 $(CC) $(LDFLAGS) -o $@ $(FORMOBJS) common.o $(LIBS) -lm
124
125
126#
127# gziptoany
128#
129
130gziptoany: gziptoany.o ../Makedefs ../cups/$(LIBCUPS)
131 echo Linking $@...
132 $(CC) $(LDFLAGS) -o $@ gziptoany.o $(LIBZ) $(LIBS)
133
134
135#
136# hpgltops
137#
138
139hpgltops: $(HPGLOBJS) common.o ../cups/$(LIBCUPS)
140 echo Linking $@...
141 $(CC) $(LDFLAGS) -o $@ $(HPGLOBJS) common.o $(LIBS) -lm
142
143
144#
145# libcupsimage.so.2, libcupsimage.sl.2
146#
147
148libcupsimage.so.2 libcupsimage.sl.2: $(IMAGEOBJS)
149 echo Linking $@...
150 $(DSO) $(DSOFLAGS) -o $@ $(IMAGEOBJS) $(DSOLIBS) -lm
151 $(RM) `basename $@ .2`
152 $(LN) $@ `basename $@ .2`
153
154
155#
156# libcupsimage.2.dylib
157#
158
159libcupsimage.2.dylib: $(IMAGEOBJS)
160 echo Linking $@...
161 $(DSO) $(DSOFLAGS) -o $@ \
fa73b229 162 -install_name $(libdir)/$@ \
ef416fc2 163 -current_version 2.2.0 \
164 -compatibility_version 2.0.0 \
165 $(IMAGEOBJS) $(DSOLIBS) -L../cups $(LINKCUPS) -lm
166 $(RM) libcupsimage.dylib
167 $(LN) $@ libcupsimage.dylib
168
169
170#
171# libcupsimage_s.a
172#
173
174libcupsimage_s.a: $(IMAGEOBJS)
175 echo Linking $@...
176 $(DSO) $(DSOFLAGS) -Wl,-berok -o libcupsimage_s.o $(IMAGEOBJS) \
177 $(DSOLIBS) -lm
178 $(RM) $@
179 $(AR) $(ARFLAGS) $@ libcupsimage_s.o
180
181
182#
183# libcupsimage.la
184#
185
186libcupsimage.la: $(IMAGEOBJS)
187 echo Linking $@...
188 $(DSO) $(DSOFLAGS) -o $@ $(IMAGEOBJS:.o=.lo) $(DSOLIBS) \
189 -rpath $(LIBDIR) -version-info 2:2
190
191
192#
193# libcupsimage.a
194#
195
196libcupsimage.a: $(IMAGEOBJS)
197 echo Archiving $@...
198 $(RM) $@
199 $(AR) $(ARFLAGS) $@ $(IMAGEOBJS)
200 $(RANLIB) $@
201
202
203#
204# testimage
205#
206
207testimage: testimage.o libcupsimage.a ../Makedefs
208 echo Linking $@...
209 $(CC) $(LDFLAGS) -o $@ testimage.o libcupsimage.a \
210 $(IMGLIBS) $(DSOLIBS) $(LIBS)
211
212
213#
214# imagetops
215#
216
217imagetops: imagetops.o common.o $(LIBCUPSIMAGE) \
218 ../cups/$(LIBCUPS)
219 echo Linking $@...
220 $(CC) $(LDFLAGS) -o $@ imagetops.o common.o $(LINKCUPSIMAGE) \
221 $(IMGLIBS) $(LIBS)
222
223
224#
225# imagetoraster
226#
227
228imagetoraster: imagetoraster.o common.o $(LIBCUPSIMAGE) \
229 ../cups/$(LIBCUPS)
230 echo Linking $@...
231 $(CC) $(LDFLAGS) -o $@ imagetoraster.o common.o $(LINKCUPSIMAGE) \
232 $(IMGLIBS) $(LIBS)
233
234
235#
236# pstops
237#
238
239pstops: pstops.o common.o ../cups/$(LIBCUPS)
240 echo Linking $@...
bd7854cb 241 $(CC) $(LDFLAGS) -o $@ pstops.o common.o $(LIBS) -lm
ef416fc2 242
243
244#
245# rastertolabel
246#
247
248rastertolabel: rastertolabel.o ../cups/$(LIBCUPS) $(LIBCUPSIMAGE)
249 echo Linking $@...
250 $(CC) $(LDFLAGS) -o $@ rastertolabel.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS)
251
252
253#
254# rastertoepson
255#
256
257rastertoepson: rastertoepson.o ../cups/$(LIBCUPS) $(LIBCUPSIMAGE)
258 echo Linking $@...
259 $(CC) $(LDFLAGS) -o $@ rastertoepson.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS)
260
261
262#
263# rastertohp
264#
265
266rastertohp: rastertohp.o ../cups/$(LIBCUPS) $(LIBCUPSIMAGE)
267 echo Linking $@...
268 $(CC) $(LDFLAGS) -o $@ rastertohp.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS)
269
270
271#
272# testraster
273#
274
275testraster: testraster.o raster.o
276 echo Linking $@...
277 $(CC) $(LDFLAGS) -o $@ testraster.o raster.o
278
279
280#
281# texttops
282#
283
284texttops: texttops.o textcommon.o common.o \
285 ../cups/$(LIBCUPS)
286 echo Linking $@...
287 $(CC) $(LDFLAGS) -o $@ texttops.o textcommon.o common.o $(LIBS)
288
289
290#
291# Dependencies...
292#
293
294include Dependencies
295
296
297#
b423cd4c 298# End of "$Id: Makefile 5192 2006-02-27 03:08:47Z mike $".
ef416fc2 299#