summaryrefslogtreecommitdiffstats
path: root/krecipes/src/backends/Makefile.am
blob: d9732a0672959d0a0aef8c31c045550e4b5d8f90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
## Makefile.am for krecipes

# this is the program that gets installed.  it's name is used for all
# of the other Makefile.am variables

# set the include path for X, tqt and TDE
INCLUDES = -I$(srcdir) -I$(srcdir)/.. $(all_includes)

# Check for optional database libs


if link_lib_SQLITE
sqlite_subdirs=SQLite
sqlite_libs=SQLite/libkrecsqlite.la
endif

if link_lib_MYSQL
mysql_subdirs=MySQL
mysql_libs=MySQL/libkrecmysql.la
endif

if link_lib_POSTGRESQL
psql_subdirs=PostgreSQL
psql_libs=PostgreSQL/libkrecpsql.la
endif

# Optional subdirectories

SUBDIRS=$(sqlite_subdirs) $(mysql_subdirs) $(psql_subdirs)

# Instructions for building the convenience library
noinst_LTLIBRARIES=libkrecipesdbs.la
libkrecipesdbs_la_SOURCES=recipedb.cpp qsqlrecipedb.cpp progressinterface.cpp
libkrecipesdbs_la_METASOURCES=AUTO

libkrecipesdbs_la_LIBADD= $(mysql_libs) $(sqlite_libs) $(psql_libs)

#the library search path.
libkrecipesdbs_la_LDFLAGS = $(KDE_RPATH) $(all_libraries)

#install the following headers
# include_HEADERS = recipedb.h