#-------------------------------------------------------------------------
#
# 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.44 1999/06/30 23:57:23 tgl Exp $
#
#-------------------------------------------------------------------------

NAME= ecpg
SO_MAJOR_VERSION= 3
SO_MINOR_VERSION= 0.0

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

CFLAGS+= -I../include -I$(SRCDIR)/interfaces/libpq

ifdef KRBVERS
CFLAGS+= $(KRBFLAGS)
endif

OBJS= ecpglib.o typename.o

SHLIB_LINK= -L../../libpq -lpq

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


.PHONY: install

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

# Handmade dependencies in case make depend not done
ecpglib.o : ecpglib.c ../include/ecpglib.h ../include/ecpgtype.h
typename.o : typename.c ../include/ecpgtype.h


.PHONY: clean

clean: clean-shlib
	rm -f lib$(NAME).a $(OBJS)
ifeq ($(PORTNAME), win)
	rm -f $(NAME).def
endif

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

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