#! gmake

## AbiWord
## Copyright (C) 2005 Marc Maurer <uwog@abisource.com>
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
## as published by the Free Software Foundation; either version 2
## of the License, or (at your option) any later version.
## 
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
## 
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
## 02111-1307, USA.

ABI_ROOT:=$(shell pwd)/../../../../../../abi
include $(ABI_ROOT)/src/config/abi_defs.mk

INCLUDES+=		-I$(shell pwd) \
				-I$(shell pwd)/../../common/xp \
				-I$(shell pwd)/../../exp/xp 

TARGETS=			$(OBJS)
CPPSRCS=			ie_imp_OpenXML.cpp \
				ie_imp_OpenXML_Sniffer.cpp \
				OXMLi_ListenerState.cpp \
				OXMLi_ListenerState_MainDocument.cpp \
				OXMLi_ListenerState_Styles.cpp \
				OXMLi_ListenerState_Theme.cpp \
				OXMLi_ListenerState_DocSettings.cpp \
				OXMLi_ListenerState_HdrFtr.cpp \
				OXMLi_ListenerState_Common.cpp \
				OXMLi_StreamListener.cpp \
				OXMLi_PackageManager.cpp

CFLAGS+=	-DABI_DLL

ifeq ($(ABI_FE), Win32)
ifeq ($(OS_NAME), MINGW32)
	INCLUDES+=  -I$(shell pkg-config --cflags libgsf-1)
	INCLUDES+=  -I$(ABI_ROOT)/../libs/boost
endif
endif

include $(ABI_ROOT)/src/config/abi_rules.mk

build:: $(TARGETS)
