#! gmake

## AbiSource Application Framework
## Copyright (C) 1998 AbiSource, Inc.
##
## 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)/../../../..

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

ifdef ABI_OPT_GNOME
DIRS=		$(ABI_GNOME_DIR)
endif

CPPSRCS=		xap_UnixApp.cpp				\
			xap_UnixClipboard.cpp			\
			xap_UnixDlg_FileOpenSaveAs.cpp		\
			xap_UnixDlg_FontChooser.cpp		\
			xap_UnixDlg_MessageBox.cpp		\
			xap_UnixDlg_Print.cpp			\
			xap_UnixDlg_WindowMore.cpp		\
			xap_UnixDlg_Zoom.cpp			\
			xap_UnixDlg_Insert_Symbol.cpp		\
			xap_UnixFontXLFD.cpp			\
			xap_UnixFont.cpp			\
			xap_UnixPSFont.cpp			\
			xap_UnixFontManager.cpp			\
			xap_UnixFrame.cpp			\
			xap_UnixToolbar_Icons.cpp		\
			xap_UnixModule.cpp                      \
			xap_UnixPSImage.cpp			\
			xap_UnixPSParseAFM.cpp			\
			xap_UnixEncodingManager.cpp \
			xap_UnixDlg_Language.cpp

# only build these for non-gnome
ifndef ABI_OPT_GNOME
CPPSRCS +=		xap_UnixDlg_About.cpp			\
			xap_UnixPSGenerate.cpp			\
			xap_UnixDlg_PrintPreview.cpp            \
			xap_UnixPSGraphics.cpp
endif

# only build this until gnome-print support gets better
ifeq ($(ABI_OPT_GNOME_DIRECT_PRINT),1)
CPPSRCS +=		xap_UnixPSGenerate.cpp			\
			xap_UnixPSGraphics.cpp
endif


TARGETS=		$(OBJS)
INCLUDES=      -I/usr/X11R6/include

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

build:: $(TARGETS)
