# Generated automatically from Makefile.in by configure.
#
TCLSH=../../src/xotclsh

PREFIX = 	/usr/local
EXEC_PREFIX=	/usr/local

LIBS=-lgdbm
#
# try ./configure first to fill in all the definitions corresponding
# to your system, but you always can edit the sections below manually.
#

CC=		cc
CFLAGS=		 -O
RANLIB= 	ranlib
INSTALL=	/usr/bin/install -c

#
# how to compile, link, and name shared libraries
#

SHLIB_LD=	cc -shared
SHLIB_CFLAGS=	-fPIC
SHLIB_SUFFIX=	.so
SHLD_FLAGS=	
DL_LIBS=	-ldl

TCLGDBM = tclgdbm

TARGET		= lib$(TCLGDBM)$(SHLIB_SUFFIX)
SRC		= $(TCLGDBM).c
OBJ		= $(TCLGDBM).o


.c.o:
	$(CC) -c $(CFLAGS) -I. $(SHLIB_CFLAGS) $(INCLUDES) $<

all: $(TARGET)

$(TARGET): $(OBJ)
	$(SHLIB_LD) -o $@ $(OBJ) $(LIBS) -L/usr/local/lib

install_pkg:
	$(TCLSH) install.tcl

test:
	cd tests; $(TCLSH) all

depend:
	makedepend $(SRC)

clean:
	rm -f $(OBJ) $(TARGET) ../$(TARGET)


# DO NOT DELETE
