kolibrios-fun/programs/network/netsurf/libdom/bindings/xml/Makefile
Dmitry Pereverzev (SoUrcerer) 370da47fa0 Netsurf initial port (still needs native ui and cURL)
git-svn-id: svn://kolibrios.org@3584 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-01 17:14:14 +00:00

34 lines
827 B
Makefile

ifeq ($(WITH_LIBXML_BINDING),yes)
DIR_SOURCES := libxml_xmlparser.c
# LibXML2
ifneq ($(PKGCONFIG),)
CFLAGS := $(CFLAGS) $(shell $(PKGCONFIG) libxml-2.0 --cflags)
LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) libxml-2.0 --libs)
else
CFLAGS := $(CFLAGS) -I$(PREFIX)/include/libxml2
LDFLAGS := $(LDFLAGS) -lxml2
endif
# LibXML 2.6.26 has a bug in its headers that expects _POSIX_C_SOURCE to be
# defined. Define it here, even though we don't need it.
CFLAGS := $(CFLAGS) -D_POSIX_C_SOURCE
DO_XML_INSTALL := yes
endif
ifeq ($(WITH_EXPAT_BINDING),yes)
DIR_SOURCES := expat_xmlparser.c
LDFLAGS := $(LDFLAGS) -lexpat
DO_XML_INSTALL := yes
endif
ifeq ($(DO_XML_INSTALL),yes)
DIR_INSTALL_ITEMS := /include/dom/bindings/xml:xmlerror.h;xmlparser.h
endif
include $(NSBUILD)/Makefile.subdir