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