]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/Makefile
Printing to a raw queue could result in corrupt output due to opportunistic
[thirdparty/cups.git] / cups / Makefile
CommitLineData
ef416fc2 1#
f2d18633 2# "$Id$"
ef416fc2 3#
5a1d7a17 4# API library Makefile for CUPS.
ef416fc2 5#
5a1d7a17
MS
6# Copyright 2007-2013 by Apple Inc.
7# Copyright 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 8#
5a1d7a17
MS
9# These coded instructions, statements, and computer programs are the
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#
5a1d7a17 15# This file is subject to the Apple OS-Developed Software exception.
ef416fc2 16#
17
18include ../Makedefs
19
cb7f98ee
MS
20
21#
22# Options to build libcups without the use of deprecated APIs...
23#
24
25OPTIONS = -D_CUPS_NO_DEPRECATED=1 -D_PPD_DEPRECATED=""
26
27
ef416fc2 28#
29# Object files...
30#
31
32LIBOBJS = \
757d2cad 33 adminutil.o \
ef416fc2 34 array.o \
35 attr.o \
36 auth.o \
37 backchannel.o \
a4d04587 38 backend.o \
66ab9486 39 conflicts.o \
fa73b229 40 custom.o \
ae71f5de 41 debug.o \
ef416fc2 42 dest.o \
dcb445bc
MS
43 dest-job.o \
44 dest-localization.o \
45 dest-options.o \
ef416fc2 46 dir.o \
47 emit.o \
48 encode.o \
49 file.o \
ae71f5de 50 getdevices.o \
89d46774 51 getifaddrs.o \
ef416fc2 52 getputfile.o \
53 globals.o \
54 http.o \
55 http-addr.o \
56 http-addrlist.o \
57 http-support.o \
58 ipp.o \
59 ipp-support.o \
60 langprintf.o \
61 language.o \
fa73b229 62 localize.o \
ef416fc2 63 mark.o \
64 md5.o \
65 md5passwd.o \
fa73b229 66 notify.o \
ef416fc2 67 options.o \
68 page.o \
69 ppd.o \
f14324a7 70 ppd-cache.o \
54afec33 71 pwg-media.o \
ecdc0628 72 request.o \
f7deaa1a 73 sidechannel.o \
91c84a35 74 snmp.o \
ef416fc2 75 snprintf.o \
76 string.o \
77 tempfile.o \
6d2f911b 78 thread.o \
ef416fc2 79 transcode.o \
80 usersys.o \
81 util.o
dcb445bc 82TESTOBJS = \
757d2cad 83 testadmin.o \
ef416fc2 84 testarray.o \
06d4e77b 85 testconflicts.o \
09a101d6 86 testcups.o \
ef416fc2 87 testfile.o \
88 testhttp.o \
89 testi18n.o \
90 testipp.o \
20fbc903 91 testoptions.o \
ef416fc2 92 testlang.o \
fa73b229 93 testppd.o \
54afec33 94 testpwg.o \
cc754834 95 testsnmp.o
dcb445bc
MS
96OBJS = \
97 $(LIBOBJS) \
dcb445bc
MS
98 $(TESTOBJS)
99
ef416fc2 100
101#
102# Header files to install...
103#
104
105HEADERS = \
757d2cad 106 adminutil.h \
ef416fc2 107 array.h \
d09495fa 108 backend.h \
ef416fc2 109 cups.h \
110 dir.h \
111 file.h \
112 http.h \
ef416fc2 113 ipp.h \
114 language.h \
ef416fc2 115 ppd.h \
6961465f 116 pwg.h \
ac884b6a 117 raster.h \
f7deaa1a 118 sidechannel.h \
a41f09e2
MS
119 transcode.h \
120 versioning.h
ef416fc2 121
71e16022 122HEADERSPRIV = \
eac3a0a0 123 array-private.h \
71e16022
MS
124 cups-private.h \
125 debug-private.h \
126 file-private.h \
127 http-private.h \
128 ipp-private.h \
129 language-private.h \
130 md5-private.h \
131 ppd-private.h \
132 pwg-private.h \
a4845881 133 raster-private.h \
71e16022 134 snmp-private.h \
6d2f911b
MS
135 string-private.h \
136 thread-private.h
137
ef416fc2 138
139#
140# Targets in this directory...
141#
142
c9fc04c6 143LIBTARGETS = \
f8b3a85b 144 $(LIBCUPSSTATIC) \
12f89d24 145 $(LIBCUPS)
5f64df29
MS
146
147UNITTARGETS = \
148 testadmin \
ef416fc2 149 testarray \
5f64df29
MS
150 testconflicts \
151 testcups \
ef416fc2 152 testfile \
153 testhttp \
154 testi18n \
155 testipp \
fa73b229 156 testlang \
20fbc903 157 testoptions \
5f64df29 158 testppd \
54afec33 159 testpwg \
5f64df29 160 testsnmp
c9fc04c6
MS
161
162TARGETS = \
5f64df29 163 $(LIBTARGETS)
ef416fc2 164
165
166#
167# Make all targets...
168#
169
f8b3a85b 170all: $(TARGETS)
ef416fc2 171
172
c9fc04c6
MS
173#
174# Make library targets...
175#
176
177libs: $(LIBTARGETS)
178
179
5f64df29
MS
180#
181# Make unit tests...
182#
183
184unittests: $(UNITTARGETS)
185
186
ef416fc2 187#
188# Remove object and target files...
189#
190
191clean:
5f64df29 192 $(RM) $(OBJS) $(TARGETS) $(UNITTARGETS)
5a1d7a17 193 $(RM) libcups.so libcups.dylib
ef416fc2 194
195
196#
197# Update dependencies (without system header dependencies...)
198#
199
200depend:
12f89d24 201 $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies
ef416fc2 202
203
6961465f
MS
204#
205# Run oclint to check code coverage...
206#
207
208oclint:
209 oclint -o=oclint.html -html $(LIBOBJS:.o=.c) -- $(ALL_CFLAGS)
210
211
ef416fc2 212#
50fe7201 213# Install all targets...
ef416fc2 214#
215
50fe7201
MS
216install: all install-data install-headers install-libs install-exec
217
218
219#
220# Install data files...
221#
222
223install-data:
224
225
226#
227# Install programs...
228#
229
230install-exec:
231
232
233#
234# Install headers...
235#
236
237install-headers:
238 echo Installing header files into $(INCLUDEDIR)/cups...
239 $(INSTALL_DIR) -m 755 $(INCLUDEDIR)/cups
240 for file in $(HEADERS); do \
241 $(INSTALL_DATA) $$file $(INCLUDEDIR)/cups; \
242 done
71e16022
MS
243 if test "x$(privateinclude)" != x; then \
244 echo Installing private header files into $(PRIVATEINCLUDE)...; \
5180a04c 245 $(INSTALL_DIR) -m 755 $(PRIVATEINCLUDE); \
71e16022 246 for file in $(HEADERSPRIV); do \
5180a04c 247 $(INSTALL_DATA) $$file $(PRIVATEINCLUDE)/$$file; \
71e16022
MS
248 done; \
249 fi
50fe7201
MS
250
251
252#
253# Install libraries...
254#
255
12f89d24 256install-libs: $(INSTALLSTATIC)
50fe7201 257 echo Installing libraries in $(LIBDIR)...
bd7854cb 258 $(INSTALL_DIR) -m 755 $(LIBDIR)
ef416fc2 259 $(INSTALL_LIB) $(LIBCUPS) $(LIBDIR)
5a1d7a17 260 if test $(LIBCUPS) = "libcups.so.2"; then \
ef416fc2 261 $(RM) $(LIBDIR)/`basename $(LIBCUPS) .2`; \
262 $(LN) $(LIBCUPS) $(LIBDIR)/`basename $(LIBCUPS) .2`; \
263 fi
264 if test $(LIBCUPS) = "libcups.2.dylib"; then \
ef416fc2 265 $(RM) $(LIBDIR)/libcups.dylib; \
266 $(LN) $(LIBCUPS) $(LIBDIR)/libcups.dylib; \
267 fi
09a101d6 268 if test "x$(SYMROOT)" != "x"; then \
269 $(INSTALL_DIR) $(SYMROOT); \
50fe7201 270 cp $(LIBCUPS) $(SYMROOT); \
c1420c87 271 dsymutil $(SYMROOT)/$(LIBCUPS); \
09a101d6 272 fi
923edb68 273
274installstatic:
275 $(INSTALL_DIR) -m 755 $(LIBDIR)
f8b3a85b
MS
276 $(INSTALL_LIB) -m 755 $(LIBCUPSSTATIC) $(LIBDIR)
277 $(RANLIB) $(LIBDIR)/$(LIBCUPSSTATIC)
278 $(CHMOD) 555 $(LIBDIR)/$(LIBCUPSSTATIC)
ef416fc2 279
ef416fc2 280
757d2cad 281#
282# Uninstall object and target files...
283#
284
12f89d24 285uninstall:
757d2cad 286 $(RM) $(LIBDIR)/libcups.2.dylib
6d2f911b 287 $(RM) $(LIBDIR)/$(LIBCUPSSTATIC)
757d2cad 288 $(RM) $(LIBDIR)/libcups.dylib
757d2cad 289 $(RM) $(LIBDIR)/libcups.so
290 $(RM) $(LIBDIR)/libcups.so.2
291 -$(RMDIR) $(LIBDIR)
292 for file in $(HEADERS); do \
293 $(RM) $(INCLUDEDIR)/cups/$$file; \
294 done
295 -$(RMDIR) $(INCLUDEDIR)/cups
296
297
ef416fc2 298#
5a1d7a17 299# libcups.so.2
ef416fc2 300#
301
5a1d7a17 302libcups.so.2: $(LIBOBJS)
ef416fc2 303 echo Linking $@...
c168a833
MS
304 $(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(LIBOBJS) $(LIBGSSAPI) \
305 $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
ef416fc2 306 $(RM) `basename $@ .2`
307 $(LN) $@ `basename $@ .2`
308
309
310#
311# libcups.2.dylib
312#
313
f8b3a85b
MS
314libcups.2.dylib: $(LIBOBJS) $(LIBCUPSORDER)
315 echo Creating export list for $@...
316 nm $(LIBOBJS) 2>/dev/null | grep "T _" | awk '{print $$3}' | \
cc754834 317 grep -v -e '^(_cupsConnect|_cupsCharset|_cupsEncodingName|_cupsSetDefaults|_cupsSetHTTPError|_cupsUserDefault|_httpWait)$$' | \
f8b3a85b 318 sort >t.exp
ef416fc2 319 echo Linking $@...
e1d6a774 320 $(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ \
fa73b229 321 -install_name $(libdir)/$@ \
37e7e6e0 322 -current_version 2.10.0 \
ef416fc2 323 -compatibility_version 2.0.0 \
f8b3a85b 324 -exported_symbols_list t.exp \
c168a833
MS
325 $(LIBOBJS) $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \
326 $(COMMONLIBS) $(LIBZ)
f8b3a85b 327 $(RM) libcups.dylib t.exp
ef416fc2 328 $(LN) $@ libcups.dylib
329
330
ef416fc2 331#
332# libcups.la
333#
334
335libcups.la: $(LIBOBJS)
336 echo Linking $@...
c168a833 337 $(CC) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(LIBOBJS:.o=.lo) \
37e7e6e0 338 -rpath $(LIBDIR) -version-info 2:10 $(LIBGSSAPI) $(SSLLIBS) \
c168a833 339 $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
ef416fc2 340
341
342#
343# libcups.a
344#
345
346libcups.a: $(LIBOBJS)
347 echo Archiving $@...
348 $(RM) $@
349 $(AR) $(ARFLAGS) $@ $(LIBOBJS)
350 $(RANLIB) $@
351
352
757d2cad 353#
354# testadmin (dependency on static CUPS library is intentional)
355#
356
f8b3a85b 357testadmin: testadmin.o $(LIBCUPSSTATIC)
757d2cad 358 echo Linking $@...
f8b3a85b 359 $(CC) $(LDFLAGS) -o $@ testadmin.o $(LIBCUPSSTATIC) \
c168a833 360 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
757d2cad 361
362
ef416fc2 363#
364# testarray (dependency on static CUPS library is intentional)
365#
366
f8b3a85b 367testarray: testarray.o $(LIBCUPSSTATIC)
ef416fc2 368 echo Linking $@...
f8b3a85b 369 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testarray.o $(LIBCUPSSTATIC) \
c168a833 370 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
c9fc04c6
MS
371 echo Running array API tests...
372 ./testarray
ef416fc2 373
374
06d4e77b
MS
375#
376# testconflicts (dependency on static CUPS library is intentional)
377#
378
f8b3a85b 379testconflicts: testconflicts.o $(LIBCUPSSTATIC)
06d4e77b 380 echo Linking $@...
f8b3a85b 381 $(CC) $(LDFLAGS) -o $@ testconflicts.o $(LIBCUPSSTATIC) \
c168a833 382 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
06d4e77b
MS
383
384
09a101d6 385#
386# testcups (dependency on static CUPS library is intentional)
387#
388
f8b3a85b 389testcups: testcups.o $(LIBCUPSSTATIC)
09a101d6 390 echo Linking $@...
f8b3a85b 391 $(CC) $(LDFLAGS) -o $@ testcups.o $(LIBCUPSSTATIC) \
c168a833 392 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
09a101d6 393
394
ef416fc2 395#
396# testfile (dependency on static CUPS library is intentional)
397#
398
f8b3a85b 399testfile: testfile.o $(LIBCUPSSTATIC)
ef416fc2 400 echo Linking $@...
f8b3a85b 401 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testfile.o $(LIBCUPSSTATIC) \
c168a833 402 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
c9fc04c6
MS
403 echo Running file API tests...
404 ./testfile
ef416fc2 405
406
407#
408# testhttp (dependency on static CUPS library is intentional)
409#
410
f8b3a85b 411testhttp: testhttp.o $(LIBCUPSSTATIC)
ef416fc2 412 echo Linking $@...
f8b3a85b 413 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testhttp.o $(LIBCUPSSTATIC) \
c168a833 414 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
c9fc04c6
MS
415 echo Running HTTP API tests...
416 ./testhttp
ef416fc2 417
418
419#
420# testipp (dependency on static CUPS library is intentional)
421#
422
f8b3a85b 423testipp: testipp.o $(LIBCUPSSTATIC)
ef416fc2 424 echo Linking $@...
f8b3a85b 425 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testipp.o $(LIBCUPSSTATIC) \
c168a833 426 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
c9fc04c6
MS
427 echo Running IPP API tests...
428 ./testipp
ef416fc2 429
430
431#
432# testi18n (dependency on static CUPS library is intentional)
433#
434
f8b3a85b 435testi18n: testi18n.o $(LIBCUPSSTATIC)
ef416fc2 436 echo Linking $@...
f8b3a85b 437 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testi18n.o $(LIBCUPSSTATIC) \
c168a833 438 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
c9fc04c6
MS
439 echo Running internationalization API tests...
440 ./testi18n
ef416fc2 441
442
443#
444# testlang (dependency on static CUPS library is intentional)
445#
446
f8b3a85b 447testlang: testlang.o $(LIBCUPSSTATIC)
ef416fc2 448 echo Linking $@...
f8b3a85b 449 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testlang.o $(LIBCUPSSTATIC) \
c168a833 450 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
c9fc04c6
MS
451 echo Running language API tests...
452 ./testlang
ef416fc2 453
454
20fbc903
MS
455#
456# testoptions (dependency on static CUPS library is intentional)
457#
458
f8b3a85b 459testoptions: testoptions.o $(LIBCUPSSTATIC)
20fbc903 460 echo Linking $@...
f8b3a85b 461 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testoptions.o $(LIBCUPSSTATIC) \
c168a833 462 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
20fbc903
MS
463 echo Running option API tests...
464 ./testoptions
465
466
fa73b229 467#
468# testppd (dependency on static CUPS library is intentional)
469#
470
f8b3a85b 471testppd: testppd.o $(LIBCUPSSTATIC) test.ppd test2.ppd
fa73b229 472 echo Linking $@...
f8b3a85b 473 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testppd.o $(LIBCUPSSTATIC) \
c168a833 474 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
c9fc04c6
MS
475 echo Running PPD API tests...
476 ./testppd
fa73b229 477
478
54afec33
MS
479#
480# testpwg (dependency on static CUPS library is intentional)
481#
482
483testpwg: testpwg.o $(LIBCUPSSTATIC) test.ppd
484 echo Linking $@...
485 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testpwg.o $(LIBCUPSSTATIC) \
486 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
487 echo Running PWG API tests...
488 ./testpwg test.ppd
489
490
91c84a35
MS
491#
492# testsnmp (dependency on static CUPS library is intentional)
493#
494
f8b3a85b 495testsnmp: testsnmp.o $(LIBCUPSSTATIC)
91c84a35 496 echo Linking $@...
f8b3a85b 497 $(CC) $(LDFLAGS) -o $@ testsnmp.o $(LIBCUPSSTATIC) \
c168a833 498 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
91c84a35
MS
499
500
ef416fc2 501#
502# Automatic API help files...
503#
504
505apihelp:
506 echo Generating CUPS API help files...
5a738aea
MS
507 mxmldoc --section "Programming" \
508 --title "Introduction to CUPS Programming" \
509 --css ../doc/cups-printable.css \
510 --header api-overview.header --intro api-overview.shtml \
511 >../doc/help/api-overview.html
ef416fc2 512 mxmldoc --section "Programming" --title "Array API" \
5a738aea
MS
513 --css ../doc/cups-printable.css \
514 --header api-array.header --intro api-array.shtml \
f11a948a 515 api-array.xml \
ef416fc2 516 array.h array.c >../doc/help/api-array.html
f11a948a
MS
517 mxmldoc --tokens help/api-array.html api-array.xml >../doc/help/api-array.tokens
518 $(RM) api-array.xml
ef416fc2 519 mxmldoc --section "Programming" --title "CUPS API" \
5a738aea
MS
520 --css ../doc/cups-printable.css \
521 --header api-cups.header --intro api-cups.shtml \
f11a948a 522 api-cups.xml \
6961465f
MS
523 cups.h pwg.h adminutil.c dest*.c language.c notify.c \
524 options.c pwg-media.c tempfile.c usersys.c \
ef416fc2 525 util.c >../doc/help/api-cups.html
f11a948a
MS
526 mxmldoc --tokens help/api-cups.html api-cups.xml >../doc/help/api-cups.tokens
527 $(RM) api-cups.xml
ef416fc2 528 mxmldoc --section "Programming" --title "File and Directory APIs" \
5a738aea
MS
529 --css ../doc/cups-printable.css \
530 --header api-filedir.header --intro api-filedir.shtml \
f11a948a 531 api-filedir.xml \
ef416fc2 532 file.h file.c dir.h dir.c >../doc/help/api-filedir.html
f11a948a
MS
533 mxmldoc --tokens api-filedir.xml >../doc/help/api-filedir.tokens
534 $(RM) api-filedir.xml
a2326b5b 535 mxmldoc --section "Programming" --title "PPD API (DEPRECATED)" \
5a738aea
MS
536 --css ../doc/cups-printable.css \
537 --header api-ppd.header --intro api-ppd.shtml \
f11a948a 538 api-ppd.xml \
66ab9486 539 ppd.h attr.c conflicts.c custom.c emit.c localize.c mark.c page.c \
ef416fc2 540 ppd.c >../doc/help/api-ppd.html
f11a948a
MS
541 mxmldoc --tokens help/api-ppd.html api-ppd.xml >../doc/help/api-ppd.tokens
542 $(RM) api-ppd.xml
ef416fc2 543 mxmldoc --section "Programming" --title "HTTP and IPP APIs" \
5a738aea
MS
544 --css ../doc/cups-printable.css \
545 --header api-httpipp.header --intro api-httpipp.shtml \
f11a948a 546 api-httpipp.xml \
ae71f5de
MS
547 http.h ipp.h auth.c getdevices.c getputfile.c encode.c \
548 http.c http-addr.c http-support.c ipp.c ipp-support.c \
549 md5passwd.c request.c >../doc/help/api-httpipp.html
f11a948a
MS
550 mxmldoc --tokens help/api-httpipp.html api-httpipp.xml >../doc/help/api-httpipp.tokens
551 $(RM) api-httpipp.xml
5a738aea
MS
552 mxmldoc --section "Programming" \
553 --title "Filter and Backend Programming" \
554 --css ../doc/cups-printable.css \
555 --header api-filter.header --intro api-filter.shtml \
f11a948a 556 api-filter.xml \
ac884b6a 557 backchannel.c backend.h backend.c sidechannel.c sidechannel.h \
7a14d768 558 >../doc/help/api-filter.html
f11a948a
MS
559 mxmldoc --tokens help/api-filter.html api-filter.xml >../doc/help/api-filter.tokens
560 $(RM) api-filter.xml
5a738aea
MS
561
562framedhelp:
563 echo Generating CUPS API help files...
564 mxmldoc --framed api-overview \
565 --section "Programming" \
566 --title "Introduction to CUPS Programming" \
567 --css ../doc/cups-printable.css \
568 --header api-overview.header --intro api-overview.shtml
569 mxmldoc --framed api-array \
570 --section "Programming" --title "Array API" \
571 --css ../doc/cups-printable.css \
572 --header api-array.header --intro api-array.shtml \
573 array.h array.c
574 mxmldoc --framed api-cups \
575 --section "Programming" --title "CUPS API" \
576 --css ../doc/cups-printable.css \
577 --header api-cups.header --intro api-cups.shtml \
5a9febac 578 cups.h adminutil.c dest*.c language.c notify.c \
5a738aea 579 options.c tempfile.c usersys.c \
ac884b6a 580 util.c
5a738aea
MS
581 mxmldoc --framed api-filedir \
582 --section "Programming" --title "File and Directory APIs" \
583 --css ../doc/cups-printable.css \
584 --header api-filedir.header --intro api-filedir.shtml \
ac884b6a 585 file.h file.c dir.h dir.c
5a738aea 586 mxmldoc --framed api-ppd \
a2326b5b 587 --section "Programming" --title "PPD API (DEPRECATED)" \
5a738aea
MS
588 --css ../doc/cups-printable.css \
589 --header api-ppd.header --intro api-ppd.shtml \
66ab9486
MS
590 ppd.h attr.c conflicts.c custom.c emit.c localize.c mark.c \
591 page.c ppd.c
5a738aea
MS
592 mxmldoc --framed api-httpipp \
593 --section "Programming" --title "HTTP and IPP APIs" \
594 --css ../doc/cups-printable.css \
595 --header api-httpipp.header --intro api-httpipp.shtml \
ae71f5de
MS
596 http.h ipp.h auth.c getdevices.c getputfile.c encode.c \
597 http.c http-addr.c http-support.c ipp.c ipp-support.c \
598 md5passwd.c request.c
5a738aea
MS
599 mxmldoc --framed api-filter \
600 --section "Programming" \
601 --title "Filter and Backend Programming" \
602 --css ../doc/cups-printable.css \
603 --header api-filter.header --intro api-filter.shtml \
7a14d768 604 backchannel.c backend.h backend.c sidechannel.c sidechannel.h
ef416fc2 605
606
84315f46
MS
607#
608# Lines of code computation...
609#
610
611sloc:
612 echo "libcupslite: \c"
613 sloccount $(LITEOBJS:.o=.c) 2>/dev/null | grep "Total Physical" | awk '{print $$9}'
614 echo "libcups: \c"
615 sloccount $(LIBOBJS:.o=.c) 2>/dev/null | grep "Total Physical" | awk '{print $$9}'
616
617
ef416fc2 618#
619# Dependencies...
620#
621
622include Dependencies
623
624
625#
f2d18633 626# End of "$Id$".
ef416fc2 627#