]> git.ipfire.org Git - thirdparty/cups.git/blob - filter/Makefile
Fix missing printer-config-change-[time,date-time] attributes.
[thirdparty/cups.git] / filter / Makefile
1 #
2 # Filter makefile for CUPS.
3 #
4 # Copyright 2007-2018 by Apple Inc.
5 # Copyright 1997-2006 by Easy Software Products.
6 #
7 # Licensed under Apache License v2.0. See the file "LICENSE" for more
8 # information.
9 #
10
11 include ../Makedefs
12
13
14 TARGETS = \
15 commandtops \
16 gziptoany \
17 pstops \
18 rastertoepson \
19 rastertohp \
20 rastertolabel \
21 rastertopwg
22
23 OBJS = commandtops.o gziptoany.o common.o pstops.o \
24 rastertoepson.o rastertohp.o rastertolabel.o \
25 rastertopwg.o
26
27
28 #
29 # Make all targets...
30 #
31
32 all: $(TARGETS)
33
34
35 #
36 # Make library targets...
37 #
38
39 libs: $(LIBTARGETS)
40
41
42 #
43 # Make unit tests...
44 #
45
46 unittests: $(UNITTARGETS)
47
48
49 #
50 # Clean all object files...
51 #
52
53 clean:
54 $(RM) $(OBJS) $(TARGETS) $(UNITTARGETS)
55 $(RM) libcupsimage.so libcupsimage.sl libcupsimage.dylib
56
57
58 #
59 # Update dependencies (without system header dependencies...)
60 #
61
62 depend:
63 $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies
64
65
66 #
67 # Install all targets...
68 #
69
70 install: all install-data install-headers install-libs install-exec
71
72
73 #
74 # Install data files...
75 #
76
77 install-data:
78
79
80 #
81 # Install programs...
82 #
83
84 install-exec:
85 $(INSTALL_DIR) -m 755 $(SERVERBIN)/filter
86 for file in $(FILTERS); do \
87 $(INSTALL_BIN) $$file $(SERVERBIN)/filter; \
88 done
89 $(RM) $(SERVERBIN)/filter/rastertodymo
90 $(LN) rastertolabel $(SERVERBIN)/filter/rastertodymo
91 if test "x$(SYMROOT)" != "x"; then \
92 $(INSTALL_DIR) $(SYMROOT); \
93 for file in $(FILTERS); do \
94 cp $$file $(SYMROOT); \
95 dsymutil $(SYMROOT)/$$file; \
96 done \
97 fi
98
99
100 #
101 # Install headers...
102 #
103
104 install-headers:
105
106
107 #
108 # Install libraries...
109 #
110
111 install-libs:
112
113
114 #
115 # Uninstall all targets...
116 #
117
118 uninstall:
119 for file in $(FILTERS); do \
120 $(RM) $(SERVERBIN)/filter/$$file; \
121 done
122 $(RM) $(SERVERBIN)/filter/rastertodymo
123 -$(RMDIR) $(SERVERBIN)/filter
124 -$(RMDIR) $(SERVERBIN)
125
126
127 #
128 # Automatic API help files...
129 #
130
131 apihelp:
132 echo Generating CUPS API help files...
133 mxmldoc --section "Programming" \
134 --title "Developing PostScript Printer Drivers" \
135 --css ../doc/cups-printable.css \
136 --header postscript-driver.header \
137 --intro postscript-driver.shtml \
138 >../doc/help/postscript-driver.html
139 mxmldoc --section "Programming" \
140 --title "Introduction to the PPD Compiler" \
141 --css ../doc/cups-printable.css \
142 --header ppd-compiler.header \
143 --intro ppd-compiler.shtml \
144 >../doc/help/ppd-compiler.html
145 mxmldoc --section "Programming" \
146 --title "Developing Raster Printer Drivers" \
147 --css ../doc/cups-printable.css \
148 --header raster-driver.header \
149 --intro raster-driver.shtml \
150 >../doc/help/raster-driver.html
151 mxmldoc --section "Specifications" \
152 --title "CUPS PPD Extensions" \
153 --css ../doc/cups-printable.css \
154 --header spec-ppd.header \
155 --intro spec-ppd.shtml \
156 >../doc/help/spec-ppd.html
157
158
159 #
160 # commandtops
161 #
162
163 commandtops: commandtops.o ../cups/$(LIBCUPS)
164 echo Linking $@...
165 $(LD_CC) $(LDFLAGS) -o $@ commandtops.o $(LIBS)
166
167
168 #
169 # gziptoany
170 #
171
172 gziptoany: gziptoany.o ../Makedefs ../cups/$(LIBCUPS)
173 echo Linking $@...
174 $(LD_CC) $(LDFLAGS) -o $@ gziptoany.o $(LIBZ) $(LIBS)
175
176
177 #
178 # pstops
179 #
180
181 pstops: pstops.o common.o ../cups/$(LIBCUPS)
182 echo Linking $@...
183 $(LD_CC) $(LDFLAGS) -o $@ pstops.o common.o $(LIBS)
184
185
186 #
187 # rastertoepson
188 #
189
190 rastertoepson: rastertoepson.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSIMAGE)
191 echo Linking $@...
192 $(LD_CC) $(LDFLAGS) -o $@ rastertoepson.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS)
193
194
195 #
196 # rastertohp
197 #
198
199 rastertohp: rastertohp.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSIMAGE)
200 echo Linking $@...
201 $(LD_CC) $(LDFLAGS) -o $@ rastertohp.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS)
202
203
204 #
205 # rastertolabel
206 #
207
208 rastertolabel: rastertolabel.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSIMAGE)
209 echo Linking $@...
210 $(LD_CC) $(LDFLAGS) -o $@ rastertolabel.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS)
211
212
213 #
214 # rastertopwg
215 #
216
217 rastertopwg: rastertopwg.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSIMAGE)
218 echo Linking $@...
219 $(LD_CC) $(LDFLAGS) -o $@ rastertopwg.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS)
220
221 rastertopwg-static: rastertopwg.o ../cups/$(LIBCUPSSTATIC) ../cups/libcupsimage.a
222 echo Linking $@...
223 $(LD_CC) $(LDFLAGS) -o $@ rastertopwg.o ../cups/libcupsimage.a \
224 ../cups/$(LIBCUPSSTATIC) $(IMGLIBS) $(DSOLIBS) $(COMMONLIBS) \
225 $(SSLLIBS) $(DNSSDLIBS) $(LIBGSSAPI)
226
227
228 #
229 # Dependencies...
230 #
231
232 include Dependencies