2009-07-28 21:44:22 +00:00
|
|
|
# -*- mode: Makefile; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
|
|
|
|
#
|
2007-10-23 21:52:11 +00:00
|
|
|
# Conky, a system monitor, based on torsmo
|
|
|
|
#
|
|
|
|
# Any original torsmo code is licensed under the BSD license
|
|
|
|
#
|
|
|
|
# All code written since the fork of torsmo is licensed under the GPL
|
|
|
|
#
|
|
|
|
# Please see COPYING for details
|
|
|
|
#
|
|
|
|
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
|
2009-03-30 04:55:30 +00:00
|
|
|
# Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
|
2007-10-23 21:52:11 +00:00
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
|
2009-07-08 08:09:06 +00:00
|
|
|
INCLUDES = -DSYSTEM_CONFIG_FILE=\"$(sysconfdir)/conky/conky.conf\" -DPACKAGE_LIBDIR=\"$(pkglibdir)\"
|
2007-10-23 21:52:11 +00:00
|
|
|
|
2005-08-21 23:09:36 +00:00
|
|
|
bin_PROGRAMS = conky
|
|
|
|
|
2009-07-08 08:09:06 +00:00
|
|
|
LIBS = ${conky_LIBS}
|
|
|
|
|
2008-12-12 14:33:25 +00:00
|
|
|
if BUILD_CONFIG_OUTPUT
|
|
|
|
config_output = defconfig.h
|
2008-12-14 13:36:44 +00:00
|
|
|
config_cookie = conf_cookie.c conf_cookie.h
|
2009-06-21 21:46:03 +00:00
|
|
|
if BUILD_X11
|
2009-07-31 11:50:33 +00:00
|
|
|
config_input = $(srcdir)/../data/conky.conf
|
2009-06-21 21:46:03 +00:00
|
|
|
else
|
2009-07-31 11:50:33 +00:00
|
|
|
config_input = $(srcdir)/../data/conky_no_x11.conf
|
2008-12-14 13:36:44 +00:00
|
|
|
endif
|
2009-06-21 21:46:03 +00:00
|
|
|
|
2008-12-12 14:33:25 +00:00
|
|
|
conky_DEPENDENCIES = $(config_output)
|
|
|
|
BUILT_SOURCES = $(config_output)
|
|
|
|
CLEANFILES = $(config_output)
|
2009-06-21 21:46:03 +00:00
|
|
|
|
|
|
|
$(config_output): ${config_input}
|
2009-07-19 22:43:41 +00:00
|
|
|
sh $(srcdir)/../text2c.sh ${config_input} $@ defconfig
|
2009-06-21 21:46:03 +00:00
|
|
|
endif # BUILD_CONFIG_OUTPUT
|
2008-12-12 14:33:25 +00:00
|
|
|
|
2006-01-08 14:51:47 +00:00
|
|
|
if BUILD_AUDACIOUS
|
2006-11-03 20:54:52 +00:00
|
|
|
audacious = audacious.c audacious.h
|
2005-12-30 09:44:40 +00:00
|
|
|
endif
|
|
|
|
|
2006-01-08 08:02:37 +00:00
|
|
|
if BUILD_BMPX
|
|
|
|
bmpx = bmpx.c
|
2006-01-05 07:06:42 +00:00
|
|
|
endif
|
|
|
|
|
2009-01-03 23:00:52 +00:00
|
|
|
if BUILD_IBM
|
2009-01-03 23:25:15 +00:00
|
|
|
ibm = ibm.c ibm.h smapi.c smapi.h
|
2009-01-03 23:00:52 +00:00
|
|
|
endif
|
|
|
|
|
2005-08-21 23:09:36 +00:00
|
|
|
if BUILD_MPD
|
|
|
|
mpd = mpd.c libmpdclient.c
|
|
|
|
endif
|
|
|
|
|
2008-09-24 06:59:45 +00:00
|
|
|
if BUILD_MOC
|
|
|
|
moc = moc.c
|
|
|
|
endif
|
|
|
|
|
2006-03-25 21:21:07 +00:00
|
|
|
if BUILD_XMMS2
|
|
|
|
xmms2 = xmms2.c
|
|
|
|
endif
|
|
|
|
|
2005-08-21 23:09:36 +00:00
|
|
|
if BUILD_LINUX
|
2009-05-04 19:13:51 +00:00
|
|
|
linux = linux.c top.c diskio.c users.c sony.c
|
2005-08-22 23:32:35 +00:00
|
|
|
PTHREAD_LIBS = -lpthread
|
2005-08-21 23:09:36 +00:00
|
|
|
endif
|
|
|
|
|
2006-08-12 06:10:18 +00:00
|
|
|
#if BUILD_SOLARIS
|
|
|
|
#solaris = solaris.c
|
|
|
|
#endif
|
2005-08-21 23:09:36 +00:00
|
|
|
|
|
|
|
if BUILD_FREEBSD
|
2009-05-14 22:52:18 +00:00
|
|
|
freebsd = freebsd.c diskio.c
|
2005-08-22 23:32:35 +00:00
|
|
|
PTHREAD_LIBS = -pthread
|
2005-08-21 23:09:36 +00:00
|
|
|
endif
|
|
|
|
|
2006-08-12 06:10:18 +00:00
|
|
|
#if BUILD_NETBSD
|
|
|
|
#netbsd = netbsd.c
|
|
|
|
#endif
|
2005-08-21 23:09:36 +00:00
|
|
|
|
2007-03-01 01:43:43 +00:00
|
|
|
if BUILD_OPENBSD
|
|
|
|
openbsd = openbsd.c
|
|
|
|
PTHREAD_LIBS = -pthread
|
|
|
|
endif
|
|
|
|
|
2005-10-31 05:17:06 +00:00
|
|
|
if BUILD_PORT_MONITORS
|
2008-12-09 13:44:14 +00:00
|
|
|
port_monitors = libtcp-portmon.h libtcp-portmon.c \
|
|
|
|
tcp-portmon.h tcp-portmon.c
|
2005-10-31 05:17:06 +00:00
|
|
|
endif
|
|
|
|
|
2005-08-21 23:09:36 +00:00
|
|
|
if BUILD_X11
|
2009-02-22 16:53:30 +00:00
|
|
|
x11 = x11.c fonts.c
|
2005-08-21 23:09:36 +00:00
|
|
|
endif
|
|
|
|
|
2006-08-10 16:56:13 +00:00
|
|
|
if BUILD_HDDTEMP
|
|
|
|
hddtemp = hddtemp.c
|
|
|
|
endif
|
|
|
|
|
2008-06-28 20:14:04 +00:00
|
|
|
if BUILD_EVE
|
|
|
|
eve = eve.c eve.h
|
|
|
|
endif
|
|
|
|
|
2009-07-20 05:43:36 +00:00
|
|
|
if BUILD_CURL
|
|
|
|
ccurl_thread = ccurl_thread.c ccurl_thread.h
|
|
|
|
endif
|
|
|
|
|
2007-05-06 12:17:13 +00:00
|
|
|
if BUILD_RSS
|
2007-08-24 02:00:18 +00:00
|
|
|
rss = rss.c prss.c prss.h
|
2007-05-06 12:17:13 +00:00
|
|
|
endif
|
|
|
|
|
2009-07-06 22:20:12 +00:00
|
|
|
if BUILD_WEATHER
|
|
|
|
weather = weather.c weather.h
|
|
|
|
endif
|
|
|
|
|
2009-05-15 18:08:51 +00:00
|
|
|
if BUILD_LUA
|
|
|
|
lua = llua.c llua.h
|
|
|
|
endif
|
|
|
|
|
2008-06-03 20:46:15 +00:00
|
|
|
if BUILD_NVIDIA
|
|
|
|
nvidia = nvidia.c nvidia.h
|
|
|
|
endif
|
|
|
|
|
2009-05-06 03:45:05 +00:00
|
|
|
if BUILD_IMLIB2
|
|
|
|
imlib2 = imlib2.c imlib2.h
|
|
|
|
endif
|
|
|
|
|
2009-05-10 18:58:06 +00:00
|
|
|
if BUILD_APCUPSD
|
|
|
|
apcupsd = apcupsd.c apcupsd.h
|
|
|
|
endif
|
|
|
|
|
2009-02-22 17:35:47 +00:00
|
|
|
conky_SOURCES = \
|
2008-12-12 14:33:25 +00:00
|
|
|
$(config_output) \
|
2008-12-14 13:36:44 +00:00
|
|
|
$(config_cookie) \
|
2006-11-03 20:54:52 +00:00
|
|
|
$(audacious) \
|
|
|
|
$(bmpx) \
|
2009-02-22 16:53:30 +00:00
|
|
|
colours.c \
|
|
|
|
colours.h \
|
2009-02-22 17:35:47 +00:00
|
|
|
common.c \
|
2006-11-03 20:54:52 +00:00
|
|
|
conky.c \
|
|
|
|
conky.h \
|
2009-08-05 22:46:51 +00:00
|
|
|
core.c \
|
|
|
|
core.h \
|
2006-11-03 20:54:52 +00:00
|
|
|
$(freebsd) \
|
2009-02-22 17:35:47 +00:00
|
|
|
fs.c \
|
|
|
|
$(hddtemp) \
|
2009-05-10 18:58:06 +00:00
|
|
|
$(apcupsd) \
|
2009-02-22 17:35:47 +00:00
|
|
|
$(linux) \
|
2008-12-15 21:40:24 +00:00
|
|
|
logging.h \
|
2009-02-22 17:35:47 +00:00
|
|
|
$(nvidia) \
|
|
|
|
mail.c \
|
|
|
|
mixer.c \
|
2006-11-03 20:54:52 +00:00
|
|
|
$(mpd) \
|
2009-02-22 17:35:47 +00:00
|
|
|
$(moc) \
|
2006-11-03 20:54:52 +00:00
|
|
|
$(netbsd) \
|
2007-03-01 01:43:43 +00:00
|
|
|
$(openbsd) \
|
2006-11-03 20:54:52 +00:00
|
|
|
$(port_monitors) \
|
2009-02-22 17:35:47 +00:00
|
|
|
$(eve) \
|
|
|
|
$(rss) \
|
2009-07-06 22:20:12 +00:00
|
|
|
$(weather) \
|
2009-07-20 05:43:36 +00:00
|
|
|
$(lua) \
|
2009-02-22 17:35:47 +00:00
|
|
|
$(solaris) \
|
|
|
|
timed_thread.c \
|
|
|
|
timed_thread.h \
|
|
|
|
mboxscan.c \
|
|
|
|
mboxscan.h \
|
2006-11-03 20:54:52 +00:00
|
|
|
$(x11) \
|
2009-02-22 17:35:47 +00:00
|
|
|
$(xmms2) \
|
2009-01-03 23:00:52 +00:00
|
|
|
$(ibm) \
|
2009-02-22 16:53:30 +00:00
|
|
|
specials.c \
|
|
|
|
specials.h \
|
2009-01-05 12:11:13 +00:00
|
|
|
tailhead.c \
|
|
|
|
tailhead.h \
|
2008-12-07 19:08:29 +00:00
|
|
|
temphelper.c \
|
2008-12-15 17:31:23 +00:00
|
|
|
temphelper.h \
|
2008-12-15 18:09:57 +00:00
|
|
|
text_object.h \
|
2008-12-20 01:31:00 +00:00
|
|
|
text_object.c \
|
|
|
|
algebra.h \
|
2009-07-20 05:43:36 +00:00
|
|
|
algebra.c \
|
|
|
|
$(imlib2) \
|
|
|
|
$(ccurl_thread)
|
2005-08-21 23:09:36 +00:00
|
|
|
|
2009-02-22 17:35:47 +00:00
|
|
|
conky_LDFLAGS = \
|
|
|
|
$(PTHREAD_LIBS) \
|
2008-07-01 01:26:02 +00:00
|
|
|
-lm
|
2005-08-21 23:09:36 +00:00
|
|
|
|
2009-02-22 17:35:47 +00:00
|
|
|
EXTRA_DIST = \
|
2008-12-12 14:33:25 +00:00
|
|
|
$(config_output) \
|
2008-12-14 13:36:44 +00:00
|
|
|
$(config_cookie) \
|
2009-02-22 17:35:47 +00:00
|
|
|
audacious.c \
|
|
|
|
audacious.h \
|
|
|
|
bmpx.c \
|
2009-02-22 16:53:30 +00:00
|
|
|
colours.c \
|
|
|
|
colours.h \
|
2009-02-22 17:35:47 +00:00
|
|
|
common.h \
|
2009-02-22 16:53:30 +00:00
|
|
|
fonts.c \
|
|
|
|
fonts.h \
|
2009-02-22 17:35:47 +00:00
|
|
|
freebsd.c \
|
|
|
|
freebsd.h \
|
|
|
|
fs.h \
|
|
|
|
hddtemp.c \
|
|
|
|
hddtemp.h \
|
2009-05-10 18:58:06 +00:00
|
|
|
apcupsd.c \
|
|
|
|
apcupsd.h \
|
2009-02-22 17:35:47 +00:00
|
|
|
linux.c \
|
|
|
|
linux.h \
|
2006-11-03 20:54:52 +00:00
|
|
|
libmpdclient.c \
|
|
|
|
libmpdclient.h \
|
2009-02-22 17:35:47 +00:00
|
|
|
libtcp-portmon.c \
|
|
|
|
libtcp-portmon.h \
|
|
|
|
rss.h \
|
2009-07-20 05:43:36 +00:00
|
|
|
prss.h \
|
|
|
|
weather.h \
|
|
|
|
llua.h \
|
2009-02-22 17:35:47 +00:00
|
|
|
mail.h \
|
|
|
|
mixer.h \
|
|
|
|
moc.h \
|
|
|
|
moc.c \
|
|
|
|
mpd.c \
|
|
|
|
mpd.h \
|
|
|
|
netbsd.c \
|
|
|
|
nvidia.c \
|
|
|
|
nvidia.h \
|
|
|
|
openbsd.c \
|
|
|
|
openbsd.h \
|
|
|
|
solaris.c \
|
2009-02-22 16:53:30 +00:00
|
|
|
specials.c \
|
|
|
|
specials.h \
|
2009-01-05 12:11:13 +00:00
|
|
|
tailhead.c \
|
|
|
|
tailhead.h \
|
2006-11-03 20:54:52 +00:00
|
|
|
top.h \
|
2008-02-09 02:21:06 +00:00
|
|
|
diskio.h \
|
2009-02-22 17:35:47 +00:00
|
|
|
x11.c \
|
|
|
|
x11.h \
|
2008-03-18 00:23:16 +00:00
|
|
|
xmms2.c \
|
2008-07-30 02:03:42 +00:00
|
|
|
xmms2.h \
|
2009-02-22 17:35:47 +00:00
|
|
|
smapi.c \
|
2009-01-03 23:00:52 +00:00
|
|
|
smapi.h \
|
|
|
|
ibm.c \
|
|
|
|
ibm.h \
|
2009-05-04 19:13:51 +00:00
|
|
|
sony.h \
|
2009-07-20 05:43:36 +00:00
|
|
|
users.c \
|
|
|
|
imlib2.c \
|
|
|
|
imlib2.h \
|
|
|
|
ccurl_thread.h
|
2008-06-15 18:38:33 +00:00
|
|
|
|
2007-01-08 01:10:12 +00:00
|
|
|
|
2009-07-27 20:47:19 +00:00
|
|
|
# vi:set ts=4 sw=4 noet ai nocindent syntax=automake:
|