Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. ifeq ($(WITH_LIBXML_BINDING),yes)
  2.   DIR_SOURCES := libxml_xmlparser.c
  3.  
  4.   # LibXML2
  5.   ifneq ($(PKGCONFIG),)
  6.     CFLAGS := $(CFLAGS) $(shell $(PKGCONFIG) libxml-2.0 --cflags)
  7.     LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) libxml-2.0 --libs)
  8.   else
  9.     CFLAGS := $(CFLAGS) -I$(PREFIX)/include/libxml2
  10.     LDFLAGS := $(LDFLAGS) -lxml2
  11.   endif
  12.  
  13.   # LibXML 2.6.26 has a bug in its headers that expects _POSIX_C_SOURCE to be
  14.   # defined. Define it here, even though we don't need it.
  15.   CFLAGS := $(CFLAGS) -D_POSIX_C_SOURCE
  16.  
  17.   DO_XML_INSTALL := yes
  18. endif
  19.  
  20. ifeq ($(WITH_EXPAT_BINDING),yes)
  21.   DIR_SOURCES := expat_xmlparser.c
  22.  
  23.   LDFLAGS := $(LDFLAGS) -lexpat
  24.  
  25.   DO_XML_INSTALL := yes
  26. endif
  27.  
  28. ifeq ($(DO_XML_INSTALL),yes)
  29.   DIR_INSTALL_ITEMS := /include/dom/bindings/xml:xmlerror.h;xmlparser.h
  30. endif
  31.  
  32. include $(NSBUILD)/Makefile.subdir
  33.  
  34.