#
# Copyright (C) by Michael Lausch, G.A.M.S. edv Dienstleistungen GmbH
#
# $Id$
#
# 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.

DBGCFLAGS = -g -Wall 

# Python include directory
PYTHONINC = /usr/local/include/python1.4

# Python lib directory. Needed for config.h
# you should have done a 'make libainstall' after building python, or
# else this will not exist.
PYTHONLIB = /usr/local/lib/python/lib

#
# Solid client include and library directory
#
SOLIDINC=/disk/solid/include
SOLIDLIB=/disk/solid/lib

CFLAGS = -fPIC -O2 -I$(PYTHONINC) -I$(SOLIDINC) -I.

all: soliddbmodule.so

soliddbmodule.so: soliddb.o
	$(CC) -shared -Wl,-soname -Wl,soliddbmodule.so.0.1 soliddb.o -L$(SOLIDLIB) -lsolcli -o soliddbmodule.so

clean:
	rm -f soliddb.o soliddbmodule.so *~* core *.pyc

#
# $Log$
#
#
