#-------------------------------------------------------------------------
#
# 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.68 2000/06/17 00:09:59 petere Exp $
#
#-------------------------------------------------------------------------

NAME= ecpg
SO_MAJOR_VERSION= 3
SO_MINOR_VERSION= 1.1

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

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


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
