Makefile.in 1005 Bytes
Newer Older
1 2 3 4 5 6 7 8
#-------------------------------------------------------------------------
#
# Makefile
#    Makefile for ecpg library
#
# Copyright (c) 1994, Regents of the University of California
#
# IDENTIFICATION
Michael Meskes's avatar
Michael Meskes committed
9
#    $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.66 2000/05/17 06:03:13 meskes Exp $
10 11 12
#
#-------------------------------------------------------------------------

13
NAME= ecpg
14
SO_MAJOR_VERSION= 3
Michael Meskes's avatar
Michael Meskes committed
15
SO_MINOR_VERSION= 1.1
16 17

SRCDIR= @top_srcdir@
Marc G. Fournier's avatar
Marc G. Fournier committed
18 19
include $(SRCDIR)/Makefile.global

20
CFLAGS+= -I../include -I$(LIBPQDIR)
Marc G. Fournier's avatar
Marc G. Fournier committed
21

22 23 24 25
ifdef KRBVERS
CFLAGS+= $(KRBFLAGS)
endif

Michael Meskes's avatar
Michael Meskes committed
26 27
OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \
	connect.o misc.o
Bruce Momjian's avatar
Bruce Momjian committed
28

29
SHLIB_LINK= $(LIBPQ)
Bruce Momjian's avatar
Bruce Momjian committed
30

31 32
# Shared library stuff, also default 'all' target
include $(SRCDIR)/Makefile.shlib
Bruce Momjian's avatar
Bruce Momjian committed
33 34


35
.PHONY: install
Bruce Momjian's avatar
Bruce Momjian committed
36

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

39
.PHONY: clean
40 41 42

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

44 45
depend dep:
	$(CC) -MM $(CFLAGS) *.c >depend
Marc G. Fournier's avatar
Marc G. Fournier committed
46

47 48 49
ifeq (depend,$(wildcard depend))
include depend
endif