summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-19 20:40:48 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-19 20:40:48 +0000
commitbe4fc77c294a41a0db46ba692fbe45b2045b66c3 (patch)
tree4e930029faf4f131514b080217ad080fd3a5acb8 /src/Makefile.am
downloadkpowersave-be4fc77c294a41a0db46ba692fbe45b2045b66c3.tar.gz
kpowersave-be4fc77c294a41a0db46ba692fbe45b2045b66c3.zip
Added KDE3 version of kpowersave
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpowersave@1092957 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am103
1 files changed, 103 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..9e85c65
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,103 @@
+# set the include path for X, qt and KDE
+INCLUDES = \
+ -DPACKAGE_KDE_SOUND_DIR=\""$(prefix)/share/sounds/"\" \
+ $(all_includes) \
+ @PACKAGE_CFLAGS@
+
+# these are the headers for your project
+noinst_HEADERS = \
+ autodimm.h \
+ autosuspend.h \
+ blacklisteditdialog.h \
+ configuredialog.h \
+ countdowndialog.h \
+ dbusHAL.h \
+ detaileddialog.h \
+ hardware.h \
+ hardware_battery.h \
+ hardware_batteryCollection.h \
+ hardware_cpu.h \
+ inactivity.h \
+ infodialog.h \
+ kpowersave.h \
+ logviewer.h \
+ privileges.h \
+ screen.h \
+ settings.h \
+ suspenddialog.h
+
+
+# let automoc handle all of the meta source files (moc)
+METASOURCES = AUTO
+
+KDE_ICON = kpowersave
+
+#########################################################################
+# APPLICATION SECTION
+#########################################################################
+# this is the program that gets installed. it's name is used for all
+# of the other Makefile.am variables
+
+bin_PROGRAMS =
+lib_LTLIBRARIES =
+kdeinit_LTLIBRARIES = kpowersave.la
+
+# the application source, library search path, and link libraries
+kpowersave_la_SOURCES = \
+ dummy.cpp \
+ autodimm.cpp \
+ autosuspend.cpp \
+ blacklistedit_Dialog.ui \
+ blacklisteditdialog.cpp \
+ configure_Dialog.ui \
+ configuredialog.cpp \
+ countdown_Dialog.ui \
+ countdowndialog.cpp \
+ dbusHAL.cpp \
+ detailed_Dialog.ui \
+ detaileddialog.cpp \
+ hardware.cpp \
+ hardware_battery.cpp \
+ hardware_batteryCollection.cpp \
+ hardware_cpu.cpp \
+ inactivity.cpp \
+ info_Dialog.ui \
+ infodialog.cpp \
+ kpowersave.cpp \
+ kpowersave.skel \
+ log_viewer.ui \
+ logviewer.cpp \
+ main.cpp \
+ screen.cpp \
+ settings.cpp \
+ suspenddialog.cpp \
+ suspend_Dialog.ui
+
+
+kpowersave_la_LDFLAGS = $(KDE_RPATH) $(all_libraries) -module -avoid-version
+kpowersave_la_LIBADD = $(LIB_KIO) @PACKAGE_LIBS@ -ldbus-qt-1 -lXss -lXext -lXtst
+
+# this is where the desktop file will go
+xdg_apps_DATA = kpowersave.desktop
+
+# and for autostart
+autostartdir = $(prefix)/share/autostart
+autostart_DATA = kpowersave-autostart.desktop
+
+# this is where the shell's XML-GUI resource file goes
+shellrcdir = $(kde_datadir)/kpowersave
+shellrc_DATA = eventsrc
+# shellrc_DATA = kpowersaveui.rc
+
+# pics subdir
+SUBDIRS = pics
+messages:
+ $(EXTRACTRC) *ui eventsrc >> rc.cpp
+ $(XGETTEXT) `find . -name \*.h -o -name \*.H -o -name \*.cpp -o -name \*.C` -o $(podir)/kpowersave.pot
+ rm -f rc.cpp
+
+install-data-local:
+ $(mkinstalldirs) $(DESTDIR)$(kde_confdir)
+ $(INSTALL_DATA) $(top_srcdir)/src/config/kpowersaverc_default $(DESTDIR)$(kde_confdir)/kpowersaverc
+
+