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