]>
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 | # |
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 | |
57b7b66b | 11 | # 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 \ |
1106b00e | 55 | ippserver.o \ |
e1f89675 | 56 | ipptool.o |
1106b00e | 57 | TARGETS = \ |
766a8229 | 58 | $(IPPFIND_BIN) \ |
1106b00e MS |
59 | ippserver \ |
60 | ipptool \ | |
105922ec | 61 | $(LOCALTARGET) |
f8b3a85b MS |
62 | |
63 | ||
ef416fc2 | 64 | # |
65 | # Make all targets... | |
66 | # | |
67 | ||
1106b00e | 68 | all: $(TARGETS) |
ef416fc2 | 69 | |
70 | ||
c9fc04c6 MS |
71 | # |
72 | # Make library targets... | |
73 | # | |
74 | ||
75 | libs: | |
76 | ||
77 | ||
5f64df29 MS |
78 | # |
79 | # Make unit tests... | |
80 | # | |
81 | ||
82 | unittests: | |
83 | ||
84 | ||
ef416fc2 | 85 | # |
86 | # Clean all object files... | |
87 | # | |
88 | ||
89 | clean: | |
105922ec MS |
90 | $(RM) $(TARGETS) $(OBJS) |
91 | $(RM) ippserver ippserver-shared ipptool-static | |
ef416fc2 | 92 | |
93 | ||
94 | # | |
95 | # Update dependencies (without system header dependencies...) | |
96 | # | |
97 | ||
98 | depend: | |
12f89d24 | 99 | $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies |
ef416fc2 | 100 | |
101 | ||
102 | # | |
103 | # Install all targets... | |
104 | # | |
105 | ||
50fe7201 MS |
106 | install: all install-data install-headers install-libs install-exec |
107 | ||
108 | ||
109 | # | |
110 | # Install data files... | |
111 | # | |
112 | ||
113 | install-data: | |
aaf19ab0 MS |
114 | echo Installing sample ipptool files in $(DATADIR)/ipptool... |
115 | $(INSTALL_DIR) -m 755 $(DATADIR)/ipptool | |
82cc1f9a MS |
116 | for file in $(DATAFILES); do \ |
117 | $(INSTALL_COMPDATA) $$file $(DATADIR)/ipptool; \ | |
118 | done | |
f8b3a85b | 119 | for file in $(TESTFILES); do \ |
aaf19ab0 | 120 | $(INSTALL_DATA) $$file $(DATADIR)/ipptool; \ |
f8b3a85b | 121 | done |
50fe7201 MS |
122 | |
123 | ||
124 | # | |
125 | # Install programs... | |
126 | # | |
127 | ||
128 | install-exec: | |
aaf19ab0 | 129 | echo Installing ipptool in $(BINDIR)... |
f8b3a85b | 130 | $(INSTALL_DIR) -m 755 $(BINDIR) |
aaf19ab0 | 131 | $(INSTALL_BIN) ipptool $(BINDIR) |
bc0305b0 | 132 | if test -x ippfind; then \ |
ad0357ca MS |
133 | $(INSTALL_BIN) ippfind $(BINDIR); \ |
134 | fi | |
f8b3a85b MS |
135 | if test "x$(SYMROOT)" != "x"; then \ |
136 | $(INSTALL_DIR) $(SYMROOT); \ | |
ad0357ca MS |
137 | cp ippfind $(SYMROOT); \ |
138 | dsymutil $(SYMROOT)/ippfind; \ | |
aaf19ab0 | 139 | cp ipptool $(SYMROOT); \ |
c1420c87 | 140 | dsymutil $(SYMROOT)/ipptool; \ |
f8b3a85b | 141 | fi |
50fe7201 MS |
142 | |
143 | ||
144 | # | |
145 | # Install headers... | |
146 | # | |
147 | ||
148 | install-headers: | |
149 | ||
150 | ||
151 | # | |
152 | # Install libraries... | |
153 | # | |
154 | ||
155 | install-libs: | |
ef416fc2 | 156 | |
157 | ||
757d2cad | 158 | # |
159 | # Unnstall all targets... | |
160 | # | |
161 | ||
162 | uninstall: | |
82cc1f9a MS |
163 | echo Uninstalling sample ipptool files from $(DATADIR)/ipptool... |
164 | for file in $(DATAFILES); do \ | |
165 | $(RM) $(DATADIR)/ipptool/$$file; \ | |
166 | done | |
167 | for file in $(TESTFILES); do \ | |
168 | $(RM) $(DATADIR)/ipptool/$$file; \ | |
169 | done | |
170 | -$(RMDIR) $(DATADIR)/ipptool | |
757d2cad | 171 | |
172 | ||
105922ec MS |
173 | # |
174 | # Local programs (not built when cross-compiling...) | |
175 | # | |
176 | ||
177 | local: ippserver ippserver-shared ipptool-static | |
178 | ||
179 | ||
766a8229 MS |
180 | # |
181 | # ippfind | |
182 | # | |
183 | ||
184 | ippfind: ippfind.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSSTATIC) | |
185 | echo Linking $@... | |
a621d151 | 186 | $(LD_CC) $(LDFLAGS) -o $@ ippfind.o $(LIBS) |
766a8229 | 187 | echo Linking $@-static... |
a621d151 | 188 | $(LD_CC) $(LDFLAGS) -o $@-static ippfind.o ../cups/$(LIBCUPSSTATIC) \ |
766a8229 MS |
189 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
190 | ||
191 | ||
1106b00e MS |
192 | # |
193 | # ippserver | |
194 | # | |
195 | ||
196 | ippserver: ippserver.o ../cups/$(LIBCUPSSTATIC) | |
197 | echo Linking $@... | |
a621d151 | 198 | $(LD_CC) $(LDFLAGS) -o $@ ippserver.o ../cups/$(LIBCUPSSTATIC) \ |
1106b00e MS |
199 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
200 | ||
201 | ||
e60ec91f MS |
202 | # |
203 | # ippserver-shared | |
204 | # | |
205 | ||
206 | ippserver-shared: ippserver.o ../cups/$(LIBCUPS) | |
207 | echo Linking $@... | |
a621d151 | 208 | $(LD_CC) $(LDFLAGS) -o $@ ippserver.o $(LIBS) |
e60ec91f MS |
209 | |
210 | ||
ef416fc2 | 211 | # |
aaf19ab0 | 212 | # ipptool |
ef416fc2 | 213 | # |
214 | ||
aaf19ab0 | 215 | ipptool: ipptool.o ../cups/$(LIBCUPS) |
f8b3a85b | 216 | echo Linking $@... |
a621d151 | 217 | $(LD_CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS) |
f8b3a85b MS |
218 | |
219 | ||
220 | # | |
aaf19ab0 | 221 | # ipptool-static |
f8b3a85b MS |
222 | # |
223 | ||
aaf19ab0 | 224 | ipptool-static: ipptool.o ../cups/$(LIBCUPSSTATIC) |
ef416fc2 | 225 | echo Linking $@... |
a621d151 | 226 | $(LD_CC) $(LDFLAGS) -o $@ ipptool.o ../cups/$(LIBCUPSSTATIC) \ |
c168a833 | 227 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
ef416fc2 | 228 | |
229 | ||
230 | # | |
231 | # Dependencies... | |
232 | # | |
233 | ||
234 | include Dependencies |