# 
# GNUmakefile
#
# Copyright (C) 2003-2005 Helge Hess
#
# Author: Helge Hess (helge.hess@opengroupware.org)
#
# This file is part of the SQLite3 Adaptor Library
#
# 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; see the file COPYING.LIB.
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

MySQL_BUNDLE_LIBS += \
	-lGDLAccess	\
	-lEOControl	\
	`mysql_config --libs`

MySQLD_BUNDLE_LIBS += \
	-lGDLAccess	\
	-lEOControl	\
	`mysql_config --libs`

gdltest_TOOL_LIBS += \
	-lGDLAccess	\
	-lNGExtensions

# set compile flags and go

ADDITIONAL_CFLAGS += `mysql_config --cflags`

ADDITIONAL_INCLUDE_DIRS += \
	-I../GDLAccess -I.. -I../..

ADDITIONAL_INCLUDE_DIRS += \
	-I../../sope-core/		\
	-I../../sope-core/NGExtensions
	
ifneq ($(GNUSTEP_BUILD_DIR),)
RELBUILD_DIR_SOPE=$(GNUSTEP_BUILD_DIR)/../..
RELBUILD_DIR_Core=$(RELBUILD_DIR_SOPE)/sope-core
RELBUILD_DIR_Gdl1=$(RELBUILD_DIR_SOPE)/sope-gdl1

ADDITIONAL_LIB_DIRS += \
	-L$(RELBUILD_DIR_Core)/EOControl/$(GNUSTEP_OBJ_DIR_NAME)        \
	-L$(RELBUILD_DIR_Gdl1)/GDLAccess/$(GNUSTEP_OBJ_DIR_NAME)	\
	-L$(GNUSTEP_BUILD_DIR)/$(GNUSTEP_OBJ_DIR_NAME)
else
ADDITIONAL_LIB_DIRS += \
	-L../GDLAccess/$(GNUSTEP_OBJ_DIR)\
	-L../../sope-core/EOControl/$(GNUSTEP_OBJ_DIR)
endif

SYSTEM_LIB_DIR += \
	-L/usr/local/lib	        \
	-L/usr/lib