#-------------------------------------------------------------------------
#
# 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.55 2000/01/10 15:41:27 momjian Exp $
#
#-------------------------------------------------------------------------

NAME= ecpg
SO_MAJOR_VERSION= 3
SO_MINOR_VERSION= 1.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)

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

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