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