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