| 1 |
.Dd July 13, 2015 |
| 2 |
.Dt MAGICKCORE-CONFIG 1 |
| 3 |
.Os |
| 4 |
.Sh NAME |
| 5 |
.Nm MagickCore-config |
| 6 |
.Nd get information about the installed version of ImageMagick |
| 7 |
.Sh SYNOPSIS |
| 8 |
.Nm MagickCore-config |
| 9 |
.Op Fl -cflags |
| 10 |
.Op Fl -cppflags |
| 11 |
.Op Fl -exec-prefix |
| 12 |
.Op Fl -ldflags |
| 13 |
.Op Fl -libs |
| 14 |
.Op Fl -prefix |
| 15 |
.Op Fl -version |
| 16 |
.Sh DESCRIPTION |
| 17 |
The |
| 18 |
.Nm MagickCore-config |
| 19 |
utility prints the compiler and linker flags required |
| 20 |
to compile and link programs that use the |
| 21 |
.Nm ImageMagick "Core" |
| 22 |
Application Programmer Interface. |
| 23 |
.Pp |
| 24 |
The following options are available: |
| 25 |
.Bl -tag -width Fl |
| 26 |
.It Fl -cppflags , -cflags , -cxxflags |
| 27 |
Print the compiler flags that are needed to find the |
| 28 |
.Xr ImageMagick 1 |
| 29 |
C include files and defines to ensure that the ImageMagick data structures match between |
| 30 |
your program and the installed libraries. |
| 31 |
.It Fl -prefix , -exec-prefix |
| 32 |
Print the directory under which target specific binaries and executables are installed. |
| 33 |
.It Fl -ldflags , -libs |
| 34 |
Print the linker flags that are needed to link with the |
| 35 |
.Xr ImageMagick 1 |
| 36 |
library. |
| 37 |
.It Fl -version |
| 38 |
Print the version of the |
| 39 |
.Xr ImageMagick 1 |
| 40 |
distribution to standard output. |
| 41 |
.It Fl -coder-path |
| 42 |
Print the path where the |
| 43 |
.Xr ImageMagick 1 |
| 44 |
coder modules are installed. |
| 45 |
.It Fl -filter-path |
| 46 |
Print the path where the |
| 47 |
.Xr ImageMagick 1 |
| 48 |
filter modules are installed. |
| 49 |
.El |
| 50 |
.Sh EXAMPLES |
| 51 |
To print the version of the installed distribution of |
| 52 |
.Nm ImageMagick |
| 53 |
use: |
| 54 |
|
| 55 |
.Dl MagickCore-config --version |
| 56 |
.sp |
| 57 |
To compile a program that calls the |
| 58 |
.Xr ImageMagick 1 |
| 59 |
Application Programmer Interface, use: |
| 60 |
|
| 61 |
.Dl cc `MagickCore-config --cppflags --ldflags` program.c |
| 62 |
.Sh SEE ALSO |
| 63 |
.Xr ImageMagick 1 |
| 64 |
.Sh LICENSE |
| 65 |
.Nm ImageMagick |
| 66 |
is licensed with a derived Apache license 2.0. See |
| 67 |
https://imagemagick.org/license/ for more details. |
| 68 |
.Sh AUTHORS |
| 69 |
.An -nosplit |
| 70 |
The |
| 71 |
.Nm ImageMagick |
| 72 |
suite and this manual page where written by |
| 73 |
.An Cristy, ImageMagick Studio LLC <[email protected]>. |