25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

67 lines
2.0 KiB

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