itchconfig Documentation
Macros: Binaries
Macro IC_BINARY_CREATE
- Macro name: IC_BINARY_CREATE
- Available since version 0.0.1
- Level: configure
- Parameters:
- binaries - a list of binaries
- Examples:
- IC_BINARY_CREATE(foo)
- IC_BINARY_CREATE([bar baz])
Adds the given binaries to the list of all binaries which shall be built
when the user executes "make".
Macro IC_BINARY_ADD_SOURCE
- Macro name: IC_BINARY_ADD_SOURCE
- Available since version 0.0.1
- Level: configure
- Parameters:
- binaries - a list of binaries
- language (optional) - the source code language (default: empty - "C")
- sourcefiles - a list of source code files
- prefix (optional) - a common path prefix (default: empty - no prefix)
- Example:
- IC_BINARY_ADD_SOURCE(foo, C, [main.c 1;util/bar.c])
Makes sure that the source code files will be taken into account when the
binaries are built.
If a file name is of the form "1;foo", a file called "foo" will be used for
the binary and auto-generated from "foo.in" which must exist in the package;
similarly "2;foo" generates "foo" from "foo.in.in", "3;foo" generates "foo"
from "foo.in.in.in" etc. (But normally, "1;foo" should be enough...) See also
IC_INFILE_ADD.
Since version 0.0.2, you can use the parameter prefix to declare a
common path prefix for all the files. This is just there to save some
typing and improve readability for very long lists of files; for example, if
your source code files are in the sub-directory "src", you could write
IC_BINARY_ADD_SOURCE(foo, C, [a1.c a2.c a3.c a4.c], src) instead of
IC_BINARY_ADD_SOURCE(foo, C, [src/a1.c src/a2.c src/a3.c src/a4.c]).
Macro IC_BINARY_ADD_LIBRARY
- Macro name: IC_BINARY_ADD_LIBRARY
- Available since version 0.0.1
- Level: configure
- Parameters:
- binaries - a list of binaries
- libraries - a list of libraries
- Example:
- IC_BINARY_ADD_LIBRARY(foo, [curses m])
Makes sure that the libraries are linked when the binaries are built.
Macro IC_BINARY_REENTRANT
- Macro name: IC_BINARY_REENTRANT
- Available since version 0.0.1
- Level: configure
- Parameters:
- binaries - a list of binaries
Tells itchconfig that the binaries shall be built as "reentrant". This
command basically adds "-D_REENTRANT" to CFLAGS.
Macro IC_BINARY_USE_GTK
- Macro name: IC_BINARY_USE_GTK
- Available since version 0.0.3
- Level: configure
- Parameters:
- binaries - a list of binaries
Tells itchconfig that the binaries use the GTK graphics library. The configure script will
call gtk-config to find out appropriate libraries for linking and CFLAGS.
This documentation file is part of version 0.0.4 of itchconfig, a configuration tool
created by Arne Thomaßen. itchconfig is basically
released under certain versions of the GNU General Public License and WITHOUT
ANY WARRANTY. Copyright (C) 2002 Arne Thomaßen.