blob: 81e1ea473690584d5a947115f2c6fbea519a6e4d (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
## Makefile.am for krecipes
# this is the program that gets installed. it's name is used for all
# of the other Makefile.am variables
bin_PROGRAMS = krecipes
SUBDIRS = backends importers widgets dialogs exporters datablocks tests
# set the include path for X, tqt and TDE
INCLUDES = -I$(srcdir) -I$(srcdir)/backends -I$(srcdir)/backends/SQLite $(all_includes)
# the library search path.
krecipes_LDFLAGS = $(KDE_RPATH) $(LIB_TDEPARTS) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_TDEIO) -ltdefx -lDCOP $(LIB_TQT) $(all_libraries)
# Check for optional libs
if link_lib_SQLITE
qsqlite_libadds = backends/SQLite/libkrecsqlite.la $(SQLITE_LIB3)
endif
if link_lib_MYSQL
mysql_libadds =backends/MySQL/libkrecmysql.la
endif
if link_lib_POSTGRESQL
psql_libadds =backends/PostgreSQL/libkrecpsql.la
endif
# the shared libraries to link against.
krecipes_LDADD = \
backends/libkrecipesdbs.la exporters/libkrecipesexporters.la \
importers/libkrecipesimporters.la widgets/libkrecipeswidgets.la dialogs/libkrecipesdialogs.la \
widgets/libkrecipeswidgets.la datablocks/libdatablocks.la \
$(qsqlite_libadds) $(mysql_libadds) $(psql_libadds) $(LIB_TDEHTML) $(LIB_TDESPELL) $(LIB_TDEPARTS) -ltdefx
# which sources should be compiled for krecipes
krecipes_SOURCES = \
main.cpp krecipes.cpp krecipesview.cpp pref.cpp \
krecipesiface.skel krecipesdbiface.skel \
propertycalculator.cpp setupwizard.cpp \
shoppingcalculator.cpp kstartuplogo.cpp \
recipeactionshandler.cpp \
recipefilter.cpp \
convert_sqlite3.cpp klomanager.cpp
# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO
KDE_ICON = krecipes
# this is where the kdelnk file will go
kdelnkdir = $(kde_appsdir)/Utilities
kdelnk_DATA = krecipes.desktop
# this is where the XML-GUI resource file goes
rcdir = $(kde_datadir)/krecipes
rc_DATA = krecipesui.rc
# this is where the pixmap file goes
pixmapdir = $(datadir)/pixmaps
pixmap_DATA = krecipes.xpm
messages: rc.cpp
find ./ -name \*.ui | xargs --no-run-if-empty $(EXTRACTRC) >> rc.cpp
$(XGETTEXT) rc.cpp `find ./ -name \*.cpp` -o $(podir)/krecipes.pot
rm -f rc.cpp
|