Blame view

sql/Makefile.am 1.54 KB
1 2
## This file is part of GNU Mailutils

3
##   Copyright (C) 2004, 2005, 2007, 2010 Free Software Foundation, Inc.
4 5 6
##
##   GNU Mailutils is free software; you can redistribute it and/or
##   modify it under the terms of the GNU General Public License as
7
##   published by the Free Software Foundation; either version 3, or (at
8 9 10 11 12 13 14 15 16
##   your option) any later version.
##
##   This program is distributed in the hope that it will be useful, but
##   WITHOUT ANY WARRANTY; without even the implied warranty of
##   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
##   General Public License for more details.
##
##   You should have received a copy of the GNU General Public License
##   along with this program; if not, write to the Free Software
17 18
##   Foundation, Inc.  51 Franklin Street, Fifth Floor, Boston, MA
##   02110-1301 USA
19 20

noinst_LTLIBRARIES=@BUILD_SQL@
Sergey Poznyakoff authored
21
EXTRA_LTLIBRARIES=libsql.la mysql.la postgres.la odbc.la
22 23
EXTRA_DIST=\
 mysql.c\
Sergey Poznyakoff authored
24
 odbc.c\
25 26 27
 postgres.c
DISTCLEANFILES = modlist.h

28
INCLUDES= @MU_LIB_COMMON_INCLUDES@ 
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
libsql_la_SOURCES=sql.c
libsql_la_LIBADD=@SQL_LTLIBOBJS@

libsql_la_DEPENDENCIES = @SQL_LTLIBOBJS@

moddir = $(pkgdatadir)/$(VERSION)/modules
mod_LTLIBRARIES = @SQL_LOADABLE_MODULES@

MODFLAGS=-module -avoid-version -no-undefined -rpath $(moddir) -Wl,-Bsymbolic

mysql_la_SOURCES = mysql.c
mysql_la_LIBADD = @MYSQLLIBS@
mysql_la_LDFLAGS = $(MODFLAGS)

postgres_la_SOURCES = postgres.c
postgres_la_LIBADD = @POSTGRESLIBS@
postgres_la_LDFLAGS = $(MODFLAGS)
Sergey Poznyakoff authored
46 47 48 49

odbc_la_SOURCES = odbc.c
odbc_la_LIBADD = @ODBCLIBS@
odbc_la_LDFLAGS = $(MODFLAGS)