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