#
#  Copyright (C) 1997-2002 Free Software Foundation, Inc.
#
#  This file is part of gsgd
#
#  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.
#
#  You should have received a copy of the GNU Library General Public
#  License along with this library; if not, write to the Free
#  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

include $(GNUSTEP_MAKEFILES)/common.make

LIBRARY_NAME = libgsgd

libgsgd_OBJC_FILES = \
GDFont.m \
GDImage.m \
GDLineStyle.m \
GDFrame.m \
GDLegendBox.m \
GDBinDataSet.m \
GDPieChart.m \
GDBarChart.m


libgsgd_HEADER_FILES = \
GD.h \
GDFont.h \
GDImage.h \
GDLineStyle.h \
GDFrame.h \
GDLegendBox.h \
GDBinDataSet.h \
GDPieChart.h \
GDBarChart.h

libgsgd_HEADER_FILES_INSTALL_DIR = gsgd
libgsgd_HEADER_FILES_DIR = ../Headers/gsgd

include ../config.make

ADDITIONAL_OBJCFLAGS += -Wall
ADDITIONAL_INCLUDE_DIRS += -I../Headers
LIBRARIES_DEPEND_UPON = -lgd

# Optional Java wrappers for the library
JAVA_WRAPPER_NAME = gsgd
gsgd_HEADER_FILES = gsgd/GD.h
gsgd_HEADER_FILES_DIR = ../Headers/

include $(GNUSTEP_MAKEFILES)/library.make

# If JIGS is installed, automatically generate Java wrappers as well.
# Because of the '-', should not complain if java-wrapper.make can't be
# found ... simply skip generation of java wrappers in that case.
-include $(GNUSTEP_MAKEFILES)/java-wrapper.make
