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