summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: 9c2fd75f731842350f6d61a17d49473ebd5fd269 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# set the include path for X, qt and KDE
INCLUDES = $(all_includes)

# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO

messages: rc.cpp
	$(XGETTEXT) *.cpp -o $(podir)/basket.pot

KDE_ICON = AUTO

# these are the headers for your project

noinst_HEADERS = basket.h basketproperties.h mainwindow.h basket_part.h \
							debugwindow.h 	linklabel.h variouswidgets.h xmlwork.h keyboard.h global.h settings.h \
							focusedwidgets.h popupmenu.h basketfactory.h exporterdialog.h tag.h kcolorcombo2.h \
							newbasketdialog.h tagsedit.h note.h notecontent.h 	notedrag.h noteedit.h notefactory.h \
							filter.h tools.h backgroundmanager.h regiongrabber.h softwareimporters.h \
							kicondialog.h kiconcanvas.h kgpgme.h crashhandler.h password.h bnpview.h \
							systemtray.h clickablelabel.h colorpicker.h basketlistview.h qeffects.h likeback.h \
							formatimporter.h aboutdata.h basketstatusbar.h basketdcopiface.h basket_options.h \
					likeback_private.h application.h archive.h htmlexporter.h backup.h

#########################################################################
# COMMON FILES SECTION
#########################################################################

lib_LTLIBRARIES = libbasketcommon.la

AM_CPPFLAGS = $(GPGME_CFLAGS)

libbasketcommon_la_LDFLAGS = -avoid-version -no-undefined $(all_libraries) -lkdecore -lDCOP -lkdeui $(LIB_QT) -lkjs -lkdefx -ldl -lartsc -lartskde -lartskde

libbasketcommon_la_LIBADD = $(LIB_ARTSKDE) -lkio $(LIB_KDEUI) $(LIB_KDECORE) \
	$(LIB_QT) $(LIBSOCKET) $(GPGME_LIBS) $(LIB_KPARTS) -lDCOP -lkdefx -lkdeui -lkdecore $(LIB_QT) -lkdefx -ldl -lartsc

libbasketcommon_la_SOURCES = \
	archive.cpp bnpview.cpp settings.cpp basket.cpp basketproperties.cpp \
	linklabel.cpp variouswidgets.cpp xmlwork.cpp keyboard.cpp \
	global.cpp exporterdialog.cpp htmlexporter.cpp notefactory.cpp softwareimporters.cpp \
	focusedwidgets.cpp popupmenu.cpp basketfactory.cpp \
	tag.cpp qeffects.cpp kcolorcombo2.cpp newbasketdialog.cpp tagsedit.cpp \
	formatimporter.cpp note.cpp notecontent.cpp notedrag.cpp noteedit.cpp \
	filter.cpp tools.cpp backgroundmanager.cpp regiongrabber.cpp \
	kicondialogui.ui kicondialog.cpp kiconcanvas.cpp kgpgme.cpp likeback.cpp \
	crashhandler.cpp passwordlayout.ui password.cpp colorpicker.cpp \
	basketlistview.cpp debugwindow.cpp systemtray.cpp aboutdata.cpp \
	basketstatusbar.cpp clickablelabel.cpp basketdcopiface.skel backup.cpp

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

# the application source, library search path, and link libraries
basket_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_KUTILS) -lkdecore -lDCOP -lkdeui $(LIB_QT) -lkjs -lkdefx -ldl -lartsc -lartskde -lartskde
basket_LDADD = libbasketcommon.la

# this is where the desktop file will go
shelldesktopdir = $(xdg_appsdir)
shelldesktop_DATA = basket.desktop

# this is where the shell's XML-GUI resource file goes
rcdir = $(kde_datadir)/basket
rc_DATA = basketui.rc

basket_SOURCES = main.cpp mainwindow.cpp application.cpp

kde_icon_KDEICON = cr128-app-basket.png cr16-app-basket.png cr22-app-basket.png \
	cr32-app-basket.png cr48-app-basket.png cr64-app-basket.png hi16-app-basket_old.png \
	hi32-app-basket_old.png crsc-app-basket.svg \
	cr16-action-likeback_like.png cr16-action-likeback_dislike.png \
	cr16-action-likeback_bug.png cr16-action-likeback_feature.png

##################
# KPART SECTION
##################

kde_module_LTLIBRARIES = kcm_basket.la libbasketpart.la

libbasketpart_la_SOURCES = basket_part.cpp
libbasketpart_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) -module -avoid-version -no-undefined -lkdecore -lkdeui $(LIB_QT) -lDCOP -lkjs -lkdefx -ldl -lartsc -lartskde -lartskde
libbasketpart_la_LIBADD  = libbasketcommon.la -lkparts -lkdeui $(LIB_KDECORE) $(LIB_QT) -lDCOP

kcm_basket_la_SOURCES = kcm_basket.cpp
kcm_basket_la_LDFLAGS = $(all_libraries) -module -avoid-version -no-undefined -lkdecore -lkdeui $(LIB_QT) -lDCOP -lkjs -lkdefx -ldl -lartsc -lartskde
kcm_basket_la_LIBADD = libbasketcommon.la $(LIB_KDECORE) $(LIB_QT) -lkdeui -lDCOP

# this is where the desktop file will go
partdesktopdir   = $(kde_servicesdir)
partdesktop_DATA = basket_part.desktop

# this is where the part's XML-GUI resource file goes
partdir   = $(kde_datadir)/basket
part_DATA = basket_part.rc

kde_services_DATA = \
	basket_config_general.desktop \
	basket_config_baskets.desktop \
	basket_config_new_notes.desktop \
	basket_config_notes_appearance.desktop \
	basket_config_apps.desktop \
	basket_config_features.desktop \
	basket_config_notes.desktop