~ubuntu-branches/ubuntu/hardy/postgresql-8.4/hardy-backports

« back to all changes in this revision

Viewing changes to src/interfaces/ecpg/compatlib/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-hogj7egc5mjncc5g
Tags: upstream-8.4~0cvs20090328
ImportĀ upstreamĀ versionĀ 8.4~0cvs20090328

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#-------------------------------------------------------------------------
 
2
#
 
3
# Makefile for ecpg compatibility library
 
4
#
 
5
# Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
 
6
# Portions Copyright (c) 1994, Regents of the University of California
 
7
#
 
8
# $PostgreSQL$
 
9
#
 
10
#-------------------------------------------------------------------------
 
11
 
 
12
subdir = src/interfaces/ecpg/compatlib
 
13
top_builddir = ../../../..
 
14
include $(top_builddir)/src/Makefile.global
 
15
 
 
16
NAME= ecpg_compat
 
17
SO_MAJOR_VERSION= 3
 
18
SO_MINOR_VERSION= 1
 
19
 
 
20
override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
 
21
        -I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
 
22
override CFLAGS += $(PTHREAD_CFLAGS)
 
23
 
 
24
SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) \
 
25
        $(filter -lintl -lm, $(LIBS)) $(PTHREAD_LIBS)
 
26
 
 
27
SHLIB_EXPORTS = exports.txt
 
28
 
 
29
# Need to recompile any libpgport object files
 
30
LIBS := $(filter-out -lpgport, $(LIBS))
 
31
 
 
32
OBJS= informix.o $(filter snprintf.o, $(LIBOBJS))
 
33
 
 
34
all: all-lib
 
35
 
 
36
# Shared library stuff
 
37
include $(top_srcdir)/src/Makefile.shlib
 
38
 
 
39
snprintf.c: % : $(top_srcdir)/src/port/%
 
40
        rm -f $@ && $(LN_S) $< .
 
41
 
 
42
install: all installdirs install-lib
 
43
 
 
44
installdirs: installdirs-lib
 
45
 
 
46
uninstall: uninstall-lib
 
47
 
 
48
clean distclean: clean-lib
 
49
        rm -f $(OBJS) snprintf.c
 
50
 
 
51
maintainer-clean: distclean maintainer-clean-lib