source: libcaca/trunk/README @ 207

Last change on this file since 207 was 202, checked in by Sam Hocevar, 17 years ago
  • debian/control: + Changed section to libs/libdevel instead of games/games. + Changed package name to libcaca-dev.
  • debian/rules: + Use debian/compat instead of DH_COMPAT. + Install README, BUGS and TODO into /usr/share/doc.
  • caca-config.in: + First version of the config script.
  • configure.ac src/Makefile.am: + Build a static PIC library as well.
  • README TODO: + Various updates.
  • Property svn:keywords set to Id
File size: 1000 bytes
Line 
1$Id: README 202 2003-11-20 16:54:04Z sam $
2
3Building libcaca
4
5   o  Run configure then make. Useful configure flags are:
6
7     --enable-slang: use the SLang library (default)
8     --enable-ncurses: use the ncurses library
9     --enable-conio: use MS-DOS conio.h
10
11   o  Cross-compilation example:
12 
13     ./configure --enable-conio --host=i386-pc-msdosdjgpp
14
15
16Using libcaca
17
18   o  Compiling a libcaca program is fairly simple:
19
20      gcc -c foobar.c -o foobar.o `caca-config --cflags`
21      gcc foobar.o -o foobar `caca-config --libs`
22
23   o  If you are writing a shared object that uses libcaca, either a
24      dynamically loadable plug-in or a shared library, you should use
25      the `--plugin-libs' flag for libcaca:
26
27      gcc -fPIC -c libfoo.c -o libfoo.o `caca-config --cflags`
28      gcc -shared libfoo.o -o libfoo.so `caca-config --plugin-libs`
29
30
31Binary packages
32
33   o  As the API is not stable yet, everyone should statically link libcaca
34      with their programs or libraries. DO NOT DISTRIBUTE SHARED VERSIONS
35      OF LIBCACA.
36
Note: See TracBrowser for help on using the repository browser.