]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
f2d18633 | 2 | # "$Id$" |
ef416fc2 | 3 | # |
f8b3a85b | 4 | # IPP test makefile for CUPS. |
ef416fc2 | 5 | # |
92ee0d7c | 6 | # Copyright 2007-2014 by Apple Inc. |
757d2cad | 7 | # Copyright 1997-2006 by Easy Software Products, all rights reserved. |
ef416fc2 | 8 | # |
9 | # These coded instructions, statements, and computer programs are the | |
bc44d920 | 10 | # property of Apple Inc. and are protected by Federal copyright |
11 | # law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
12 | # which should have been included with this file. If this file is | |
13 | # file is missing or damaged, see the license at "http://www.cups.org/". | |
ef416fc2 | 14 | # |
15 | ||
16 | include ../Makedefs | |
17 | ||
18 | ||
f8b3a85b MS |
19 | # |
20 | # Sample test files. | |
21 | # | |
22 | ||
82cc1f9a | 23 | DATAFILES = \ |
83e08001 | 24 | color.jpg \ |
83e08001 MS |
25 | document-a4.pdf \ |
26 | document-a4.ps \ | |
27 | document-letter.pdf \ | |
28 | document-letter.ps \ | |
83e08001 | 29 | gray.jpg \ |
83e08001 MS |
30 | onepage-a4.pdf \ |
31 | onepage-a4.ps \ | |
32 | onepage-letter.pdf \ | |
33 | onepage-letter.ps \ | |
f8b3a85b | 34 | testfile.jpg \ |
a29fd7dd | 35 | testfile.pcl \ |
f8b3a85b MS |
36 | testfile.pdf \ |
37 | testfile.ps \ | |
38 | testfile.txt | |
82cc1f9a MS |
39 | TESTFILES = \ |
40 | create-printer-subscription.test \ | |
41 | get-completed-jobs.test \ | |
42 | get-jobs.test \ | |
db8b865d | 43 | get-notifications.test \ |
82cc1f9a | 44 | get-printer-attributes.test \ |
94436c5a | 45 | get-subscriptions.test \ |
82cc1f9a MS |
46 | ipp-1.1.test \ |
47 | ipp-2.0.test \ | |
48 | ipp-2.1.test \ | |
db8b865d MS |
49 | ipp-2.2.test \ |
50 | ipp-everywhere.test \ | |
51 | print-job.test \ | |
52 | print-job-deflate.test \ | |
6961465f MS |
53 | print-job-gzip.test \ |
54 | validate-job.test | |
1106b00e | 55 | OBJS = \ |
766a8229 | 56 | ippfind.o \ |
92ee0d7c MS |
57 | ippinfra.o \ |
58 | ippproxy.o \ | |
1106b00e | 59 | ippserver.o \ |
9b66acc5 MS |
60 | ipptool.o \ |
61 | xmltotest.o | |
1106b00e | 62 | TARGETS = \ |
766a8229 | 63 | $(IPPFIND_BIN) \ |
1106b00e MS |
64 | ippserver \ |
65 | ipptool \ | |
66 | ipptool-static | |
f8b3a85b MS |
67 | |
68 | ||
ef416fc2 | 69 | # |
70 | # Make all targets... | |
71 | # | |
72 | ||
1106b00e | 73 | all: $(TARGETS) |
ef416fc2 | 74 | |
75 | ||
c9fc04c6 MS |
76 | # |
77 | # Make library targets... | |
78 | # | |
79 | ||
80 | libs: | |
81 | ||
82 | ||
5f64df29 MS |
83 | # |
84 | # Make unit tests... | |
85 | # | |
86 | ||
87 | unittests: | |
88 | ||
89 | ||
ef416fc2 | 90 | # |
91 | # Clean all object files... | |
92 | # | |
93 | ||
94 | clean: | |
352d5a7d | 95 | $(RM) $(TARGETS) $(OBJS) ippfind-static ippinfra ippinfra-shared ippproxy ippproxy-shared ippserver-shared |
ef416fc2 | 96 | |
97 | ||
98 | # | |
99 | # Update dependencies (without system header dependencies...) | |
100 | # | |
101 | ||
102 | depend: | |
12f89d24 | 103 | $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies |
ef416fc2 | 104 | |
105 | ||
106 | # | |
107 | # Install all targets... | |
108 | # | |
109 | ||
50fe7201 MS |
110 | install: all install-data install-headers install-libs install-exec |
111 | ||
112 | ||
113 | # | |
114 | # Install data files... | |
115 | # | |
116 | ||
117 | install-data: | |
aaf19ab0 MS |
118 | echo Installing sample ipptool files in $(DATADIR)/ipptool... |
119 | $(INSTALL_DIR) -m 755 $(DATADIR)/ipptool | |
82cc1f9a MS |
120 | for file in $(DATAFILES); do \ |
121 | $(INSTALL_COMPDATA) $$file $(DATADIR)/ipptool; \ | |
122 | done | |
f8b3a85b | 123 | for file in $(TESTFILES); do \ |
aaf19ab0 | 124 | $(INSTALL_DATA) $$file $(DATADIR)/ipptool; \ |
f8b3a85b | 125 | done |
50fe7201 MS |
126 | |
127 | ||
128 | # | |
129 | # Install programs... | |
130 | # | |
131 | ||
132 | install-exec: | |
aaf19ab0 | 133 | echo Installing ipptool in $(BINDIR)... |
f8b3a85b | 134 | $(INSTALL_DIR) -m 755 $(BINDIR) |
aaf19ab0 | 135 | $(INSTALL_BIN) ipptool $(BINDIR) |
bc0305b0 | 136 | if test -x ippfind; then \ |
ad0357ca MS |
137 | $(INSTALL_BIN) ippfind $(BINDIR); \ |
138 | fi | |
f8b3a85b MS |
139 | if test "x$(SYMROOT)" != "x"; then \ |
140 | $(INSTALL_DIR) $(SYMROOT); \ | |
ad0357ca MS |
141 | cp ippfind $(SYMROOT); \ |
142 | dsymutil $(SYMROOT)/ippfind; \ | |
aaf19ab0 | 143 | cp ipptool $(SYMROOT); \ |
c1420c87 | 144 | dsymutil $(SYMROOT)/ipptool; \ |
f8b3a85b | 145 | fi |
50fe7201 MS |
146 | |
147 | ||
148 | # | |
149 | # Install headers... | |
150 | # | |
151 | ||
152 | install-headers: | |
153 | ||
154 | ||
155 | # | |
156 | # Install libraries... | |
157 | # | |
158 | ||
159 | install-libs: | |
ef416fc2 | 160 | |
161 | ||
757d2cad | 162 | # |
163 | # Unnstall all targets... | |
164 | # | |
165 | ||
166 | uninstall: | |
82cc1f9a MS |
167 | echo Uninstalling sample ipptool files from $(DATADIR)/ipptool... |
168 | for file in $(DATAFILES); do \ | |
169 | $(RM) $(DATADIR)/ipptool/$$file; \ | |
170 | done | |
171 | for file in $(TESTFILES); do \ | |
172 | $(RM) $(DATADIR)/ipptool/$$file; \ | |
173 | done | |
174 | -$(RMDIR) $(DATADIR)/ipptool | |
757d2cad | 175 | |
176 | ||
766a8229 MS |
177 | # |
178 | # ippfind | |
179 | # | |
180 | ||
181 | ippfind: ippfind.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSSTATIC) | |
182 | echo Linking $@... | |
183 | $(CC) $(LDFLAGS) -o $@ ippfind.o $(LIBS) | |
184 | echo Linking $@-static... | |
185 | $(CC) $(LDFLAGS) -o $@-static ippfind.o ../cups/$(LIBCUPSSTATIC) \ | |
186 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) | |
187 | ||
188 | ||
92ee0d7c MS |
189 | # |
190 | # ippinfra | |
191 | # | |
192 | ||
193 | ippinfra: ippinfra.o ../cups/$(LIBCUPSSTATIC) | |
194 | echo Linking $@... | |
195 | $(CC) $(LDFLAGS) -o $@ ippinfra.o ../cups/$(LIBCUPSSTATIC) \ | |
196 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) | |
197 | ||
198 | ||
199 | # | |
200 | # ippinfra-shared | |
201 | # | |
202 | ||
203 | ippinfra-shared: ippinfra.o ../cups/$(LIBCUPS) | |
204 | echo Linking $@... | |
205 | $(CC) $(LDFLAGS) -o $@ ippinfra.o $(LIBS) | |
206 | ||
207 | ||
208 | # | |
209 | # ippproxy | |
210 | # | |
211 | ||
212 | ippproxy: ippproxy.o ../cups/$(LIBCUPSSTATIC) | |
213 | echo Linking $@... | |
214 | $(CC) $(LDFLAGS) -o $@ ippproxy.o ../cups/$(LIBCUPSSTATIC) \ | |
215 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) | |
216 | ||
217 | ||
218 | # | |
219 | # ippproxy-shared | |
220 | # | |
221 | ||
222 | ippproxy-shared: ippproxy.o ../cups/$(LIBCUPS) | |
223 | echo Linking $@... | |
224 | $(CC) $(LDFLAGS) -o $@ ippproxy.o $(LIBS) | |
225 | ||
226 | ||
1106b00e MS |
227 | # |
228 | # ippserver | |
229 | # | |
230 | ||
231 | ippserver: ippserver.o ../cups/$(LIBCUPSSTATIC) | |
232 | echo Linking $@... | |
233 | $(CC) $(LDFLAGS) -o $@ ippserver.o ../cups/$(LIBCUPSSTATIC) \ | |
234 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) | |
235 | ||
236 | ||
e60ec91f MS |
237 | # |
238 | # ippserver-shared | |
239 | # | |
240 | ||
241 | ippserver-shared: ippserver.o ../cups/$(LIBCUPS) | |
242 | echo Linking $@... | |
243 | $(CC) $(LDFLAGS) -o $@ ippserver.o $(LIBS) | |
244 | ||
245 | ||
ef416fc2 | 246 | # |
aaf19ab0 | 247 | # ipptool |
ef416fc2 | 248 | # |
249 | ||
aaf19ab0 | 250 | ipptool: ipptool.o ../cups/$(LIBCUPS) |
f8b3a85b | 251 | echo Linking $@... |
aaf19ab0 | 252 | $(CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS) |
f8b3a85b MS |
253 | |
254 | ||
255 | # | |
aaf19ab0 | 256 | # ipptool-static |
f8b3a85b MS |
257 | # |
258 | ||
aaf19ab0 | 259 | ipptool-static: ipptool.o ../cups/$(LIBCUPSSTATIC) |
ef416fc2 | 260 | echo Linking $@... |
aaf19ab0 | 261 | $(CC) $(LDFLAGS) -o $@ ipptool.o ../cups/$(LIBCUPSSTATIC) \ |
c168a833 | 262 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
ef416fc2 | 263 | |
264 | ||
9b66acc5 MS |
265 | # |
266 | # xmltotest | |
267 | # | |
268 | ||
269 | xmltotest: xmltotest.o ../cups/$(LIBUPSSTATIC) | |
270 | echo Linking $@... | |
271 | $(CC) $(LDFLAGS) -o $@ xmltotest.o ../cups/$(LIBCUPSSTATIC) \ | |
272 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) \ | |
12f89d24 | 273 | $(LIBMXML) |
9b66acc5 MS |
274 | |
275 | ||
ef416fc2 | 276 | # |
277 | # Dependencies... | |
278 | # | |
279 | ||
280 | include Dependencies | |
281 | ||
282 | ||
283 | # | |
f2d18633 | 284 | # End of "$Id$". |
ef416fc2 | 285 | # |