#
#  PostgreSQL makefile for GNUstep Database Library.
#  
#  Copyright (C) 1997 Free Software Foundation, Inc.
#
#  Written by:	Scott Christley <scottc@net-community.com>
#
#  This file is part of the GNUstep Database 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; if not, write to the Free
#  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

GNUSTEP_MAKEFILES = $(GNUSTEP_SYSTEM_ROOT)/Makefiles

include $(GNUSTEP_MAKEFILES)/common.make

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

# The bundles to be compiled
BUNDLE_NAME=Postgres95

# The bundle Objective-C source files to be compiled
Postgres95_OBJC_FILES = \
Postgres95Adaptor.m \
Postgres95Context.m \
Postgres95Channel.m \
Postgres95SQLExpression.m \
Postgres95Values.m \
Postgres95Exceptions.m

# The bundle resource files and directories
Postgres95_RESOURCES = Info.plist
Postgres95_RESOURCE_DIRS =

# The bundles libraries to link against
Postgres95_BUNDLE_LIBS = -lpq

# The bundles to be installed
BUNDLE_INSTALL = $(BUNDLE_NAME)
BUNDLE_INSTALL_DIR = $(GNUSTEP_LIBRARIES_ROOT)/Adaptors

# Use .gdladaptor as the bundle extension
BUNDLE_EXTENSION = .gdladaptor

# The library to be compiled
LIBRARY_NAME=libgdl-postgresql

# The bundle Objective-C source files to be compiled
libgdl-postgresql_OBJC_FILES = $(Postgres95_OBJC_FILES)

libgdl-postgresql_HEADER_FILES_DIR = .
libgdl-postgresql_HEADER_FILES_INSTALL_DIR = \
   /$(GNUSTEP_FND_DIR)/eoadaptors/PostgreSQL

libgdl-postgresql_HEADER_FILES = \
Postgres95Adaptor.h \
Postgres95Context.h \
Postgres95Channel.h \
Postgres95SQLExpression.h \
Postgres95Values.h \
Postgres95Exceptions.h

-include Makefile.preamble

-include GNUmakefile.local

ifeq ($(POSTGRES95_DATABASE),yes)
include $(GNUSTEP_MAKEFILES)/bundle.make
include $(GNUSTEP_MAKEFILES)/library.make
else
include $(GNUSTEP_MAKEFILES)/rules.make
endif

-include Makefile.postamble
