summaryrefslogtreecommitdiffstats
path: root/klaptopdaemon/Makefile.am
blob: a70a155a4a61a2d1c413e362492407aeb20fec4e (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
kde_module_LTLIBRARIES = kcm_laptop.la kded_klaptopdaemon.la 
bin_PROGRAMS = klaptop_acpi_helper klaptop_check
lib_LTLIBRARIES = libkcmlaptop.la
SUBDIRS = pics applnk

libkcmlaptop_la_SOURCES = portable.cpp smapidev.c daemon_state.cpp wake_laptop.cpp krichtextlabel.cpp
libkcmlaptop_la_LDFLAGS = $(all_libraries) 
libkcmlaptop_la_LIBADD  = $(LIB_KDEUI) 

MESSAGE_SOURCES = laptop_daemon.cpp kpcmcia.cpp xautolock.cc kpcmciainfo.cpp daemondock.cpp xautolock_diy.c xautolock_engine.c
kded_klaptopdaemon_la_SOURCES = $(MESSAGE_SOURCES) laptop_daemon.skel  
kded_klaptopdaemon_la_LDFLAGS = $(all_libraries) -module -avoid-version  -lXtst
kded_klaptopdaemon_la_LIBADD   = $(LIB_KDEUI) $(LIB_XSS) libkcmlaptop.la

klaptop_acpi_helper_SOURCES = acpi_helper.cpp
klaptop_acpi_helper_LDADD = $(LIB_QT)

klaptop_check_SOURCES = laptop_check.cpp 
klaptop_check_LDFLAGS = $(all_libraries) 
klaptop_check_LDADD = $(LIB_KFILE) $(LIB_KDEUI) libkcmlaptop.la

kcm_laptop_la_SOURCES = battery.cpp main.cpp pcmcia.cpp power.cpp warning.cpp \
	acpi.cpp sony.cpp profile.cpp buttons.cpp apm.cpp  
kcm_laptop_la_LDFLAGS  = $(all_libraries) $(KDE_PLUGIN) -module
kcm_laptop_la_LIBADD = $(LIB_KFILE) $(LIB_KDEUI) libkcmlaptop.la
kcm_laptop_la_COMPILE_FIRST = crcresult.h

AM_CPPFLAGS = $(all_includes)

AM_LDFLAGS = $(all_libraries) $(KDE_RPATH)

KDE_OPTIONS = nofinal

kcm_laptop_la_METASOURCES = AUTO

messages:
	$(XGETTEXT) $(libkcmlaptop_la_SOURCES) $(klaptop_acpi_helper_SOURCES) $(klaptop_check_SOURCES) $(MESSAGE_SOURCES) -o $(podir)/klaptopdaemon.pot
	$(XGETTEXT) $(kcm_laptop_la_SOURCES) -o $(podir)/kcmlaptop.pot

dummy.cpp:
	echo >dummy.cpp

noinst_PROGRAMS = makecrc
makecrc_SOURCES = makecrc.cpp
makecrc_LDADD = $(LIBZ) $(LIB_QT)

crcresult.h:	makecrc klaptop_acpi_helper
	./makecrc >crcresult.h

CLEANFILES = crcresult.h makecrc