MAGICK_CPPFLAGS:=$(shell GraphicsMagick-config --cppflags)
LIBIMAGES_LIBS+=$(MAGICK_LIBS)
$(o)/images/io-libmagick.o: CFLAGS+=$(MAGICK_CPPFLAGS)
+$(o)/images/io-libmagick.o: LIBS+=-lpthread
endif
PROGS+=$(LIBIMAGES_PROGS)
TESTS+=$(o)/images/image-test.test
$(o)/images/image-test: $(o)/images/image-test.o $(LIBIMAGES) $(LIBUCW)
+$(o)/images/image-test: LIBS+=-lpthread
$(o)/images/image-test.test: $(o)/images/image-test
TESTS+=$(o)/images/color.test
static uns rd(char *dest)
{
char buf[1024];
- fgets(buf, sizeof(buf), stdin);
+ if (!fgets(buf, sizeof(buf), stdin))
+ die("fgets()");
*strchr(buf, '\n') = 0;
if (buf[0] == '0' && buf[1] == 'x')
{