]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
503b54c9 | 2 | # IPP test makefile for CUPS. |
ef416fc2 | 3 | # |
105922ec | 4 | # Copyright 2007-2017 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 = \ |
766a8229 | 50 | ippfind.o \ |
1106b00e | 51 | ippserver.o \ |
e1f89675 | 52 | ipptool.o |
1106b00e | 53 | TARGETS = \ |
766a8229 | 54 | $(IPPFIND_BIN) \ |
1106b00e MS |
55 | ippserver \ |
56 | ipptool \ | |
105922ec | 57 | $(LOCALTARGET) |
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 MS |
86 | $(RM) $(TARGETS) $(OBJS) |
87 | $(RM) ippserver ippserver-shared 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) |
aaf19ab0 | 127 | $(INSTALL_BIN) ipptool $(BINDIR) |
bc0305b0 | 128 | if test -x ippfind; then \ |
ad0357ca MS |
129 | $(INSTALL_BIN) ippfind $(BINDIR); \ |
130 | fi | |
f8b3a85b MS |
131 | if test "x$(SYMROOT)" != "x"; then \ |
132 | $(INSTALL_DIR) $(SYMROOT); \ | |
ad0357ca MS |
133 | cp ippfind $(SYMROOT); \ |
134 | dsymutil $(SYMROOT)/ippfind; \ | |
aaf19ab0 | 135 | cp ipptool $(SYMROOT); \ |
c1420c87 | 136 | dsymutil $(SYMROOT)/ipptool; \ |
f8b3a85b | 137 | fi |
50fe7201 MS |
138 | |
139 | ||
140 | # | |
141 | # Install headers... | |
142 | # | |
143 | ||
144 | install-headers: | |
145 | ||
146 | ||
147 | # | |
148 | # Install libraries... | |
149 | # | |
150 | ||
151 | install-libs: | |
ef416fc2 | 152 | |
153 | ||
757d2cad | 154 | # |
155 | # Unnstall all targets... | |
156 | # | |
157 | ||
158 | uninstall: | |
82cc1f9a MS |
159 | echo Uninstalling sample ipptool files from $(DATADIR)/ipptool... |
160 | for file in $(DATAFILES); do \ | |
161 | $(RM) $(DATADIR)/ipptool/$$file; \ | |
162 | done | |
163 | for file in $(TESTFILES); do \ | |
164 | $(RM) $(DATADIR)/ipptool/$$file; \ | |
165 | done | |
166 | -$(RMDIR) $(DATADIR)/ipptool | |
757d2cad | 167 | |
168 | ||
105922ec MS |
169 | # |
170 | # Local programs (not built when cross-compiling...) | |
171 | # | |
172 | ||
173 | local: ippserver ippserver-shared ipptool-static | |
174 | ||
175 | ||
766a8229 MS |
176 | # |
177 | # ippfind | |
178 | # | |
179 | ||
180 | ippfind: ippfind.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSSTATIC) | |
181 | echo Linking $@... | |
a621d151 | 182 | $(LD_CC) $(LDFLAGS) -o $@ ippfind.o $(LIBS) |
766a8229 | 183 | echo Linking $@-static... |
a621d151 | 184 | $(LD_CC) $(LDFLAGS) -o $@-static ippfind.o ../cups/$(LIBCUPSSTATIC) \ |
766a8229 MS |
185 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
186 | ||
187 | ||
1106b00e MS |
188 | # |
189 | # ippserver | |
190 | # | |
191 | ||
192 | ippserver: ippserver.o ../cups/$(LIBCUPSSTATIC) | |
193 | echo Linking $@... | |
a621d151 | 194 | $(LD_CC) $(LDFLAGS) -o $@ ippserver.o ../cups/$(LIBCUPSSTATIC) \ |
1106b00e MS |
195 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
196 | ||
197 | ||
e60ec91f MS |
198 | # |
199 | # ippserver-shared | |
200 | # | |
201 | ||
202 | ippserver-shared: ippserver.o ../cups/$(LIBCUPS) | |
203 | echo Linking $@... | |
a621d151 | 204 | $(LD_CC) $(LDFLAGS) -o $@ ippserver.o $(LIBS) |
e60ec91f MS |
205 | |
206 | ||
ef416fc2 | 207 | # |
aaf19ab0 | 208 | # ipptool |
ef416fc2 | 209 | # |
210 | ||
aaf19ab0 | 211 | ipptool: ipptool.o ../cups/$(LIBCUPS) |
f8b3a85b | 212 | echo Linking $@... |
a621d151 | 213 | $(LD_CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS) |
f8b3a85b MS |
214 | |
215 | ||
216 | # | |
aaf19ab0 | 217 | # ipptool-static |
f8b3a85b MS |
218 | # |
219 | ||
aaf19ab0 | 220 | ipptool-static: ipptool.o ../cups/$(LIBCUPSSTATIC) |
ef416fc2 | 221 | echo Linking $@... |
a621d151 | 222 | $(LD_CC) $(LDFLAGS) -o $@ ipptool.o ../cups/$(LIBCUPSSTATIC) \ |
c168a833 | 223 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
ef416fc2 | 224 | |
225 | ||
226 | # | |
227 | # Dependencies... | |
228 | # | |
229 | ||
230 | include Dependencies |