# # GNUmakefile # # Copyright (C) 2003-2004 SKYRIX Software AG # # Author: Helge Hess (helge.hess@skyrix.com) # # This file is part of the PostgreSQL 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. # $Id: GNUmakefile.preamble 1 2004-08-20 10:38:46Z znek $ PostgreSQL_BUNDLE_LIBS += -lpq PostgreSQL_BUNDLE_LIBS += -lGDLAccess -lEOControl gdltest_TOOL_LIBS += -lGDLAccess # set compile flags and go ADDITIONAL_INCLUDE_DIRS += \ -I../GDLAccess -I.. ADDITIONAL_INCLUDE_DIRS += \ -I$(PGSQL)/include/pgsql \ -I$(PGSQL)/include \ -I.. -I../.. \ -I../../sope-core/ \ -I../../sope-core/NGExtensions ADDITIONAL_INCLUDE_DIRS += \ -I/usr/local/include/pgsql \ -I/usr/local/include \ -I/usr/local/pgsql/include \ -I/usr/include/pgsql \ -I/usr/include/postgresql \ -I/usr/include \ 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 ifneq ($(PGSQL),) ADDITIONAL_LIB_DIRS += -L$(PGSQL)/lib endif ADDITIONAL_LIB_DIRS += \ -L/usr/local/lib \ -L/usr/local/pgsql/lib/ \ -L/usr/lib ifeq ($(FOUNDATION_LIB),apple) PostgreSQL_BUNDLE_LIBS += -lssl -lcrypto ADDITIONAL_INCLUDE_DIRS += -I/Library/PostgreSQL/include/ endif