#
#  Main makefile for GNUstep X/GPS GUI Backend
#
#  Copyright (C) 1997 Free Software Foundation, Inc.
#
#  Author: Adam Fedor <fedor@gnu.org>
#
#  This file is part of the GNUstep X/GPS GUI Backend.
#
#  This library is free software; you can redistribute it and/or
#  modify it under the terms of the GNU Library General Public
#  License as published by the Free Software Foundation; either
#  version 2 of the License, or (at your option) any later version.
#
#  This library 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
#  Library General Public License for more details.
#
#  If you are interested in a warranty or support for this source code,
#  contact Scott Christley at scottc@net-community.com
#
#  You should have received a copy of the GNU Library General Public
#  License along with this library; see the file COPYING.LIB.
#  If not, write to the Free Software Foundation,
#  59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_SYSTEM_ROOT)

GNUSTEP_MAKEFILES = $(GNUSTEP_SYSTEM_ROOT)/Makefiles

GNUSTEP_LOCAL_ADDITIONAL_MAKEFILES=../xgps.make
include $(GNUSTEP_MAKEFILES)/common.make

include ../Version
include ../config.mak

# The library to be compiled, as a library or as a bundle
ifeq ($(BACKEND_BUNDLE),)
LIBRARY_NAME=libgnustep-xgps
else
BUNDLE_NAME=libgnustep-xgps
endif

# The C source files to be compiled
ifeq ($(WITH_WRASTER),yes)
libgnustep-xgps_C_FILES = \
SharedX/xdnd.c \
SharedX/xrtools.c 
else
libgnustep-xgps_C_FILES = \
SharedX/StdCmap.c \
SharedX/context.c \
SharedX/convert.c \
SharedX/draw.c \
SharedX/gradient.c \
SharedX/misc.c \
SharedX/raster.c \
SharedX/scale.c \
SharedX/xdnd.c \
SharedX/xutil.c \
SharedX/xrtools.c 
endif

# The Objective-C source files to be compiled
libgnustep-xgps_OBJC_FILES = \
SharedX/XGContextEvent.m \
SharedX/XGContextWindow.m \
SharedX/XGBitmapImageRep.m \
SharedX/XGDragView.m \
SharedX/XGSlideView.m \
SharedX/XIMInputServer.m \
XGBitmap.m \
XGCommonFont.m \
XGFont.m \
XGFontManager.m \
XGContext.m \
XGGState.m \
XGStreamContext.m \
XGGeometry.m \
externs.m  \
linking.m

ifeq ($(WITH_XFT),yes)
libgnustep-xgps_OBJC_FILES += XftFontInfo.m
endif

libgnustep-xgps_HEADER_FILES_DIR = ../Headers/gnustep/xgps
libgnustep-xgps_HEADER_FILES_INSTALL_DIR = gnustep/xgps

libgnustep-xgps_HEADER_FILES = \
XGContext.h \
XGContextPrivate.h \
XGContextWindow.h \
XGGeometry.h \
XGGState.h \
XGGStateOps.h

-include GNUmakefile.preamble

-include GNUmakefile.local

ifeq ($(BACKEND_BUNDLE),)
include $(GNUSTEP_MAKEFILES)/library.make
else
include $(GNUSTEP_MAKEFILES)/bundle.make
endif

-include GNUmakefile.postamble

