]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/Makefile
Merge changes from CUPS 1.5svn-r9000.
[thirdparty/cups.git] / cups / Makefile
CommitLineData
ef416fc2 1#
b19ccc9e 2# "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $"
ef416fc2 3#
f8b3a85b 4# API library Makefile for CUPS.
ef416fc2 5#
f8b3a85b 6# Copyright 2007-2010 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
18include ../Makedefs
19
20#
21# Object files...
22#
23
24LIBOBJS = \
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 69LIB32OBJS = $(LIBOBJS:.o=.32.o)
70LIB64OBJS = $(LIBOBJS:.o=.64.o)
ef416fc2 71OBJS = \
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
94HEADERS = \
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 115LIBTARGETS = \
f8b3a85b 116 $(LIBCUPSSTATIC) \
ef416fc2 117 $(LIBCUPS) \
e1d6a774 118 $(LIB32CUPS) \
f8b3a85b 119 $(LIB64CUPS)
5f64df29
MS
120
121UNITTARGETS = \
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
135TARGETS = \
5f64df29 136 $(LIBTARGETS)
ef416fc2 137
138
139#
140# Make all targets...
141#
142
f8b3a85b 143all: $(TARGETS)
ef416fc2 144
145
c9fc04c6
MS
146#
147# Make library targets...
148#
149
150libs: $(LIBTARGETS)
151
152
5f64df29
MS
153#
154# Make unit tests...
155#
156
157unittests: $(UNITTARGETS)
158
159
ef416fc2 160#
161# Remove object and target files...
162#
163
164clean:
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
174depend:
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
188install: all install-data install-headers install-libs install-exec
189
190
191#
192# Install data files...
193#
194
195install-data:
196
197
198#
199# Install programs...
200#
201
202install-exec:
203
204
205#
206# Install headers...
207#
208
209install-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
221install-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
238installstatic:
239 $(INSTALL_DIR) -m 755 $(LIBDIR)
f8b3a85b
MS
240 $(INSTALL_LIB) -m 755 $(LIBCUPSSTATIC) $(LIBDIR)
241 $(RANLIB) $(LIBDIR)/$(LIBCUPSSTATIC)
242 $(CHMOD) 555 $(LIBDIR)/$(LIBCUPSSTATIC)
ef416fc2 243
e1d6a774 244install32bit:
50fe7201 245 echo Installing libraries in $(LIB32DIR)...
e1d6a774 246 $(INSTALL_DIR) -m 755 $(LIB32DIR)
f301802f 247 $(INSTALL_LIB) 32bit/libcups.so.2 $(LIB32DIR)/libcups.so.2
ed486911 248 $(LN) libcups.so.2 $(LIB32DIR)/libcups.so
e1d6a774 249
250install64bit:
50fe7201 251 echo Installing libraries in $(LIB64DIR)...
e1d6a774 252 $(INSTALL_DIR) -m 755 $(LIB64DIR)
f301802f 253 $(INSTALL_LIB) 64bit/libcups.so.2 $(LIB64DIR)/libcups.so.2
ed486911 254 $(LN) libcups.so.2 $(LIB64DIR)/libcups.so
e1d6a774 255
ef416fc2 256
757d2cad 257#
258# Uninstall object and target files...
259#
260
e1d6a774 261uninstall: $(UNINSTALL32) $(UNINSTALL64)
757d2cad 262 $(RM) $(LIBDIR)/libcups.2.dylib
263 $(RM) $(LIBDIR)/libcups.a
264 $(RM) $(LIBDIR)/libcups.dylib
265 $(RM) $(LIBDIR)/libcups_s.a
266 $(RM) $(LIBDIR)/libcups.sl
267 $(RM) $(LIBDIR)/libcups.sl.2
268 $(RM) $(LIBDIR)/libcups.so
269 $(RM) $(LIBDIR)/libcups.so.2
270 -$(RMDIR) $(LIBDIR)
271 for file in $(HEADERS); do \
272 $(RM) $(INCLUDEDIR)/cups/$$file; \
273 done
274 -$(RMDIR) $(INCLUDEDIR)/cups
275
e1d6a774 276uninstall32bit:
277 $(RM) $(LIB32DIR)/libcups.so
278 $(RM) $(LIB32DIR)/libcups.so.2
279 -$(RMDIR) $(LIB32DIR)
280
281uninstall64bit:
282 $(RM) $(LIB64DIR)/libcups.so
283 $(RM) $(LIB64DIR)/libcups.so.2
284 -$(RMDIR) $(LIB64DIR)
285
757d2cad 286
ef416fc2 287#
288# libcups.so.2, libcups.sl.2
289#
290
291libcups.so.2 libcups.sl.2: $(LIBOBJS)
292 echo Linking $@...
c168a833
MS
293 $(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(LIBOBJS) $(LIBGSSAPI) \
294 $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
ef416fc2 295 $(RM) `basename $@ .2`
296 $(LN) $@ `basename $@ .2`
297
298
e1d6a774 299#
f301802f 300# 32bit/libcups.so.2
e1d6a774 301#
302
f301802f 30332bit/libcups.so.2: $(LIB32OBJS)
e1d6a774 304 echo Linking 32-bit $@...
f301802f 305 -mkdir 32bit
c168a833
MS
306 $(DSO) $(ARCH32FLAGS) $(DSO32FLAGS) -o $@ $(LIB32OBJS) $(LIBGSSAPI) \
307 $(DNSSDLIBS) $(SSLLIBS) $(COMMONLIBS) $(LIBZ)
f301802f 308 $(RM) 32bit/libcups.so
309 $(LN) libcups.so.2 32bit/libcups.so
e1d6a774 310
311
312#
f301802f 313# 64bit/libcups.so.2
e1d6a774 314#
315
f301802f 31664bit/libcups.so.2: $(LIB64OBJS)
e1d6a774 317 echo Linking 64-bit $@...
f301802f 318 -mkdir 64bit
c168a833
MS
319 $(DSO) $(ARCH64FLAGS) $(DSO64FLAGS) -o $@ $(LIB64OBJS) $(LIBGSSAPI) \
320 $(DNSSDLIBS) $(SSLLIBS) $(COMMONLIBS) $(LIBZ)
f301802f 321 $(RM) 64bit/libcups.so
322 $(LN) libcups.so.2 64bit/libcups.so
e1d6a774 323
324
ef416fc2 325#
326# libcups.2.dylib
327#
328
f8b3a85b
MS
329libcups.2.dylib: $(LIBOBJS) $(LIBCUPSORDER)
330 echo Creating export list for $@...
331 nm $(LIBOBJS) 2>/dev/null | grep "T _" | awk '{print $$3}' | \
332 grep -v -e '^(_cupsConnect|_cupsSetDefaults|_cupsSetHTTPError|_cupsUserDefault|_httpWait)$$' | \
333 sort >t.exp
ef416fc2 334 echo Linking $@...
e1d6a774 335 $(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ \
fa73b229 336 -install_name $(libdir)/$@ \
f7deaa1a 337 -current_version 2.8.0 \
ef416fc2 338 -compatibility_version 2.0.0 \
f8b3a85b 339 -exported_symbols_list t.exp \
09a101d6 340 -sectorder __TEXT __text $(LIBCUPSORDER) \
c168a833
MS
341 $(LIBOBJS) $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \
342 $(COMMONLIBS) $(LIBZ)
f8b3a85b 343 $(RM) libcups.dylib t.exp
ef416fc2 344 $(LN) $@ libcups.dylib
345
346
347#
348# libcups_s.a
349#
350
a74454a7 351libcups_s.a: $(LIBOBJS) libcups_s.exp
ef416fc2 352 echo Creating $@...
c168a833
MS
353 $(DSO) $(DSOFLAGS) -Wl,-bexport:libcups_s.exp -o libcups_s.o \
354 $(LIBOBJS) $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \
355 $(COMMONLIBS) $(LIBZ) -lm
ef416fc2 356 $(RM) $@
357 $(AR) $(ARFLAGS) $@ libcups_s.o
358
359
360#
361# libcups.la
362#
363
364libcups.la: $(LIBOBJS)
365 echo Linking $@...
c168a833
MS
366 $(CC) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(LIBOBJS:.o=.lo) \
367 -rpath $(LIBDIR) -version-info 2:8 $(LIBGSSAPI) $(SSLLIBS) \
368 $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
ef416fc2 369
370
371#
372# libcups.a
373#
374
375libcups.a: $(LIBOBJS)
376 echo Archiving $@...
377 $(RM) $@
378 $(AR) $(ARFLAGS) $@ $(LIBOBJS)
379 $(RANLIB) $@
380
381
757d2cad 382#
383# testadmin (dependency on static CUPS library is intentional)
384#
385
f8b3a85b 386testadmin: testadmin.o $(LIBCUPSSTATIC)
757d2cad 387 echo Linking $@...
f8b3a85b 388 $(CC) $(LDFLAGS) -o $@ testadmin.o $(LIBCUPSSTATIC) \
c168a833 389 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
757d2cad 390
391
ef416fc2 392#
393# testarray (dependency on static CUPS library is intentional)
394#
395
f8b3a85b 396testarray: testarray.o $(LIBCUPSSTATIC)
ef416fc2 397 echo Linking $@...
f8b3a85b 398 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testarray.o $(LIBCUPSSTATIC) \
c168a833 399 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
c9fc04c6
MS
400 echo Running array API tests...
401 ./testarray
ef416fc2 402
403
06d4e77b
MS
404#
405# testconflicts (dependency on static CUPS library is intentional)
406#
407
f8b3a85b 408testconflicts: testconflicts.o $(LIBCUPSSTATIC)
06d4e77b 409 echo Linking $@...
f8b3a85b 410 $(CC) $(LDFLAGS) -o $@ testconflicts.o $(LIBCUPSSTATIC) \
c168a833 411 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
06d4e77b
MS
412
413
09a101d6 414#
415# testcups (dependency on static CUPS library is intentional)
416#
417
f8b3a85b 418testcups: testcups.o $(LIBCUPSSTATIC)
09a101d6 419 echo Linking $@...
f8b3a85b 420 $(CC) $(LDFLAGS) -o $@ testcups.o $(LIBCUPSSTATIC) \
c168a833 421 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
09a101d6 422
423
ef416fc2 424#
425# testfile (dependency on static CUPS library is intentional)
426#
427
f8b3a85b 428testfile: testfile.o $(LIBCUPSSTATIC)
ef416fc2 429 echo Linking $@...
f8b3a85b 430 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testfile.o $(LIBCUPSSTATIC) \
c168a833 431 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
c9fc04c6
MS
432 echo Running file API tests...
433 ./testfile
ef416fc2 434
435
436#
437# testhttp (dependency on static CUPS library is intentional)
438#
439
f8b3a85b 440testhttp: testhttp.o $(LIBCUPSSTATIC)
ef416fc2 441 echo Linking $@...
f8b3a85b 442 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testhttp.o $(LIBCUPSSTATIC) \
c168a833 443 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
c9fc04c6
MS
444 echo Running HTTP API tests...
445 ./testhttp
ef416fc2 446
447
448#
449# testipp (dependency on static CUPS library is intentional)
450#
451
f8b3a85b 452testipp: testipp.o $(LIBCUPSSTATIC)
ef416fc2 453 echo Linking $@...
f8b3a85b 454 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testipp.o $(LIBCUPSSTATIC) \
c168a833 455 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
c9fc04c6
MS
456 echo Running IPP API tests...
457 ./testipp
ef416fc2 458
459
460#
461# testi18n (dependency on static CUPS library is intentional)
462#
463
f8b3a85b 464testi18n: testi18n.o $(LIBCUPSSTATIC)
ef416fc2 465 echo Linking $@...
f8b3a85b 466 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testi18n.o $(LIBCUPSSTATIC) \
c168a833 467 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
c9fc04c6
MS
468 echo Running internationalization API tests...
469 ./testi18n
ef416fc2 470
471
472#
473# testlang (dependency on static CUPS library is intentional)
474#
475
f8b3a85b 476testlang: testlang.o $(LIBCUPSSTATIC)
ef416fc2 477 echo Linking $@...
f8b3a85b 478 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testlang.o $(LIBCUPSSTATIC) \
c168a833 479 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
c9fc04c6
MS
480 echo Running language API tests...
481 ./testlang
ef416fc2 482
483
20fbc903
MS
484#
485# testoptions (dependency on static CUPS library is intentional)
486#
487
f8b3a85b 488testoptions: testoptions.o $(LIBCUPSSTATIC)
20fbc903 489 echo Linking $@...
f8b3a85b 490 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testoptions.o $(LIBCUPSSTATIC) \
c168a833 491 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
20fbc903
MS
492 echo Running option API tests...
493 ./testoptions
494
495
fa73b229 496#
497# testppd (dependency on static CUPS library is intentional)
498#
499
f8b3a85b 500testppd: testppd.o $(LIBCUPSSTATIC) test.ppd test2.ppd
fa73b229 501 echo Linking $@...
f8b3a85b 502 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testppd.o $(LIBCUPSSTATIC) \
c168a833 503 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
c9fc04c6
MS
504 echo Running PPD API tests...
505 ./testppd
fa73b229 506
507
91c84a35
MS
508#
509# testsnmp (dependency on static CUPS library is intentional)
510#
511
f8b3a85b 512testsnmp: testsnmp.o $(LIBCUPSSTATIC)
91c84a35 513 echo Linking $@...
f8b3a85b 514 $(CC) $(LDFLAGS) -o $@ testsnmp.o $(LIBCUPSSTATIC) \
c168a833 515 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
91c84a35
MS
516
517
ef416fc2 518#
519# Automatic API help files...
520#
521
522apihelp:
523 echo Generating CUPS API help files...
5a738aea
MS
524 mxmldoc --section "Programming" \
525 --title "Introduction to CUPS Programming" \
526 --css ../doc/cups-printable.css \
527 --header api-overview.header --intro api-overview.shtml \
528 >../doc/help/api-overview.html
ef416fc2 529 mxmldoc --section "Programming" --title "Array API" \
5a738aea
MS
530 --css ../doc/cups-printable.css \
531 --header api-array.header --intro api-array.shtml \
f11a948a 532 api-array.xml \
ef416fc2 533 array.h array.c >../doc/help/api-array.html
f11a948a
MS
534 mxmldoc --tokens help/api-array.html api-array.xml >../doc/help/api-array.tokens
535 $(RM) api-array.xml
ef416fc2 536 mxmldoc --section "Programming" --title "CUPS API" \
5a738aea
MS
537 --css ../doc/cups-printable.css \
538 --header api-cups.header --intro api-cups.shtml \
f11a948a 539 api-cups.xml \
426c6a59 540 cups.h adminutil.c dest.c language.c notify.c \
ef416fc2 541 options.c tempfile.c usersys.c \
542 util.c >../doc/help/api-cups.html
f11a948a
MS
543 mxmldoc --tokens help/api-cups.html api-cups.xml >../doc/help/api-cups.tokens
544 $(RM) api-cups.xml
ef416fc2 545 mxmldoc --section "Programming" --title "File and Directory APIs" \
5a738aea
MS
546 --css ../doc/cups-printable.css \
547 --header api-filedir.header --intro api-filedir.shtml \
f11a948a 548 api-filedir.xml \
ef416fc2 549 file.h file.c dir.h dir.c >../doc/help/api-filedir.html
f11a948a
MS
550 mxmldoc --tokens api-filedir.xml >../doc/help/api-filedir.tokens
551 $(RM) api-filedir.xml
ef416fc2 552 mxmldoc --section "Programming" --title "PPD API" \
5a738aea
MS
553 --css ../doc/cups-printable.css \
554 --header api-ppd.header --intro api-ppd.shtml \
f11a948a 555 api-ppd.xml \
66ab9486 556 ppd.h attr.c conflicts.c custom.c emit.c localize.c mark.c page.c \
ef416fc2 557 ppd.c >../doc/help/api-ppd.html
f11a948a
MS
558 mxmldoc --tokens help/api-ppd.html api-ppd.xml >../doc/help/api-ppd.tokens
559 $(RM) api-ppd.xml
ef416fc2 560 mxmldoc --section "Programming" --title "HTTP and IPP APIs" \
5a738aea
MS
561 --css ../doc/cups-printable.css \
562 --header api-httpipp.header --intro api-httpipp.shtml \
f11a948a 563 api-httpipp.xml \
ae71f5de
MS
564 http.h ipp.h auth.c getdevices.c getputfile.c encode.c \
565 http.c http-addr.c http-support.c ipp.c ipp-support.c \
566 md5passwd.c request.c >../doc/help/api-httpipp.html
f11a948a
MS
567 mxmldoc --tokens help/api-httpipp.html api-httpipp.xml >../doc/help/api-httpipp.tokens
568 $(RM) api-httpipp.xml
5a738aea
MS
569 mxmldoc --section "Programming" \
570 --title "Filter and Backend Programming" \
571 --css ../doc/cups-printable.css \
572 --header api-filter.header --intro api-filter.shtml \
f11a948a 573 api-filter.xml \
ac884b6a 574 backchannel.c backend.h backend.c sidechannel.c sidechannel.h \
7a14d768 575 >../doc/help/api-filter.html
f11a948a
MS
576 mxmldoc --tokens help/api-filter.html api-filter.xml >../doc/help/api-filter.tokens
577 $(RM) api-filter.xml
5a738aea
MS
578
579framedhelp:
580 echo Generating CUPS API help files...
581 mxmldoc --framed api-overview \
582 --section "Programming" \
583 --title "Introduction to CUPS Programming" \
584 --css ../doc/cups-printable.css \
585 --header api-overview.header --intro api-overview.shtml
586 mxmldoc --framed api-array \
587 --section "Programming" --title "Array API" \
588 --css ../doc/cups-printable.css \
589 --header api-array.header --intro api-array.shtml \
590 array.h array.c
591 mxmldoc --framed api-cups \
592 --section "Programming" --title "CUPS API" \
593 --css ../doc/cups-printable.css \
594 --header api-cups.header --intro api-cups.shtml \
426c6a59 595 cups.h adminutil.c dest.c language.c notify.c \
5a738aea 596 options.c tempfile.c usersys.c \
ac884b6a 597 util.c
5a738aea
MS
598 mxmldoc --framed api-filedir \
599 --section "Programming" --title "File and Directory APIs" \
600 --css ../doc/cups-printable.css \
601 --header api-filedir.header --intro api-filedir.shtml \
ac884b6a 602 file.h file.c dir.h dir.c
5a738aea
MS
603 mxmldoc --framed api-ppd \
604 --section "Programming" --title "PPD API" \
605 --css ../doc/cups-printable.css \
606 --header api-ppd.header --intro api-ppd.shtml \
66ab9486
MS
607 ppd.h attr.c conflicts.c custom.c emit.c localize.c mark.c \
608 page.c ppd.c
5a738aea
MS
609 mxmldoc --framed api-httpipp \
610 --section "Programming" --title "HTTP and IPP APIs" \
611 --css ../doc/cups-printable.css \
612 --header api-httpipp.header --intro api-httpipp.shtml \
ae71f5de
MS
613 http.h ipp.h auth.c getdevices.c getputfile.c encode.c \
614 http.c http-addr.c http-support.c ipp.c ipp-support.c \
615 md5passwd.c request.c
5a738aea
MS
616 mxmldoc --framed api-filter \
617 --section "Programming" \
618 --title "Filter and Backend Programming" \
619 --css ../doc/cups-printable.css \
620 --header api-filter.header --intro api-filter.shtml \
7a14d768 621 backchannel.c backend.h backend.c sidechannel.c sidechannel.h
ef416fc2 622
623
624#
625# Dependencies...
626#
627
628include Dependencies
629
630
631#
b19ccc9e 632# End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $".
ef416fc2 633#