# libdom
ifneq ($(PKGCONFIG),)
CFLAGS := $(CFLAGS) \
- $(shell $(PKGCONFIG) $(PKGCONFIGFLAGS) --cflags libdom)
- LDFLAGS := $(LDFLAGS) \
- $(shell $(PKGCONFIG) $(PKGCONFIGFLAGS) --libs libdom)
+ $(shell $(PKGCONFIG) $(PKGCONFIGFLAGS) --cflags libdom libwapcaplet)
+ LDFLAGS := $(LDFLAGS) -lm \
+ $(shell $(PKGCONFIG) $(PKGCONFIGFLAGS) --libs libdom libwapcaplet)
else
CFLAGS := $(CFLAGS) -I$(PREFIX)/include
- LDFLAGS := $(CFLAGS) -ldom
+ LDFLAGS := $(CFLAGS) -ldom -lwapcaplet -lexpat -lm
endif
include $(NSBUILD)/Makefile.top
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
+#include <stdlib.h>
#include "svgtiny.h"
case svgtiny_OUT_OF_MEMORY:
fprintf(stderr, "svgtiny_OUT_OF_MEMORY");
break;
- case svgtiny_LIBXML_ERROR:
- fprintf(stderr, "svgtiny_LIBXML_ERROR");
+ case svgtiny_LIBDOM_ERROR:
+ fprintf(stderr, "svgtiny_LIBDOM_ERROR");
break;
case svgtiny_NOT_SVG:
fprintf(stderr, "svgtiny_NOT_SVG");