summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: c6514a3860ec7b5337e693234e89a4278a55b71d (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
# set the include path for X, qt and KDE
INCLUDES = $(all_includes)

# these are the headers for your project
noinst_HEADERS = kommando.h roundbutton.h commandobutton.h menu.h \
	configdialogimpl.h menulistviewitem.h configuration.h servicemenu.h kommandoview.h \
	kommandod.h kcmkommando.h

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

messages: rc.cpp
	$(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
	$(XGETTEXT) *.cpp -o $(podir)/kommando.pot

KDE_ICON = AUTO

#########################################################################
# SHARED LIBRARY
#########################################################################

lib_LTLIBRARIES = libkommando.la
libkommando_la_SOURCES = menulistviewitem.cpp configuration.cpp menu.cpp \
	commandobutton.cpp roundbutton.cpp kommandoview.cpp
libkommando_la_LDFLAGS = -version-info 1:0:0 $(all_libraries)
libkommando_la_LIBADD = $(LIB_KDECORE)

#########################################################################
# KDE MODULES SECTION
#########################################################################
# this is the library that gets installed.  it's name is used for all
# of the other Makefile.am variables
kde_module_LTLIBRARIES = kded_kommandod.la kcm_kommando.la

kded_kommandod_la_SOURCES = kommandod.cpp kommandod.skel kommando.cpp
kded_kommandod_la_METASOURCES = AUTO
kded_kommandod_la_LDFLAGS = -avoid-version -module $(all_libraries)
kded_kommandod_la_LIBADD = -lXmu libkommando.la $(LIB_KDECORE)

servicesdir = $(kde_servicesdir)/kded
services_DATA = kommandod.desktop

kcm_kommando_la_LDFLAGS = -avoid-version -module -no-undefined $(all_libraries)
kcm_kommando_la_SOURCES = configdialogimpl.cpp configdialog.ui \
	kcmkommando.cpp servicemenu.cpp
kcm_kommando_la_LIBADD = libkommando.la -lXmu $(LIB_KIO) $(LIB_KDEUI) \
	$(LIB_KDECORE)

# this is where the desktop file will go 
xdg_apps_DATA = kommando.desktop