OSDN Git Service

b0fbf2d9a91c97adcd2c0bc41507867ee9417be4
[pg-rex/syncrep.git] / src / interfaces / ecpg / lib / Makefile.in
1 #-------------------------------------------------------------------------
2 #
3 # Makefile
4 #    Makefile for ecpg library
5 #
6 # Copyright (c) 1994, Regents of the University of California
7 #
8 # IDENTIFICATION
9 #    $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.68 2000/06/17 00:09:59 petere Exp $
10 #
11 #-------------------------------------------------------------------------
12
13 NAME= ecpg
14 SO_MAJOR_VERSION= 3
15 SO_MINOR_VERSION= 1.1
16
17 SRCDIR= ../../..
18 include $(SRCDIR)/Makefile.global
19
20 CFLAGS+= -I../include -I$(LIBPQDIR)
21
22
23 OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \
24         connect.o misc.o
25
26 SHLIB_LINK= $(LIBPQ)
27
28 # Shared library stuff, also default 'all' target
29 include $(SRCDIR)/Makefile.shlib
30
31
32 .PHONY: install
33
34 install: install-lib $(install-shlib-dep)
35
36 .PHONY: clean
37
38 clean: clean-shlib
39         rm -f lib$(NAME).a $(OBJS)
40
41 depend dep:
42         $(CC) -MM $(CFLAGS) *.c >depend
43
44 ifeq (depend,$(wildcard depend))
45 include depend
46 endif