]> git.ipfire.org Git - thirdparty/cups.git/blob - test/Makefile
Remove all of the Subversion keywords from various source files.
[thirdparty/cups.git] / test / Makefile
1 #
2 # IPP test makefile for CUPS.
3 #
4 # Copyright 2007-2014 by Apple Inc.
5 # Copyright 1997-2006 by Easy Software Products, all rights reserved.
6 #
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/".
12 #
13
14 include ../Makedefs
15
16
17 #
18 # Sample test files.
19 #
20
21 DATAFILES = \
22 color.jpg \
23 document-a4.pdf \
24 document-a4.ps \
25 document-letter.pdf \
26 document-letter.ps \
27 gray.jpg \
28 onepage-a4.pdf \
29 onepage-a4.ps \
30 onepage-letter.pdf \
31 onepage-letter.ps \
32 testfile.jpg \
33 testfile.pcl \
34 testfile.pdf \
35 testfile.ps \
36 testfile.txt
37 TESTFILES = \
38 create-printer-subscription.test \
39 get-completed-jobs.test \
40 get-jobs.test \
41 get-notifications.test \
42 get-printer-attributes.test \
43 get-subscriptions.test \
44 ipp-1.1.test \
45 ipp-2.0.test \
46 ipp-2.1.test \
47 ipp-2.2.test \
48 ipp-everywhere.test \
49 print-job.test \
50 print-job-deflate.test \
51 print-job-gzip.test \
52 validate-job.test
53 OBJS = \
54 ippfind.o \
55 ippinfra.o \
56 ippproxy.o \
57 ippserver.o \
58 ipptool.o \
59 xmltotest.o
60 TARGETS = \
61 $(IPPFIND_BIN) \
62 ippserver \
63 ipptool \
64 ipptool-static
65
66
67 #
68 # Make all targets...
69 #
70
71 all: $(TARGETS)
72
73
74 #
75 # Make library targets...
76 #
77
78 libs:
79
80
81 #
82 # Make unit tests...
83 #
84
85 unittests:
86
87
88 #
89 # Clean all object files...
90 #
91
92 clean:
93 $(RM) $(TARGETS) $(OBJS) ippfind-static ippinfra ippinfra-shared ippproxy ippproxy-shared ippserver-shared
94
95
96 #
97 # Update dependencies (without system header dependencies...)
98 #
99
100 depend:
101 $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies
102
103
104 #
105 # Install all targets...
106 #
107
108 install: all install-data install-headers install-libs install-exec
109
110
111 #
112 # Install data files...
113 #
114
115 install-data:
116 echo Installing sample ipptool files in $(DATADIR)/ipptool...
117 $(INSTALL_DIR) -m 755 $(DATADIR)/ipptool
118 for file in $(DATAFILES); do \
119 $(INSTALL_COMPDATA) $$file $(DATADIR)/ipptool; \
120 done
121 for file in $(TESTFILES); do \
122 $(INSTALL_DATA) $$file $(DATADIR)/ipptool; \
123 done
124
125
126 #
127 # Install programs...
128 #
129
130 install-exec:
131 echo Installing ipptool in $(BINDIR)...
132 $(INSTALL_DIR) -m 755 $(BINDIR)
133 $(INSTALL_BIN) ipptool $(BINDIR)
134 if test -x ippfind; then \
135 $(INSTALL_BIN) ippfind $(BINDIR); \
136 fi
137 if test "x$(SYMROOT)" != "x"; then \
138 $(INSTALL_DIR) $(SYMROOT); \
139 cp ippfind $(SYMROOT); \
140 dsymutil $(SYMROOT)/ippfind; \
141 cp ipptool $(SYMROOT); \
142 dsymutil $(SYMROOT)/ipptool; \
143 fi
144
145
146 #
147 # Install headers...
148 #
149
150 install-headers:
151
152
153 #
154 # Install libraries...
155 #
156
157 install-libs:
158
159
160 #
161 # Unnstall all targets...
162 #
163
164 uninstall:
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
173
174
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
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
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
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
244 #
245 # ipptool
246 #
247
248 ipptool: ipptool.o ../cups/$(LIBCUPS)
249 echo Linking $@...
250 $(CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS)
251
252
253 #
254 # ipptool-static
255 #
256
257 ipptool-static: ipptool.o ../cups/$(LIBCUPSSTATIC)
258 echo Linking $@...
259 $(CC) $(LDFLAGS) -o $@ ipptool.o ../cups/$(LIBCUPSSTATIC) \
260 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
261
262
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) \
271 $(LIBMXML)
272
273
274 #
275 # Dependencies...
276 #
277
278 include Dependencies