#-------------------------------------------------------------------------
#
# Makefile
#    Makefile for ecpg library
#
# Copyright (c) 1994, Regents of the University of California
#
# IDENTIFICATION
#    $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.65 2000/03/30 11:41:34 meskes Exp $
#
#-------------------------------------------------------------------------

NAME= ecpg
SO_MAJOR_VERSION= 3
SO_MINOR_VERSION= 1.0

SRCDIR= @top_srcdir@
include $(SRCDIR)/Makefile.global

CFLAGS+= -I../include -I$(LIBPQDIR)

ifdef KRBVERS
CFLAGS+= $(KRBFLAGS)
endif

OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \
	connect.o misc.o

SHLIB_LINK= $(LIBPQ)

# Shared library stuff, also default 'all' target
include $(SRCDIR)/Makefile.shlib


.PHONY: install

install: install-lib $(install-shlib-dep)

.PHONY: clean

clean: clean-shlib
	rm -f lib$(NAME).a $(OBJS)

depend dep:
	$(CC) -MM $(CFLAGS) *.c >depend

ifeq (depend,$(wildcard depend))
include depend
endif
