Page 1 of 1

How to create Makefile for magick wand

Posted: 2009-12-09T09:30:07-07:00
by erotavlas_turbo
Hi all,

I have written a C code that use magick wand libraries. It compiles and works well. How can i add this part of code to existing program?This program is compiled with a Makefile.
How can i add the compilation parameters to Makefile?

Code: Select all

 EXAMPLE cc `MagickWand-config --cflags --cppflags` -o wand wand.c `MagickWand-config --ldflags --libs`
PS I'm not expert programmer...

Thank you

Re: How to create Makefile for magick wand

Posted: 2009-12-14T08:21:51-07:00
by erotavlas_turbo
I have solved my question. It's necessary to add two flag at compiler input.

Code: Select all

CFLAGS += `MagickWand-config --cflags --cppflags`

CFLAGS += `MagickWand-config --ldflags --libs`
Now the whole program compiles well, but it doesn't work...