X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2FMakefile.am;h=36ab8f51bec13818ecb0af3f9088a8f982aceea1;hb=ff199355f66216600c4bdc6bec4743afe5b61470;hp=04299481ef3e0dd58b4fc578149c54e2935c42cd;hpb=6776714d9aba4dbf0d863b9020b7be641cc4ac55;p=monky diff --git a/src/Makefile.am b/src/Makefile.am index 0429948..36ab8f5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,53 @@ +# -*- mode: Makefile; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- +# +# 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 +# Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) +# 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 . +# + +INCLUDES = -DSYSTEM_CONFIG_FILE=\"$(sysconfdir)/conky/conky.conf\" -DPACKAGE_LIBDIR=\"$(pkglibdir)\" + bin_PROGRAMS = conky +LIBS = ${conky_LIBS} + +if BUILD_CONFIG_OUTPUT +config_output = defconfig.h +config_cookie = conf_cookie.c conf_cookie.h +if BUILD_X11 +config_input = $(srcdir)/../data/conky.conf +else +config_input = $(srcdir)/../data/conky_no_x11.conf +endif + +conky_DEPENDENCIES = $(config_output) +BUILT_SOURCES = $(config_output) +CLEANFILES = $(config_output) + +$(config_output): ${config_input} + sh $(srcdir)/../text2c.sh ${config_input} $@ defconfig +endif # BUILD_CONFIG_OUTPUT + if BUILD_AUDACIOUS audacious = audacious.c audacious.h endif @@ -8,16 +56,24 @@ if BUILD_BMPX bmpx = bmpx.c endif +if BUILD_IBM +ibm = ibm.c ibm.h smapi.c smapi.h +endif + if BUILD_MPD mpd = mpd.c libmpdclient.c endif +if BUILD_MOC +moc = moc.c +endif + if BUILD_XMMS2 xmms2 = xmms2.c endif if BUILD_LINUX -linux = linux.c top.c +linux = linux.c top.c diskio.c users.c sony.c PTHREAD_LIBS = -lpthread endif @@ -26,7 +82,7 @@ endif #endif if BUILD_FREEBSD -freebsd = freebsd.c +freebsd = freebsd.c diskio.c PTHREAD_LIBS = -pthread endif @@ -34,57 +90,174 @@ endif #netbsd = netbsd.c #endif +if BUILD_OPENBSD +openbsd = openbsd.c +PTHREAD_LIBS = -pthread +endif + if BUILD_PORT_MONITORS -port_monitors = libtcp-portmon.h libtcp-portmon.c +port_monitors = libtcp-portmon.h libtcp-portmon.c \ + tcp-portmon.h tcp-portmon.c endif if BUILD_X11 -x11 = x11.c +x11 = x11.c fonts.c endif if BUILD_HDDTEMP hddtemp = hddtemp.c endif -conky_SOURCES = \ +if BUILD_EVE +eve = eve.c eve.h +endif + +if BUILD_CURL +ccurl_thread = ccurl_thread.c ccurl_thread.h +endif + +if BUILD_RSS +rss = rss.c prss.c prss.h +endif + +if BUILD_WEATHER +weather = weather.c weather.h +endif + +if BUILD_LUA +lua = llua.c llua.h +endif + +if BUILD_NVIDIA +nvidia = nvidia.c nvidia.h +endif + +if BUILD_IMLIB2 +imlib2 = imlib2.c imlib2.h +endif + +if BUILD_APCUPSD +apcupsd = apcupsd.c apcupsd.h +endif + +conky_SOURCES = \ + $(config_output) \ + $(config_cookie) \ $(audacious) \ $(bmpx) \ - common.c \ + colours.c \ + colours.h \ + common.c \ conky.c \ conky.h \ + core.c \ + core.h \ $(freebsd) \ - fs.c \ - $(hddtemp) \ - $(linux) \ - mail.c \ - mixer.c \ + fs.c \ + $(hddtemp) \ + $(apcupsd) \ + $(linux) \ + logging.h \ + $(nvidia) \ + mail.c \ + mixer.c \ $(mpd) \ + $(moc) \ $(netbsd) \ + $(openbsd) \ $(port_monitors) \ - $(solaris) \ - timed_thread.c \ - timed_thread.h \ + $(eve) \ + $(rss) \ + $(weather) \ + $(lua) \ + $(solaris) \ + template.c \ + template.h \ + timed_thread.c \ + timed_thread.h \ + mboxscan.c \ + mboxscan.h \ $(x11) \ - $(xmms2) + $(xmms2) \ + $(ibm) \ + specials.c \ + specials.h \ + tailhead.c \ + tailhead.h \ + temphelper.c \ + temphelper.h \ + text_object.h \ + text_object.c \ + algebra.h \ + algebra.c \ + $(imlib2) \ + $(ccurl_thread) -AM_LDFLAGS = $(PTHREAD_LIBS) -lm +conky_LDFLAGS = \ + $(PTHREAD_LIBS) \ + -lm -EXTRA_DIST = \ - audacious.c \ - audacious.h \ - bmpx.c \ - freebsd.c \ - hddtemp.c \ - linux.c \ +EXTRA_DIST = \ + $(config_output) \ + $(config_cookie) \ + audacious.c \ + audacious.h \ + bmpx.c \ + colours.c \ + colours.h \ + common.h \ + fonts.c \ + fonts.h \ + freebsd.c \ + freebsd.h \ + fs.h \ + hddtemp.c \ + hddtemp.h \ + apcupsd.c \ + apcupsd.h \ + linux.c \ + linux.h \ libmpdclient.c \ libmpdclient.h \ - libtcp-portmon.c \ - libtcp-portmon.h \ - mpd.c \ - netbsd.c \ - solaris.c \ + libtcp-portmon.c \ + libtcp-portmon.h \ + rss.h \ + prss.h \ + weather.h \ + llua.h \ + mail.h \ + mixer.h \ + moc.h \ + moc.c \ + mpd.c \ + mpd.h \ + netbsd.c \ + nvidia.c \ + nvidia.h \ + openbsd.c \ + openbsd.h \ + solaris.c \ + specials.c \ + specials.h \ + tailhead.c \ + tailhead.h \ + template.c \ + template.h \ top.h \ + diskio.h \ x11.c \ - xmms2.c + x11.h \ + xmms2.c \ + xmms2.h \ + smapi.c \ + smapi.h \ + ibm.c \ + ibm.h \ + sony.h \ + users.c \ + imlib2.c \ + imlib2.h \ + ccurl_thread.h + -# vi:set ts=8 sw=8 noet ai nocindent syntax=automake: +# vi:set ts=4 sw=4 noet ai nocindent syntax=automake: