]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
b19ccc9e | 2 | # "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $" |
ef416fc2 | 3 | # |
4 | # API library Makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
c168a833 | 6 | # Copyright 2007-2009 by Apple Inc. |
ef416fc2 | 7 | # Copyright 1997-2006 by Easy Software Products, all rights reserved. |
8 | # | |
9 | # These coded instructions, statements, and computer programs are the | |
bc44d920 | 10 | # property of Apple Inc. and are protected by Federal copyright |
11 | # law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
12 | # which should have been included with this file. If this file is | |
13 | # file is missing or damaged, see the license at "http://www.cups.org/". | |
ef416fc2 | 14 | # |
15 | # This file is subject to the Apple OS-Developed Software exception. | |
16 | # | |
17 | ||
18 | include ../Makedefs | |
19 | ||
20 | # | |
21 | # Object files... | |
22 | # | |
23 | ||
24 | LIBOBJS = \ | |
757d2cad | 25 | adminutil.o \ |
ef416fc2 | 26 | array.o \ |
27 | attr.o \ | |
28 | auth.o \ | |
29 | backchannel.o \ | |
a4d04587 | 30 | backend.o \ |
66ab9486 | 31 | conflicts.o \ |
fa73b229 | 32 | custom.o \ |
ae71f5de | 33 | debug.o \ |
ef416fc2 | 34 | dest.o \ |
35 | dir.o \ | |
36 | emit.o \ | |
37 | encode.o \ | |
38 | file.o \ | |
ae71f5de | 39 | getdevices.o \ |
89d46774 | 40 | getifaddrs.o \ |
ef416fc2 | 41 | getputfile.o \ |
42 | globals.o \ | |
43 | http.o \ | |
44 | http-addr.o \ | |
45 | http-addrlist.o \ | |
46 | http-support.o \ | |
47 | ipp.o \ | |
48 | ipp-support.o \ | |
49 | langprintf.o \ | |
50 | language.o \ | |
fa73b229 | 51 | localize.o \ |
ef416fc2 | 52 | mark.o \ |
53 | md5.o \ | |
54 | md5passwd.o \ | |
fa73b229 | 55 | notify.o \ |
ef416fc2 | 56 | options.o \ |
57 | page.o \ | |
58 | ppd.o \ | |
c168a833 | 59 | pwgmedia.o \ |
ecdc0628 | 60 | request.o \ |
f7deaa1a | 61 | sidechannel.o \ |
91c84a35 | 62 | snmp.o \ |
ef416fc2 | 63 | snprintf.o \ |
64 | string.o \ | |
65 | tempfile.o \ | |
66 | transcode.o \ | |
67 | usersys.o \ | |
68 | util.o | |
e1d6a774 | 69 | LIB32OBJS = $(LIBOBJS:.o=.32.o) |
70 | LIB64OBJS = $(LIBOBJS:.o=.64.o) | |
ef416fc2 | 71 | OBJS = \ |
72 | $(LIBOBJS) \ | |
e1d6a774 | 73 | $(LIB32OBJS) \ |
74 | $(LIB64OBJS) \ | |
757d2cad | 75 | testadmin.o \ |
ef416fc2 | 76 | testarray.o \ |
06d4e77b | 77 | testconflicts.o \ |
09a101d6 | 78 | testcups.o \ |
ef416fc2 | 79 | testfile.o \ |
80 | testhttp.o \ | |
81 | testi18n.o \ | |
82 | testipp.o \ | |
20fbc903 | 83 | testoptions.o \ |
ef416fc2 | 84 | testlang.o \ |
fa73b229 | 85 | testppd.o \ |
91c84a35 | 86 | testsnmp.o \ |
ef416fc2 | 87 | php_cups_wrap.o |
88 | ||
89 | ||
90 | # | |
91 | # Header files to install... | |
92 | # | |
93 | ||
94 | HEADERS = \ | |
757d2cad | 95 | adminutil.h \ |
ef416fc2 | 96 | array.h \ |
d09495fa | 97 | backend.h \ |
ef416fc2 | 98 | cups.h \ |
99 | dir.h \ | |
100 | file.h \ | |
101 | http.h \ | |
ef416fc2 | 102 | ipp.h \ |
103 | language.h \ | |
ef416fc2 | 104 | ppd.h \ |
ac884b6a | 105 | raster.h \ |
f7deaa1a | 106 | sidechannel.h \ |
a41f09e2 MS |
107 | transcode.h \ |
108 | versioning.h | |
ef416fc2 | 109 | |
110 | ||
111 | # | |
112 | # Targets in this directory... | |
113 | # | |
114 | ||
c9fc04c6 | 115 | LIBTARGETS = \ |
ef416fc2 | 116 | $(LIBCUPS) \ |
e1d6a774 | 117 | $(LIB32CUPS) \ |
118 | $(LIB64CUPS) \ | |
5f64df29 MS |
119 | libcups.a |
120 | ||
121 | UNITTARGETS = \ | |
122 | testadmin \ | |
ef416fc2 | 123 | testarray \ |
5f64df29 MS |
124 | testconflicts \ |
125 | testcups \ | |
ef416fc2 | 126 | testfile \ |
127 | testhttp \ | |
128 | testi18n \ | |
129 | testipp \ | |
fa73b229 | 130 | testlang \ |
20fbc903 | 131 | testoptions \ |
5f64df29 MS |
132 | testppd \ |
133 | testsnmp | |
c9fc04c6 MS |
134 | |
135 | TARGETS = \ | |
5f64df29 | 136 | $(LIBTARGETS) |
ef416fc2 | 137 | |
138 | ||
139 | # | |
140 | # Make all targets... | |
141 | # | |
142 | ||
143 | all: $(TARGETS) | |
144 | ||
145 | ||
c9fc04c6 MS |
146 | # |
147 | # Make library targets... | |
148 | # | |
149 | ||
150 | libs: $(LIBTARGETS) | |
151 | ||
152 | ||
5f64df29 MS |
153 | # |
154 | # Make unit tests... | |
155 | # | |
156 | ||
157 | unittests: $(UNITTARGETS) | |
158 | ||
159 | ||
ef416fc2 | 160 | # |
161 | # Remove object and target files... | |
162 | # | |
163 | ||
164 | clean: | |
5f64df29 | 165 | $(RM) $(OBJS) $(TARGETS) $(UNITTARGETS) |
f301802f | 166 | $(RM) libcups.so libcups.sl libcups.dylib |
ed486911 | 167 | $(RM) -r 32bit 64bit |
ef416fc2 | 168 | |
169 | ||
170 | # | |
171 | # Update dependencies (without system header dependencies...) | |
172 | # | |
173 | ||
174 | depend: | |
e1d6a774 | 175 | touch Dependencies.tmp |
176 | makedepend -Y -I.. -fDependencies.tmp $(OBJS:.o=.c) >/dev/null 2>&1 | |
177 | $(RM) Dependencies | |
178 | cp Dependencies.tmp Dependencies | |
91c84a35 MS |
179 | sed -E -e '1,$$s/^([^.]+)\.o:/\1\.32.o: \1\.c /' Dependencies.tmp >>Dependencies |
180 | sed -E -e '1,$$s/^([^.]+)\.o:/\1\.64.o: \1\.c /' Dependencies.tmp >>Dependencies | |
e1d6a774 | 181 | $(RM) Dependencies.tmp |
ef416fc2 | 182 | |
183 | ||
184 | # | |
50fe7201 | 185 | # Install all targets... |
ef416fc2 | 186 | # |
187 | ||
50fe7201 MS |
188 | install: all install-data install-headers install-libs install-exec |
189 | ||
190 | ||
191 | # | |
192 | # Install data files... | |
193 | # | |
194 | ||
195 | install-data: | |
196 | ||
197 | ||
198 | # | |
199 | # Install programs... | |
200 | # | |
201 | ||
202 | install-exec: | |
203 | ||
204 | ||
205 | # | |
206 | # Install headers... | |
207 | # | |
208 | ||
209 | install-headers: | |
210 | echo Installing header files into $(INCLUDEDIR)/cups... | |
211 | $(INSTALL_DIR) -m 755 $(INCLUDEDIR)/cups | |
212 | for file in $(HEADERS); do \ | |
213 | $(INSTALL_DATA) $$file $(INCLUDEDIR)/cups; \ | |
214 | done | |
215 | ||
216 | ||
217 | # | |
218 | # Install libraries... | |
219 | # | |
220 | ||
221 | install-libs: $(INSTALLSTATIC) $(INSTALL32) $(INSTALL64) | |
222 | echo Installing libraries in $(LIBDIR)... | |
bd7854cb | 223 | $(INSTALL_DIR) -m 755 $(LIBDIR) |
ef416fc2 | 224 | $(INSTALL_LIB) $(LIBCUPS) $(LIBDIR) |
225 | if test $(LIBCUPS) = "libcups.so.2" -o $(LIBCUPS) = "libcups.sl.2"; then \ | |
226 | $(RM) $(LIBDIR)/`basename $(LIBCUPS) .2`; \ | |
227 | $(LN) $(LIBCUPS) $(LIBDIR)/`basename $(LIBCUPS) .2`; \ | |
228 | fi | |
229 | if test $(LIBCUPS) = "libcups.2.dylib"; then \ | |
ef416fc2 | 230 | $(RM) $(LIBDIR)/libcups.dylib; \ |
231 | $(LN) $(LIBCUPS) $(LIBDIR)/libcups.dylib; \ | |
232 | fi | |
09a101d6 | 233 | if test "x$(SYMROOT)" != "x"; then \ |
234 | $(INSTALL_DIR) $(SYMROOT); \ | |
50fe7201 | 235 | cp $(LIBCUPS) $(SYMROOT); \ |
09a101d6 | 236 | fi |
923edb68 | 237 | |
238 | installstatic: | |
239 | $(INSTALL_DIR) -m 755 $(LIBDIR) | |
d6ae789d | 240 | $(INSTALL_LIB) libcups.a $(LIBDIR) |
241 | $(RANLIB) $(LIBDIR)/libcups.a | |
ef416fc2 | 242 | |
e1d6a774 | 243 | install32bit: |
50fe7201 | 244 | echo Installing libraries in $(LIB32DIR)... |
e1d6a774 | 245 | $(INSTALL_DIR) -m 755 $(LIB32DIR) |
f301802f | 246 | $(INSTALL_LIB) 32bit/libcups.so.2 $(LIB32DIR)/libcups.so.2 |
ed486911 | 247 | $(LN) libcups.so.2 $(LIB32DIR)/libcups.so |
e1d6a774 | 248 | |
249 | install64bit: | |
50fe7201 | 250 | echo Installing libraries in $(LIB64DIR)... |
e1d6a774 | 251 | $(INSTALL_DIR) -m 755 $(LIB64DIR) |
f301802f | 252 | $(INSTALL_LIB) 64bit/libcups.so.2 $(LIB64DIR)/libcups.so.2 |
ed486911 | 253 | $(LN) libcups.so.2 $(LIB64DIR)/libcups.so |
e1d6a774 | 254 | |
ef416fc2 | 255 | |
757d2cad | 256 | # |
257 | # Uninstall object and target files... | |
258 | # | |
259 | ||
e1d6a774 | 260 | uninstall: $(UNINSTALL32) $(UNINSTALL64) |
757d2cad | 261 | $(RM) $(LIBDIR)/libcups.2.dylib |
262 | $(RM) $(LIBDIR)/libcups.a | |
263 | $(RM) $(LIBDIR)/libcups.dylib | |
264 | $(RM) $(LIBDIR)/libcups_s.a | |
265 | $(RM) $(LIBDIR)/libcups.sl | |
266 | $(RM) $(LIBDIR)/libcups.sl.2 | |
267 | $(RM) $(LIBDIR)/libcups.so | |
268 | $(RM) $(LIBDIR)/libcups.so.2 | |
269 | -$(RMDIR) $(LIBDIR) | |
270 | for file in $(HEADERS); do \ | |
271 | $(RM) $(INCLUDEDIR)/cups/$$file; \ | |
272 | done | |
273 | -$(RMDIR) $(INCLUDEDIR)/cups | |
274 | ||
e1d6a774 | 275 | uninstall32bit: |
276 | $(RM) $(LIB32DIR)/libcups.so | |
277 | $(RM) $(LIB32DIR)/libcups.so.2 | |
278 | -$(RMDIR) $(LIB32DIR) | |
279 | ||
280 | uninstall64bit: | |
281 | $(RM) $(LIB64DIR)/libcups.so | |
282 | $(RM) $(LIB64DIR)/libcups.so.2 | |
283 | -$(RMDIR) $(LIB64DIR) | |
284 | ||
757d2cad | 285 | |
ef416fc2 | 286 | # |
287 | # libcups.so.2, libcups.sl.2 | |
288 | # | |
289 | ||
290 | libcups.so.2 libcups.sl.2: $(LIBOBJS) | |
291 | echo Linking $@... | |
c168a833 MS |
292 | $(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(LIBOBJS) $(LIBGSSAPI) \ |
293 | $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) | |
ef416fc2 | 294 | $(RM) `basename $@ .2` |
295 | $(LN) $@ `basename $@ .2` | |
296 | ||
297 | ||
e1d6a774 | 298 | # |
f301802f | 299 | # 32bit/libcups.so.2 |
e1d6a774 | 300 | # |
301 | ||
f301802f | 302 | 32bit/libcups.so.2: $(LIB32OBJS) |
e1d6a774 | 303 | echo Linking 32-bit $@... |
f301802f | 304 | -mkdir 32bit |
c168a833 MS |
305 | $(DSO) $(ARCH32FLAGS) $(DSO32FLAGS) -o $@ $(LIB32OBJS) $(LIBGSSAPI) \ |
306 | $(DNSSDLIBS) $(SSLLIBS) $(COMMONLIBS) $(LIBZ) | |
f301802f | 307 | $(RM) 32bit/libcups.so |
308 | $(LN) libcups.so.2 32bit/libcups.so | |
e1d6a774 | 309 | |
310 | ||
311 | # | |
f301802f | 312 | # 64bit/libcups.so.2 |
e1d6a774 | 313 | # |
314 | ||
f301802f | 315 | 64bit/libcups.so.2: $(LIB64OBJS) |
e1d6a774 | 316 | echo Linking 64-bit $@... |
f301802f | 317 | -mkdir 64bit |
c168a833 MS |
318 | $(DSO) $(ARCH64FLAGS) $(DSO64FLAGS) -o $@ $(LIB64OBJS) $(LIBGSSAPI) \ |
319 | $(DNSSDLIBS) $(SSLLIBS) $(COMMONLIBS) $(LIBZ) | |
f301802f | 320 | $(RM) 64bit/libcups.so |
321 | $(LN) libcups.so.2 64bit/libcups.so | |
e1d6a774 | 322 | |
323 | ||
ef416fc2 | 324 | # |
325 | # libcups.2.dylib | |
326 | # | |
327 | ||
a4924f6c | 328 | libcups.2.dylib: $(LIBOBJS) $(LIBCUPSORDER) libcups.exp |
ef416fc2 | 329 | echo Linking $@... |
e1d6a774 | 330 | $(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ \ |
fa73b229 | 331 | -install_name $(libdir)/$@ \ |
f7deaa1a | 332 | -current_version 2.8.0 \ |
ef416fc2 | 333 | -compatibility_version 2.0.0 \ |
09a101d6 | 334 | -exported_symbols_list libcups.exp \ |
335 | -sectorder __TEXT __text $(LIBCUPSORDER) \ | |
c168a833 MS |
336 | $(LIBOBJS) $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \ |
337 | $(COMMONLIBS) $(LIBZ) | |
ef416fc2 | 338 | $(RM) libcups.dylib |
339 | $(LN) $@ libcups.dylib | |
340 | ||
341 | ||
342 | # | |
343 | # libcups_s.a | |
344 | # | |
345 | ||
a74454a7 | 346 | libcups_s.a: $(LIBOBJS) libcups_s.exp |
ef416fc2 | 347 | echo Creating $@... |
c168a833 MS |
348 | $(DSO) $(DSOFLAGS) -Wl,-bexport:libcups_s.exp -o libcups_s.o \ |
349 | $(LIBOBJS) $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \ | |
350 | $(COMMONLIBS) $(LIBZ) -lm | |
ef416fc2 | 351 | $(RM) $@ |
352 | $(AR) $(ARFLAGS) $@ libcups_s.o | |
353 | ||
354 | ||
355 | # | |
356 | # libcups.la | |
357 | # | |
358 | ||
359 | libcups.la: $(LIBOBJS) | |
360 | echo Linking $@... | |
c168a833 MS |
361 | $(CC) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(LIBOBJS:.o=.lo) \ |
362 | -rpath $(LIBDIR) -version-info 2:8 $(LIBGSSAPI) $(SSLLIBS) \ | |
363 | $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) | |
ef416fc2 | 364 | |
365 | ||
366 | # | |
367 | # libcups.a | |
368 | # | |
369 | ||
370 | libcups.a: $(LIBOBJS) | |
371 | echo Archiving $@... | |
372 | $(RM) $@ | |
373 | $(AR) $(ARFLAGS) $@ $(LIBOBJS) | |
374 | $(RANLIB) $@ | |
375 | ||
376 | ||
377 | # | |
378 | # CUPS language bindings for various scripting languages... | |
379 | # | |
757d2cad | 380 | # NOTE: Not currently used or functional - see the scripting/php directory |
381 | # for the hand-written bindings... | |
382 | # | |
ef416fc2 | 383 | |
384 | phpcups.so: $(LIBCUPS) php_cups_wrap.o | |
385 | echo Linking $@... | |
386 | if test `uname` = Darwin; then \ | |
387 | DSOFLAGS="-bundle -flat_namespace -undefined suppress"; \ | |
388 | else \ | |
389 | DSOFLAGS="$(DSOFLAGS)"; \ | |
390 | fi; \ | |
391 | $(DSO) $$DSOFLAGS -o $@ php_cups_wrap.o $(LIBS) `php-config --ldflags --libs` | |
392 | ||
393 | php_cups_wrap.o: php_cups_wrap.c | |
394 | echo Compiling $<... | |
395 | $(CC) $(CFLAGS) `php-config --includes` -c $< | |
396 | php_cups_wrap.c: cups.h | |
397 | echo Creating $< using SWIG... | |
398 | swig -php -o $@ -module cups cups.h | |
399 | ||
400 | ||
757d2cad | 401 | # |
402 | # testadmin (dependency on static CUPS library is intentional) | |
403 | # | |
404 | ||
405 | testadmin: testadmin.o libcups.a | |
406 | echo Linking $@... | |
407 | $(CC) $(LDFLAGS) -o $@ testadmin.o libcups.a \ | |
c168a833 | 408 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
757d2cad | 409 | |
410 | ||
ef416fc2 | 411 | # |
412 | # testarray (dependency on static CUPS library is intentional) | |
413 | # | |
414 | ||
415 | testarray: testarray.o libcups.a | |
416 | echo Linking $@... | |
c9fc04c6 | 417 | $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testarray.o libcups.a \ |
c168a833 | 418 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
c9fc04c6 MS |
419 | echo Running array API tests... |
420 | ./testarray | |
ef416fc2 | 421 | |
422 | ||
06d4e77b MS |
423 | # |
424 | # testconflicts (dependency on static CUPS library is intentional) | |
425 | # | |
426 | ||
427 | testconflicts: testconflicts.o libcups.a | |
428 | echo Linking $@... | |
429 | $(CC) $(LDFLAGS) -o $@ testconflicts.o libcups.a \ | |
c168a833 | 430 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
06d4e77b MS |
431 | |
432 | ||
09a101d6 | 433 | # |
434 | # testcups (dependency on static CUPS library is intentional) | |
435 | # | |
436 | ||
437 | testcups: testcups.o libcups.a | |
438 | echo Linking $@... | |
439 | $(CC) $(LDFLAGS) -o $@ testcups.o libcups.a \ | |
c168a833 | 440 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
09a101d6 | 441 | |
442 | ||
ef416fc2 | 443 | # |
444 | # testfile (dependency on static CUPS library is intentional) | |
445 | # | |
446 | ||
447 | testfile: testfile.o libcups.a | |
448 | echo Linking $@... | |
c9fc04c6 | 449 | $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testfile.o libcups.a \ |
c168a833 | 450 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
c9fc04c6 MS |
451 | echo Running file API tests... |
452 | ./testfile | |
ef416fc2 | 453 | |
454 | ||
455 | # | |
456 | # testhttp (dependency on static CUPS library is intentional) | |
457 | # | |
458 | ||
459 | testhttp: testhttp.o libcups.a | |
460 | echo Linking $@... | |
c9fc04c6 | 461 | $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testhttp.o libcups.a \ |
c168a833 | 462 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
c9fc04c6 MS |
463 | echo Running HTTP API tests... |
464 | ./testhttp | |
ef416fc2 | 465 | |
466 | ||
467 | # | |
468 | # testipp (dependency on static CUPS library is intentional) | |
469 | # | |
470 | ||
471 | testipp: testipp.o libcups.a | |
472 | echo Linking $@... | |
c9fc04c6 | 473 | $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testipp.o libcups.a \ |
c168a833 | 474 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
c9fc04c6 MS |
475 | echo Running IPP API tests... |
476 | ./testipp | |
ef416fc2 | 477 | |
478 | ||
479 | # | |
480 | # testi18n (dependency on static CUPS library is intentional) | |
481 | # | |
482 | ||
483 | testi18n: testi18n.o libcups.a | |
484 | echo Linking $@... | |
c9fc04c6 | 485 | $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testi18n.o libcups.a \ |
c168a833 | 486 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
c9fc04c6 MS |
487 | echo Running internationalization API tests... |
488 | ./testi18n | |
ef416fc2 | 489 | |
490 | ||
491 | # | |
492 | # testlang (dependency on static CUPS library is intentional) | |
493 | # | |
494 | ||
495 | testlang: testlang.o libcups.a | |
496 | echo Linking $@... | |
c9fc04c6 | 497 | $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testlang.o libcups.a \ |
c168a833 | 498 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
c9fc04c6 MS |
499 | echo Running language API tests... |
500 | ./testlang | |
ef416fc2 | 501 | |
502 | ||
20fbc903 MS |
503 | # |
504 | # testoptions (dependency on static CUPS library is intentional) | |
505 | # | |
506 | ||
507 | testoptions: testoptions.o libcups.a | |
508 | echo Linking $@... | |
509 | $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testoptions.o libcups.a \ | |
c168a833 | 510 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
20fbc903 MS |
511 | echo Running option API tests... |
512 | ./testoptions | |
513 | ||
514 | ||
fa73b229 | 515 | # |
516 | # testppd (dependency on static CUPS library is intentional) | |
517 | # | |
518 | ||
1340db2d | 519 | testppd: testppd.o libcups.a test.ppd test2.ppd |
fa73b229 | 520 | echo Linking $@... |
c9fc04c6 | 521 | $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testppd.o libcups.a \ |
c168a833 | 522 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
c9fc04c6 MS |
523 | echo Running PPD API tests... |
524 | ./testppd | |
fa73b229 | 525 | |
526 | ||
91c84a35 MS |
527 | # |
528 | # testsnmp (dependency on static CUPS library is intentional) | |
529 | # | |
530 | ||
531 | testsnmp: testsnmp.o libcups.a | |
532 | echo Linking $@... | |
533 | $(CC) $(LDFLAGS) -o $@ testsnmp.o libcups.a \ | |
c168a833 | 534 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
91c84a35 MS |
535 | |
536 | ||
ef416fc2 | 537 | # |
538 | # Automatic API help files... | |
539 | # | |
540 | ||
541 | apihelp: | |
542 | echo Generating CUPS API help files... | |
5a738aea MS |
543 | mxmldoc --section "Programming" \ |
544 | --title "Introduction to CUPS Programming" \ | |
545 | --css ../doc/cups-printable.css \ | |
546 | --header api-overview.header --intro api-overview.shtml \ | |
547 | >../doc/help/api-overview.html | |
ef416fc2 | 548 | mxmldoc --section "Programming" --title "Array API" \ |
5a738aea MS |
549 | --css ../doc/cups-printable.css \ |
550 | --header api-array.header --intro api-array.shtml \ | |
f11a948a | 551 | api-array.xml \ |
ef416fc2 | 552 | array.h array.c >../doc/help/api-array.html |
f11a948a MS |
553 | mxmldoc --tokens help/api-array.html api-array.xml >../doc/help/api-array.tokens |
554 | $(RM) api-array.xml | |
ef416fc2 | 555 | mxmldoc --section "Programming" --title "CUPS API" \ |
5a738aea MS |
556 | --css ../doc/cups-printable.css \ |
557 | --header api-cups.header --intro api-cups.shtml \ | |
f11a948a | 558 | api-cups.xml \ |
426c6a59 | 559 | cups.h adminutil.c dest.c language.c notify.c \ |
ef416fc2 | 560 | options.c tempfile.c usersys.c \ |
561 | util.c >../doc/help/api-cups.html | |
f11a948a MS |
562 | mxmldoc --tokens help/api-cups.html api-cups.xml >../doc/help/api-cups.tokens |
563 | $(RM) api-cups.xml | |
ef416fc2 | 564 | mxmldoc --section "Programming" --title "File and Directory APIs" \ |
5a738aea MS |
565 | --css ../doc/cups-printable.css \ |
566 | --header api-filedir.header --intro api-filedir.shtml \ | |
f11a948a | 567 | api-filedir.xml \ |
ef416fc2 | 568 | file.h file.c dir.h dir.c >../doc/help/api-filedir.html |
f11a948a MS |
569 | mxmldoc --tokens api-filedir.xml >../doc/help/api-filedir.tokens |
570 | $(RM) api-filedir.xml | |
ef416fc2 | 571 | mxmldoc --section "Programming" --title "PPD API" \ |
5a738aea MS |
572 | --css ../doc/cups-printable.css \ |
573 | --header api-ppd.header --intro api-ppd.shtml \ | |
f11a948a | 574 | api-ppd.xml \ |
66ab9486 | 575 | ppd.h attr.c conflicts.c custom.c emit.c localize.c mark.c page.c \ |
ef416fc2 | 576 | ppd.c >../doc/help/api-ppd.html |
f11a948a MS |
577 | mxmldoc --tokens help/api-ppd.html api-ppd.xml >../doc/help/api-ppd.tokens |
578 | $(RM) api-ppd.xml | |
ef416fc2 | 579 | mxmldoc --section "Programming" --title "HTTP and IPP APIs" \ |
5a738aea MS |
580 | --css ../doc/cups-printable.css \ |
581 | --header api-httpipp.header --intro api-httpipp.shtml \ | |
f11a948a | 582 | api-httpipp.xml \ |
ae71f5de MS |
583 | http.h ipp.h auth.c getdevices.c getputfile.c encode.c \ |
584 | http.c http-addr.c http-support.c ipp.c ipp-support.c \ | |
585 | md5passwd.c request.c >../doc/help/api-httpipp.html | |
f11a948a MS |
586 | mxmldoc --tokens help/api-httpipp.html api-httpipp.xml >../doc/help/api-httpipp.tokens |
587 | $(RM) api-httpipp.xml | |
5a738aea MS |
588 | mxmldoc --section "Programming" \ |
589 | --title "Filter and Backend Programming" \ | |
590 | --css ../doc/cups-printable.css \ | |
591 | --header api-filter.header --intro api-filter.shtml \ | |
f11a948a | 592 | api-filter.xml \ |
ac884b6a | 593 | backchannel.c backend.h backend.c sidechannel.c sidechannel.h \ |
7a14d768 | 594 | >../doc/help/api-filter.html |
f11a948a MS |
595 | mxmldoc --tokens help/api-filter.html api-filter.xml >../doc/help/api-filter.tokens |
596 | $(RM) api-filter.xml | |
5a738aea MS |
597 | |
598 | framedhelp: | |
599 | echo Generating CUPS API help files... | |
600 | mxmldoc --framed api-overview \ | |
601 | --section "Programming" \ | |
602 | --title "Introduction to CUPS Programming" \ | |
603 | --css ../doc/cups-printable.css \ | |
604 | --header api-overview.header --intro api-overview.shtml | |
605 | mxmldoc --framed api-array \ | |
606 | --section "Programming" --title "Array API" \ | |
607 | --css ../doc/cups-printable.css \ | |
608 | --header api-array.header --intro api-array.shtml \ | |
609 | array.h array.c | |
610 | mxmldoc --framed api-cups \ | |
611 | --section "Programming" --title "CUPS API" \ | |
612 | --css ../doc/cups-printable.css \ | |
613 | --header api-cups.header --intro api-cups.shtml \ | |
426c6a59 | 614 | cups.h adminutil.c dest.c language.c notify.c \ |
5a738aea | 615 | options.c tempfile.c usersys.c \ |
ac884b6a | 616 | util.c |
5a738aea MS |
617 | mxmldoc --framed api-filedir \ |
618 | --section "Programming" --title "File and Directory APIs" \ | |
619 | --css ../doc/cups-printable.css \ | |
620 | --header api-filedir.header --intro api-filedir.shtml \ | |
ac884b6a | 621 | file.h file.c dir.h dir.c |
5a738aea MS |
622 | mxmldoc --framed api-ppd \ |
623 | --section "Programming" --title "PPD API" \ | |
624 | --css ../doc/cups-printable.css \ | |
625 | --header api-ppd.header --intro api-ppd.shtml \ | |
66ab9486 MS |
626 | ppd.h attr.c conflicts.c custom.c emit.c localize.c mark.c \ |
627 | page.c ppd.c | |
5a738aea MS |
628 | mxmldoc --framed api-httpipp \ |
629 | --section "Programming" --title "HTTP and IPP APIs" \ | |
630 | --css ../doc/cups-printable.css \ | |
631 | --header api-httpipp.header --intro api-httpipp.shtml \ | |
ae71f5de MS |
632 | http.h ipp.h auth.c getdevices.c getputfile.c encode.c \ |
633 | http.c http-addr.c http-support.c ipp.c ipp-support.c \ | |
634 | md5passwd.c request.c | |
5a738aea MS |
635 | mxmldoc --framed api-filter \ |
636 | --section "Programming" \ | |
637 | --title "Filter and Backend Programming" \ | |
638 | --css ../doc/cups-printable.css \ | |
639 | --header api-filter.header --intro api-filter.shtml \ | |
7a14d768 | 640 | backchannel.c backend.h backend.c sidechannel.c sidechannel.h |
ef416fc2 | 641 | |
642 | ||
643 | # | |
644 | # Dependencies... | |
645 | # | |
646 | ||
647 | include Dependencies | |
648 | ||
649 | ||
650 | # | |
b19ccc9e | 651 | # End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $". |
ef416fc2 | 652 | # |