This is a utility to assist developers using the C API. It outputs the appropriate compiler and linker options needed when compiling and linking code with . It is intended to be used within make files to assist in portability. The command accepts three options:
Displays the compiler flags needed when compiling with the C API.
Displays the linker flags needed when linking with the C API.
Displays the version of the artsc-config command.
Typical output from the command is shown below:
% artsc-config --cflags -I/usr/local/kde2/include/artsc % artsc-config --libs -L/usr/local/kde2/lib -ldl -lartsc -DPIC -fPIC -lpthread % artsc-config --version 0.9.5 |
You could use this utility in a make file using a rule such as:
1 artsc: artsc.c 2 gcc `artsc-config --cflags` -o artsc artsc.c `artsc-config --libs` |