1 | .TH caca-config 1 "2003-11-22" "libcaca" |
---|
2 | .SH NAME |
---|
3 | caca-config \- script to get information about the installed version of libcaca |
---|
4 | .SH SYNOPSIS |
---|
5 | .B caca-config |
---|
6 | [ --prefix= |
---|
7 | .IR DIR ] |
---|
8 | [ --exec-prefix= |
---|
9 | .IR DIR ] |
---|
10 | [ --version ] [ --libs ] [ --cflags ] |
---|
11 | .SH DESCRIPTION |
---|
12 | .B caca-config |
---|
13 | is a tool that is used to configure and determine the compiler and linker |
---|
14 | flags that should be used to compile and link progams, libraries, and |
---|
15 | plugins that use libcaca. |
---|
16 | |
---|
17 | The use of |
---|
18 | .B caca-config |
---|
19 | is deprecated. The more generic tool |
---|
20 | .B pkg-config |
---|
21 | should be used instead. |
---|
22 | .SH OPTIONS |
---|
23 | .TP |
---|
24 | .B --cflags |
---|
25 | Print the compiler flags that are necessary to compile a program or library |
---|
26 | that uses libcaca. |
---|
27 | .TP |
---|
28 | .BI --exec-prefix= DIR |
---|
29 | If specified, use |
---|
30 | .I DIR |
---|
31 | instead of the installation exec prefix that libcaca was build with when |
---|
32 | computing the output for the --cflags and --libs options. |
---|
33 | This option must be specified before any of the --cflags and --libs options. |
---|
34 | .TP |
---|
35 | .B --libs |
---|
36 | Print the linker flags that are necessary to link a program or library |
---|
37 | that uses libcaca. |
---|
38 | .TP |
---|
39 | .BI --prefix= DIR |
---|
40 | If specified, use PREFIX instead of the installation prefix that libcaca |
---|
41 | was built with when computing the output for the --cflags and --libs |
---|
42 | options. This option is also used for the exec prefix if --exec-prefix |
---|
43 | was not specified. This option must be specified before any of the --cflags |
---|
44 | and --libs options. |
---|
45 | .TP |
---|
46 | .B --version |
---|
47 | Prints the currently installed version of libcaca on standard output. |
---|
48 | .SH EXAMPLES |
---|
49 | .TP |
---|
50 | gcc -o main.o $(caca-config --cflags) -c main.c |
---|
51 | is how you might use |
---|
52 | .B caca-config |
---|
53 | to compile a C source file for an executable program. |
---|
54 | .TP |
---|
55 | gcc -o my_app $(caca-config --libs) main.o util.o |
---|
56 | is how you might use |
---|
57 | .B caca-config |
---|
58 | to link compiled objects into an executable program. |
---|
59 | .SH SEE ALSO |
---|
60 | pkg-config(1) |
---|
61 | .SH AUTHOR |
---|
62 | The libcaca library was written by Sam Hocevar <sam@hocevar.net>. |
---|
63 | .PP |
---|
64 | This manual page was written for sdl-config by Branden Robinson, originally |
---|
65 | for Progeny Linux Systems, Inc., and the Debian Project. It was adapted to |
---|
66 | libcaca by Sam Hocevar. |
---|