# GNUstep makefile

-include ../../config.make
include ../common.make

LIBRARY_NAME   = libDOM
FRAMEWORK_NAME = DOM

libDOM_HEADER_FILES_DIR         = .
libDOM_HEADER_FILES_INSTALL_DIR = /DOM
libDOM_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
libDOM_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)

LDOM_HEADER_FILES += \
	DOM.h				\
	DOMProtocols.h			\
	DOMAttribute.h			\
	DOMCDATASection.h		\
	DOMCharacterData.h		\
	DOMComment.h			\
	DOMDocument.h			\
	DOMDocumentFragment.h		\
	DOMDocumentType.h		\
	DOMElement.h			\
	DOMEntity.h			\
	DOMEntityReference.h		\
	DOMImplementation.h		\
	DOMNode.h			\
	DOMNotation.h			\
	DOMProcessingInstruction.h	\
	DOMBuilder.h			\
	DOMBuilderFactory.h		\

EDOM_HEADER_FILES += \
	EDOM.h				\
	DOMNode+Enum.h			\
	DOMNode+QueryPath.h		\
	DOMQueryPathExpression.h	\

libDOM_HEADER_FILES = \
	$(LDOM_HEADER_FILES)		\
	$(EDOM_HEADER_FILES)		\
	EDOM.h				\
	DOMSaxBuilder.h			\
	DOMSaxHandler.h			\
	DOMText.h			\
	DOMXMLOutputter.h		\
	DOMPYXOutputter.h		\
	DOMNodeWalker.h			\
	DOMNamedNodeMap.h		\

DOM_CORE_OBJC_FILES = \
	NSObject+StringValue.m		\
	DOMAttribute.m			\
	DOMCDATASection.m		\
	DOMCharacterData.m		\
	DOMComment.m			\
	DOMDocument.m			\
	DOMElement.m			\
	DOMEntity.m			\
	DOMEntityReference.m		\
	DOMImplementation.m		\
	DOMNode.m			\
	DOMNodeWithChildren.m		\
	DOMNotation.m			\
	DOMProcessingInstruction.m	\
	DOMText.m			\
	DOMDocument+factory.m		\
	DOMDocumentType.m		\
	DOM+JS.m			\
	DOMBuilderFactory.m		\

EDOM_OBJC_FILES = \
	DOMNode+Enum.m			\
	DOMNode+QueryPath.m		\
	DOMQueryPathExpression.m	\
	NSObject+QPEval.m		\
	DOMNode+QPEval.m		\

DOM_TRAVERSAL_OBJC_FILES = \
	DOMTreeWalker.m			\
	DOMNodeFilter.m			\
	DOMNodeIterator.m		\

libDOM_OBJC_FILES = \
	DOMSaxBuilder.m			\
	DOMSaxHandler.m			\
	DOMXMLOutputter.m		\
	DOMPYXOutputter.m		\
	DOMNodeWalker.m			\
	NSObject+DOM.m			\
	$(EDOM_OBJC_FILES)		\
	$(DOM_CORE_OBJC_FILES)		\
	$(DOM_TRAVERSAL_OBJC_FILES)	\

DOM_HEADER_FILES = $(libDOM_HEADER_FILES)
DOM_OBJC_FILES   = $(libDOM_OBJC_FILES)

-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/library.make

ifeq ($(FOUNDATION_LIB),apple)
include $(GNUSTEP_MAKEFILES)/framework.make
endif
-include GNUmakefile.postamble
-include fhs.make