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