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