]> git.ipfire.org Git - thirdparty/cups.git/blob - cups/Makefile
SIGSEGV in CUPS web ui when adding a printer
[thirdparty/cups.git] / cups / Makefile
1 #
2 # Library Makefile for CUPS.
3 #
4 # Copyright © 2007-2019 by Apple Inc.
5 # Copyright © 1997-2006 by Easy Software Products, all rights reserved.
6 #
7 # Licensed under Apache License v2.0. See the file "LICENSE" for more
8 # information.
9 #
10
11 include ../Makedefs
12
13
14 #
15 # Object files...
16 #
17
18 COREOBJS = \
19 array.o \
20 auth.o \
21 debug.o \
22 dest.o \
23 dest-job.o \
24 dest-localization.o \
25 dest-options.o \
26 dir.o \
27 encode.o \
28 file.o \
29 getputfile.o \
30 globals.o \
31 hash.o \
32 http.o \
33 http-addr.o \
34 http-addrlist.o \
35 http-support.o \
36 ipp.o \
37 ipp-file.o \
38 ipp-vars.o \
39 ipp-support.o \
40 langprintf.o \
41 language.o \
42 md5.o \
43 md5passwd.o \
44 notify.o \
45 options.o \
46 pwg-media.o \
47 raster-error.o \
48 raster-stream.o \
49 raster-stubs.o \
50 request.o \
51 snprintf.o \
52 string.o \
53 tempfile.o \
54 thread.o \
55 tls.o \
56 transcode.o \
57 usersys.o \
58 util.o
59
60 DRIVEROBJS = \
61 adminutil.o \
62 backchannel.o \
63 backend.o \
64 getdevices.o \
65 getifaddrs.o \
66 ppd.o \
67 ppd-attr.o \
68 ppd-cache.o \
69 ppd-conflicts.o \
70 ppd-custom.o \
71 ppd-emit.o \
72 ppd-localize.o \
73 ppd-mark.o \
74 ppd-page.o \
75 ppd-util.o \
76 raster-interpret.o \
77 raster-interstub.o \
78 sidechannel.o \
79 snmp.o
80
81 LIBOBJS = \
82 $(LIBCUPSOBJS)
83
84 IMAGEOBJS = \
85 raster-interstub.o \
86 raster-stubs.o
87
88 TESTOBJS = \
89 rasterbench.o \
90 testadmin.o \
91 testarray.o \
92 testcache.o \
93 testclient.o \
94 testconflicts.o \
95 testcreds.o \
96 testcups.o \
97 testdest.o \
98 testfile.o \
99 testgetdests.o \
100 testhttp.o \
101 testi18n.o \
102 testipp.o \
103 testoptions.o \
104 testlang.o \
105 testppd.o \
106 testpwg.o \
107 testraster.o \
108 testsnmp.o \
109 tlscheck.o
110 OBJS = \
111 $(LIBOBJS) \
112 $(IMAGEOBJS) \
113 $(TESTOBJS)
114
115
116 #
117 # Header files to install...
118 #
119
120 COREHEADERS = \
121 array.h \
122 cups.h \
123 dir.h \
124 file.h \
125 http.h \
126 ipp.h \
127 language.h \
128 pwg.h \
129 raster.h \
130 transcode.h \
131 versioning.h
132
133 DRIVERHEADERS = \
134 adminutil.h \
135 backend.h \
136 ppd.h \
137 sidechannel.h
138
139 HEADERS = \
140 $(LIBHEADERS)
141
142 COREHEADERSPRIV = \
143 array-private.h \
144 cups-private.h \
145 debug-private.h \
146 file-private.h \
147 http-private.h \
148 ipp-private.h \
149 language-private.h \
150 pwg-private.h \
151 raster-private.h \
152 string-private.h \
153 thread-private.h
154
155 DRIVERHEADERSPRIV = \
156 ppd-private.h \
157 snmp-private.h
158
159 HEADERSPRIV = \
160 $(LIBHEADERSPRIV)
161
162
163 #
164 # Targets in this directory...
165 #
166
167 LIBTARGETS = \
168 $(LIBCUPSIMAGE) \
169 $(LIBCUPSSTATIC) \
170 $(LIBCUPS) \
171 libcupsimage.a
172
173 UNITTARGETS = \
174 rasterbench \
175 testadmin \
176 testarray \
177 testcache \
178 testclient \
179 testconflicts \
180 testcreds \
181 testcups \
182 testdest \
183 testfile \
184 testgetdests \
185 testhttp \
186 testi18n \
187 testipp \
188 testlang \
189 testoptions \
190 testppd \
191 testpwg \
192 testraster \
193 testsnmp \
194 tlscheck
195
196 TARGETS = \
197 $(LIBTARGETS)
198
199
200 #
201 # Make all targets...
202 #
203
204 all: $(TARGETS)
205
206
207 #
208 # Make library targets...
209 #
210
211 libs: $(LIBTARGETS)
212
213
214 #
215 # Make unit tests...
216 #
217
218 unittests: $(UNITTARGETS)
219
220
221 #
222 # Remove object and target files...
223 #
224
225 clean:
226 $(RM) $(OBJS) $(TARGETS) $(UNITTARGETS)
227 $(RM) libcups.so libcups.dylib
228 $(RM) libcupsimage.so libcupsimage.dylib
229
230
231 #
232 # Update dependencies (without system header dependencies...)
233 #
234
235 depend:
236 $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies
237
238
239 #
240 # Run oclint to check code coverage...
241 #
242
243 oclint:
244 oclint -o=oclint.html -html $(LIBOBJS:.o=.c) -- $(ALL_CFLAGS)
245
246
247 #
248 # Install all targets...
249 #
250
251 install: all install-data install-headers install-libs install-exec
252
253
254 #
255 # Install data files...
256 #
257
258 install-data:
259
260
261 #
262 # Install programs...
263 #
264
265 install-exec:
266
267
268 #
269 # Install headers...
270 #
271
272 install-headers:
273 echo Installing header files into $(INCLUDEDIR)/cups...
274 $(INSTALL_DIR) -m 755 $(INCLUDEDIR)/cups
275 for file in $(HEADERS); do \
276 $(INSTALL_DATA) $$file $(INCLUDEDIR)/cups; \
277 done
278 if test "x$(privateinclude)" != x; then \
279 echo Installing private header files into $(PRIVATEINCLUDE)...; \
280 $(INSTALL_DIR) -m 755 $(PRIVATEINCLUDE); \
281 for file in $(HEADERSPRIV); do \
282 $(INSTALL_DATA) $$file $(PRIVATEINCLUDE)/$$file; \
283 done; \
284 fi
285
286
287 #
288 # Install libraries...
289 #
290
291 install-libs: $(LIBTARGETS) $(INSTALLSTATIC)
292 echo Installing libraries in $(LIBDIR)...
293 $(INSTALL_DIR) -m 755 $(LIBDIR)
294 $(INSTALL_LIB) $(LIBCUPS) $(LIBDIR)
295 if test $(LIBCUPS) = "libcups.so.2"; then \
296 $(RM) $(LIBDIR)/`basename $(LIBCUPS) .2`; \
297 $(LN) $(LIBCUPS) $(LIBDIR)/`basename $(LIBCUPS) .2`; \
298 fi
299 if test $(LIBCUPS) = "libcups.2.dylib"; then \
300 $(RM) $(LIBDIR)/libcups.dylib; \
301 $(LN) $(LIBCUPS) $(LIBDIR)/libcups.dylib; \
302 fi
303 -if test "x$(LIBCUPSIMAGE)" != x; then \
304 $(INSTALL_LIB) $(LIBCUPSIMAGE) $(LIBDIR); \
305 fi
306 -if test "x$(LIBCUPSIMAGE)" = "xlibcupsimage.so.2"; then \
307 $(RM) $(LIBDIR)/`basename $(LIBCUPSIMAGE) .2`; \
308 $(LN) $(LIBCUPSIMAGE) $(LIBDIR)/`basename $(LIBCUPSIMAGE) .2`; \
309 fi
310 -if test "x$(LIBCUPSIMAGE)" = "xlibcupsimage.2.dylib"; then \
311 $(RM) $(LIBDIR)/libcupsimage.dylib; \
312 $(LN) $(LIBCUPSIMAGE) $(LIBDIR)/libcupsimage.dylib; \
313 fi
314 if test "x$(SYMROOT)" != "x"; then \
315 $(INSTALL_DIR) $(SYMROOT); \
316 cp $(LIBCUPS) $(SYMROOT); \
317 dsymutil $(SYMROOT)/$(LIBCUPS); \
318 if test "x$(LIBCUPSIMAGE)" != x; then \
319 cp $(LIBCUPSIMAGE) $(SYMROOT); \
320 dsymutil $(SYMROOT)/$(LIBCUPSIMAGE); \
321 fi; \
322 fi
323
324 installstatic:
325 $(INSTALL_DIR) -m 755 $(LIBDIR)
326 $(INSTALL_LIB) -m 755 $(LIBCUPSSTATIC) $(LIBDIR)
327 $(RANLIB) $(LIBDIR)/$(LIBCUPSSTATIC)
328 $(CHMOD) 555 $(LIBDIR)/$(LIBCUPSSTATIC)
329 $(INSTALL_LIB) -m 755 libcupsimage.a $(LIBDIR)
330 $(RANLIB) $(LIBDIR)/libcupsimage.a
331 $(CHMOD) 555 $(LIBDIR)/libcupsimage.a
332
333
334 #
335 # Uninstall object and target files...
336 #
337
338 uninstall:
339 $(RM) $(LIBDIR)/libcups.2.dylib
340 $(RM) $(LIBDIR)/libcups.a
341 $(RM) $(LIBDIR)/libcups.dylib
342 $(RM) $(LIBDIR)/libcups.so
343 $(RM) $(LIBDIR)/libcups.so.2
344 $(RM) $(LIBDIR)/libcupsimage.2.dylib
345 $(RM) $(LIBDIR)/libcupsimage.a
346 $(RM) $(LIBDIR)/libcupsimage.dylib
347 $(RM) $(LIBDIR)/libcupsimage.so
348 $(RM) $(LIBDIR)/libcupsimage.so.2
349 -$(RMDIR) $(LIBDIR)
350 for file in $(HEADERS); do \
351 $(RM) $(INCLUDEDIR)/cups/$$file; \
352 done
353 -$(RMDIR) $(INCLUDEDIR)/cups
354 if test "x$(privateinclude)" != x; then \
355 for file in $(HEADERSPRIV); do \
356 $(RM) $(PRIVATEINCLUDE)/cups/$$file; \
357 done
358 $(RMDIR) $(PRIVATEINCLUDE)/cups; \
359 fi
360
361
362 #
363 # libcups.so.2
364 #
365
366 libcups.so.2: $(LIBOBJS)
367 echo Linking $@...
368 $(DSO) $(ARCHFLAGS) $(ALL_DSOFLAGS) -o $@ $(LIBOBJS) $(LIBS)
369 $(RM) `basename $@ .2`
370 $(LN) $@ `basename $@ .2`
371
372
373 #
374 # libcups.2.dylib
375 #
376
377 libcups.2.dylib: $(LIBOBJS)
378 echo Linking $@...
379 $(DSO) $(ARCHFLAGS) $(ALL_DSOFLAGS) -o $@ \
380 -install_name $(libdir)/$@ \
381 -current_version 2.14.0 \
382 -compatibility_version 2.0.0 \
383 $(LIBOBJS) $(LIBS)
384 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
385 $(RM) libcups.dylib
386 $(LN) $@ libcups.dylib
387
388
389 #
390 # libcups.la
391 #
392
393 libcups.la: $(LIBOBJS)
394 echo Linking $@...
395 $(LD_CC) $(ARCHFLAGS) $(ALL_DSOFLAGS) -o $@ $(LIBOBJS:.o=.lo) \
396 -rpath $(LIBDIR) -version-info 2:14 $(LIBS)
397
398
399 #
400 # libcups.a
401 #
402
403 libcups.a: $(LIBOBJS)
404 echo Archiving $@...
405 $(RM) $@
406 $(AR) $(ARFLAGS) $@ $(LIBOBJS)
407 $(RANLIB) $@
408
409
410 #
411 # libcups2.def (Windows DLL exports file...)
412 #
413
414 libcups2.def: $(LIBOBJS) $(IMAGEOBJS) Makefile
415 echo Generating $@...
416 echo "LIBRARY libcups2" >libcups2.def
417 echo "VERSION 2.14" >>libcups2.def
418 echo "EXPORTS" >>libcups2.def
419 (nm $(LIBOBJS) $(IMAGEOBJS) 2>/dev/null | grep "T _" | awk '{print $$3}'; \
420 echo __cups_strcpy; echo __cups_strlcat; echo __cups_strlcpy; \
421 echo __cups_snprintf; echo __cups_vsnprintf; echo __cups_gettimeofday) | \
422 grep -v -E \
423 -e 'cups_debug|Apple|BackChannel|Backend|FileCheck|Filter|GSSService|SetNegotiate|SideChannel|SNMP' \
424 -e 'Block$$' | \
425 sed -e '1,$$s/^_//' | sort >>libcups2.def
426
427
428 #
429 # libcupsimage.so.2
430 #
431
432 libcupsimage.so.2: $(IMAGEOBJS) libcups.so.2
433 echo Linking $@...
434 $(DSO) $(ARCHFLAGS) $(ALL_DSOFLAGS) -o $@ $(IMAGEOBJS) $(LINKCUPS)
435 $(RM) `basename $@ .2`
436 $(LN) $@ `basename $@ .2`
437
438
439 #
440 # libcupsimage.2.dylib
441 #
442
443 libcupsimage.2.dylib: $(IMAGEOBJS) libcups.2.dylib
444 echo Linking $@...
445 $(DSO) $(ARCHFLAGS) $(ALL_DSOFLAGS) -o $@ \
446 -install_name $(libdir)/$@ \
447 -current_version 2.3.0 \
448 -compatibility_version 2.0.0 \
449 $(IMAGEOBJS) $(LINKCUPS)
450 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
451 $(RM) libcupsimage.dylib
452 $(LN) $@ libcupsimage.dylib
453
454
455 #
456 # libcupsimage.la
457 #
458
459 libcupsimage.la: $(IMAGEOBJS) libcups.la
460 echo Linking $@...
461 $(DSO) $(ARCHFLAGS) $(ALL_DSOFLAGS) -o $@ $(IMAGEOBJS:.o=.lo) \
462 $(LINKCUPS) -rpath $(LIBDIR) -version-info 2:3
463
464
465 #
466 # libcupsimage.a
467 #
468
469 libcupsimage.a: $(IMAGEOBJS)
470 echo Archiving $@...
471 $(RM) $@
472 $(AR) $(ARFLAGS) $@ $(IMAGEOBJS)
473 $(RANLIB) $@
474
475
476 #
477 # rasterbench (dependency on static CUPS library is intentional)
478 #
479
480 rasterbench: rasterbench.o $(LIBCUPSSTATIC)
481 echo Linking $@...
482 $(LD_CC) $(ALL_LDFLAGS) -o $@ rasterbench.o $(LINKCUPSSTATIC)
483 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
484
485
486 #
487 # testadmin (dependency on static CUPS library is intentional)
488 #
489
490 testadmin: testadmin.o $(LIBCUPSSTATIC)
491 echo Linking $@...
492 $(LD_CC) $(ALL_LDFLAGS) -o $@ testadmin.o $(LINKCUPSSTATIC)
493 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
494
495
496 #
497 # testarray (dependency on static CUPS library is intentional)
498 #
499
500 testarray: testarray.o $(LIBCUPSSTATIC)
501 echo Linking $@...
502 $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testarray.o $(LINKCUPSSTATIC)
503 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
504 echo Running array API tests...
505 ./testarray
506
507
508 #
509 # testcache (dependency on static CUPS library is intentional)
510 #
511
512 testcache: testcache.o $(LIBCUPSSTATIC)
513 echo Linking $@...
514 $(LD_CC) $(ALL_LDFLAGS) -o $@ testcache.o $(LINKCUPSSTATIC)
515 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
516
517
518 #
519 # testclient (dependency on static libraries is intentional)
520 #
521
522 testclient: testclient.o $(LIBCUPSSTATIC)
523 echo Linking $@...
524 $(LD_CC) $(ALL_LDFLAGS) -o $@ testclient.o $(LINKCUPSSTATIC)
525 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
526
527
528 #
529 # testconflicts (dependency on static CUPS library is intentional)
530 #
531
532 testconflicts: testconflicts.o $(LIBCUPSSTATIC)
533 echo Linking $@...
534 $(LD_CC) $(ALL_LDFLAGS) -o $@ testconflicts.o $(LINKCUPSSTATIC)
535 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
536
537
538 #
539 # testcreds (dependency on static CUPS library is intentional)
540 #
541
542 testcreds: testcreds.o $(LIBCUPSSTATIC)
543 echo Linking $@...
544 $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testcreds.o $(LINKCUPSSTATIC)
545 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
546
547
548 #
549 # testcups (dependency on static CUPS library is intentional)
550 #
551
552 testcups: testcups.o $(LIBCUPSSTATIC)
553 echo Linking $@...
554 $(LD_CC) $(ALL_LDFLAGS) -o $@ testcups.o $(LINKCUPSSTATIC)
555 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
556
557
558 #
559 # testdest (dependency on static CUPS library is intentional)
560 #
561
562 testdest: testdest.o $(LIBCUPSSTATIC)
563 echo Linking $@...
564 $(LD_CC) $(ALL_LDFLAGS) -o $@ testdest.o $(LINKCUPSSTATIC)
565 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
566
567
568 #
569 # testfile (dependency on static CUPS library is intentional)
570 #
571
572 testfile: testfile.o $(LIBCUPSSTATIC)
573 echo Linking $@...
574 $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testfile.o $(LINKCUPSSTATIC)
575 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
576 echo Running file API tests...
577 ./testfile
578
579
580 #
581 # testgetdests (dependency on static CUPS library is intentional)
582 #
583
584 testgetdests: testgetdests.o $(LIBCUPSSTATIC)
585 echo Linking $@...
586 $(LD_CC) $(ALL_LDFLAGS) -o $@ testgetdests.o $(LINKCUPSSTATIC)
587 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
588
589
590 #
591 # testhttp (dependency on static CUPS library is intentional)
592 #
593
594 testhttp: testhttp.o $(LIBCUPSSTATIC)
595 echo Linking $@...
596 $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testhttp.o $(LINKCUPSSTATIC)
597 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
598 echo Running HTTP API tests...
599 ./testhttp
600
601
602 #
603 # testipp (dependency on static CUPS library is intentional)
604 #
605
606 testipp: testipp.o $(LIBCUPSSTATIC)
607 echo Linking $@...
608 $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testipp.o $(LINKCUPSSTATIC)
609 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
610 echo Running IPP API tests...
611 ./testipp
612
613
614 #
615 # testi18n (dependency on static CUPS library is intentional)
616 #
617
618 testi18n: testi18n.o $(LIBCUPSSTATIC)
619 echo Linking $@...
620 $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testi18n.o $(LINKCUPSSTATIC)
621 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
622 echo Running internationalization API tests...
623 ./testi18n
624
625
626 #
627 # testlang (dependency on static CUPS library is intentional)
628 #
629
630 testlang: testlang.o $(LIBCUPSSTATIC)
631 echo Linking $@...
632 $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testlang.o $(LINKCUPSSTATIC)
633 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
634 echo Creating locale directory structure...
635 $(RM) -r locale
636 for po in ../locale/cups_*.po; do \
637 lang=`basename $$po .po | sed -e '1,$$s/^cups_//'`; \
638 $(MKDIR) locale/$$lang; \
639 $(LN) ../../$$po locale/$$lang; \
640 done
641 echo Running language API tests...
642 LOCALEDIR=locale ./testlang
643
644
645 #
646 # testoptions (dependency on static CUPS library is intentional)
647 #
648
649 testoptions: testoptions.o $(LIBCUPSSTATIC)
650 echo Linking $@...
651 $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testoptions.o $(LINKCUPSSTATIC)
652 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
653 echo Running option API tests...
654 ./testoptions
655
656
657 #
658 # testppd (dependency on static CUPS library is intentional)
659 #
660
661 testppd: testppd.o $(LIBCUPSSTATIC) test.ppd test2.ppd
662 echo Linking $@...
663 $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testppd.o $(LINKCUPSSTATIC)
664 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
665 echo Running PPD API tests...
666 ./testppd
667
668
669 #
670 # testpwg (dependency on static CUPS library is intentional)
671 #
672
673 testpwg: testpwg.o $(LIBCUPSSTATIC) test.ppd
674 echo Linking $@...
675 $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testpwg.o $(LINKCUPSSTATIC)
676 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
677 echo Running PWG API tests...
678 ./testpwg test.ppd
679
680
681 #
682 # testraster (dependency on static CUPS library is intentional)
683 #
684
685 testraster: testraster.o $(LIBCUPSSTATIC)
686 echo Linking $@...
687 $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testraster.o $(LINKCUPSSTATIC)
688 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
689 echo Running raster API tests...
690 ./testraster
691
692
693 #
694 # testsnmp (dependency on static CUPS library is intentional)
695 #
696
697 testsnmp: testsnmp.o $(LIBCUPSSTATIC)
698 echo Linking $@...
699 $(LD_CC) $(ALL_LDFLAGS) -o $@ testsnmp.o $(LINKCUPSSTATIC)
700 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
701
702
703 #
704 # tlscheck (dependency on static CUPS library is intentional)
705 #
706
707 tlscheck: tlscheck.o $(LIBCUPSSTATIC)
708 echo Linking $@...
709 $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ tlscheck.o $(LINKCUPSSTATIC)
710 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
711
712
713 #
714 # Automatic API help files...
715 #
716
717 apihelp:
718 echo Generating CUPS API help files...
719 $(RM) cupspm.xml
720 codedoc --section "Programming" --body cupspm.md \
721 cupspm.xml \
722 auth.c cups.h dest*.c encode.c http.h http*.c ipp.h ipp*.c \
723 options.c tls-darwin.c usersys.c util.c \
724 --coverimage cupspm.png \
725 --epub ../doc/help/cupspm.epub
726 codedoc --section "Programming" --body cupspm.md \
727 cupspm.xml > ../doc/help/cupspm.html
728 $(RM) cupspm.xml
729 codedoc --section "Programming" --title "Administration APIs" \
730 --css ../doc/cups-printable.css \
731 --header api-admin.header --body api-admin.shtml \
732 adminutil.c adminutil.h getdevices.c >../doc/help/api-admin.html
733 codedoc --section "Programming" --title "PPD API (DEPRECATED)" \
734 --css ../doc/cups-printable.css \
735 --header api-ppd.header --body api-ppd.shtml \
736 ppd.h ppd-*.c raster-interstub.c >../doc/help/api-ppd.html
737 codedoc --section "Programming" --title "Raster API" \
738 --css ../doc/cups-printable.css \
739 --header api-raster.header --body api-raster.shtml \
740 ../cups/raster.h raster-stubs.c \
741 >../doc/help/api-raster.html
742 codedoc --section "Programming" \
743 --title "Filter and Backend Programming" \
744 --css ../doc/cups-printable.css \
745 --header api-filter.header --body api-filter.shtml \
746 backchannel.c backend.h backend.c sidechannel.c sidechannel.h \
747 >../doc/help/api-filter.html
748
749
750 #
751 # Lines of code computation...
752 #
753
754 sloc:
755 echo "libcups: \c"
756 sloccount $(LIBOBJS:.o=.c) 2>/dev/null | grep "Total Physical" | awk '{print $$9}'
757 echo "libcupsimage: \c"
758 sloccount $(IMAGEOBJS:.o=.c) 2>/dev/null | grep "Total Physical" | awk '{print $$9}'
759
760
761 #
762 # Dependencies...
763 #
764
765 include Dependencies
766 tls.o: tls-darwin.c tls-gnutls.c tls-sspi.c