~ubuntu-branches/ubuntu/gutsy/psqlodbc/gutsy

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-05-13 10:47:36 UTC
  • Revision ID: james.westby@ubuntu.com-20040513104736-a530gmn0p3knep89
Tags: upstream-07.03.0200
ImportĀ upstreamĀ versionĀ 07.03.0200

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#-------------------------------------------------------------------------
 
2
#
 
3
# Makefile.am for psqlodbc (PostgreSQL ODBC driver)
 
4
#
 
5
# $Header: /usr/local/cvsroot/psqlodbc/psqlodbc/Makefile.am,v 1.8 2003/05/15 15:53:13 dpage Exp $
 
6
#
 
7
#-------------------------------------------------------------------------
 
8
 
 
9
AUTOMAKE_OPTIONS = 1.6 foreign
 
10
 
 
11
lib_LTLIBRARIES = psqlodbc.la
 
12
 
 
13
psqlodbc_la_LDFLAGS = -module -no-undefined -avoid-version
 
14
 
 
15
psqlodbc_la_SOURCES = \
 
16
        info.c bind.c columninfo.c connection.c convert.c drvconn.c \
 
17
        environ.c execute.c lobj.c win_md5.c misc.c options.c \
 
18
        pgtypes.c psqlodbc.c qresult.c results.c socket.c parse.c \
 
19
        statement.c tuple.c tuplelist.c dlg_specific.c odbcapi.c \
 
20
        multibyte.c \
 
21
        gpps.c odbcapi30.c pgapi30.c info30.c
 
22
 
 
23
psqlodbc_la_SOURCES += \
 
24
        bind.h columninfo.h connection.h convert.h descriptor.h \
 
25
        dlg_specific.h environ.h gpps.h iodbc.h isql.h isqlext.h \
 
26
        lobj.h md5.h misc.h multibyte.h pgapifunc.h pgtypes.h \
 
27
        psqlodbc.h qresult.h resource.h socket.h statement.h tuple.h \
 
28
        tuplelist.h version.h
 
29
 
 
30
EXTRA_psqlodbc_la_SOURCES = md5.c
 
31
 
 
32
if with_unixodbc
 
33
psqlodbc_la_LIBADD = -lodbcinst
 
34
else
 
35
if with_iodbc
 
36
psqlodbc_la_LIBADD = -liodbcinst
 
37
else
 
38
AM_CPPFLAGS = -DODBCINSTDIR='"$(odbcinst_ini_dir)"'
 
39
endif
 
40
endif
 
41
 
 
42
dist_pkgdata_DATA = odbc.sql odbc-drop.sql
 
43
BUILT_SOURCES = odbc-drop.sql
 
44
 
 
45
EXTRA_DIST = README.unix license.txt notice.txt readme.txt odbcinst.ini \
 
46
        libtool.m4 psqlodbc_win32.def psqlodbc_apiw.def psqlodbc_api30w.def \
 
47
        psqlodbc_api25.def win32.mak win32_30w.mak win32_25.mak \
 
48
        dlg_wingui.c win_unicode.c win_setup.h win_md5.c setup.c \
 
49
        psqlodbc.reg psqlodbc25.reg psqlodbc30w.reg
 
50
MAINTAINERCLEANFILES = odbc-drop.sql \
 
51
        Makefile.in config.guess config.h.in config.sub configure \
 
52
        install-sh missing mkinstalldirs aclocal.m4 ltmain.sh \
 
53
        libtool.m4 depcomp
 
54
 
 
55
$(srcdir)/odbc-drop.sql: $(srcdir)/odbc.sql
 
56
        sed -n '/^CREATE OR REPLACE FUNCTION/s/CREATE OR REPLACE FUNCTION \([^ (][^ (]*([^)]*)\).*/DROP FUNCTION \1;/p' $(srcdir)/odbc.sql >$(srcdir)/odbc-drop.sql