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