Added support for $weather (experimental).
[monky] / src / Makefile.am
1 # Conky, a system monitor, based on torsmo
2 #
3 # Any original torsmo code is licensed under the BSD license
4 #
5 # All code written since the fork of torsmo is licensed under the GPL
6 #
7 # Please see COPYING for details
8 #
9 # Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
10 # Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
11 # All rights reserved.
12 #
13 # This program is free software: you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation, either version 3 of the License, or
16 # (at your option) any later version.
17 #
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 # GNU General Public License for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
24 #
25
26 INCLUDES = -DSYSTEM_CONFIG_FILE=\"$(sysconfdir)/conky/conky.conf\"
27
28 bin_PROGRAMS = conky
29
30 if BUILD_CONFIG_OUTPUT
31 config_output = defconfig.h
32 config_cookie = conf_cookie.c conf_cookie.h
33 if BUILD_X11
34 config_input = ../data/conky.conf
35 else
36 config_input = ../data/conky_no_x11.conf
37 endif
38
39 conky_DEPENDENCIES = $(config_output)
40 BUILT_SOURCES = $(config_output)
41 CLEANFILES = $(config_output)
42
43 $(config_output): ${config_input}
44         sh ../text2c.sh ${config_input} $@ defconfig
45 endif # BUILD_CONFIG_OUTPUT
46
47 if BUILD_AUDACIOUS
48 audacious = audacious.c audacious.h
49 endif
50
51 if BUILD_BMPX
52 bmpx = bmpx.c
53 endif
54
55 if BUILD_IBM
56 ibm = ibm.c ibm.h smapi.c smapi.h
57 endif
58
59 if BUILD_MPD
60 mpd = mpd.c libmpdclient.c
61 endif
62
63 if BUILD_MOC
64 moc = moc.c
65 endif
66
67 if BUILD_XMMS2
68 xmms2 = xmms2.c
69 endif
70
71 if BUILD_LINUX
72 linux = linux.c top.c diskio.c users.c sony.c
73 PTHREAD_LIBS =  -lpthread
74 endif
75
76 #if BUILD_SOLARIS
77 #solaris = solaris.c
78 #endif
79
80 if BUILD_FREEBSD
81 freebsd = freebsd.c diskio.c
82 PTHREAD_LIBS =  -pthread
83 endif
84
85 #if BUILD_NETBSD
86 #netbsd = netbsd.c
87 #endif
88
89 if BUILD_OPENBSD
90 openbsd = openbsd.c
91 PTHREAD_LIBS =  -pthread
92 endif
93
94 if BUILD_PORT_MONITORS
95 port_monitors = libtcp-portmon.h libtcp-portmon.c \
96                 tcp-portmon.h tcp-portmon.c
97 endif
98
99 if BUILD_X11
100 x11 = x11.c fonts.c
101 endif
102
103 if BUILD_HDDTEMP
104 hddtemp = hddtemp.c
105 endif
106
107 if BUILD_EVE
108 eve = eve.c eve.h
109 endif
110
111 if BUILD_RSS
112 rss = rss.c prss.c prss.h
113 endif
114
115 if BUILD_WEATHER
116 weather = weather.c weather.h
117 endif
118
119 if BUILD_LUA
120 lua = llua.c llua.h
121 endif
122
123 if BUILD_NVIDIA
124 nvidia = nvidia.c nvidia.h
125 endif
126
127 if BUILD_IMLIB2
128 imlib2 = imlib2.c imlib2.h
129 endif
130
131 if BUILD_APCUPSD
132 apcupsd = apcupsd.c apcupsd.h
133 endif
134
135 conky_SOURCES = \
136         $(config_output)        \
137         $(config_cookie)        \
138         $(audacious)            \
139         $(bmpx)                 \
140         colours.c               \
141         colours.h               \
142         common.c                \
143         conky.c                 \
144         conky.h                 \
145         $(freebsd)              \
146         fs.c                    \
147         $(hddtemp)              \
148         $(apcupsd)              \
149         $(linux)                \
150         logging.h               \
151         $(nvidia)               \
152         mail.c                  \
153         mixer.c                 \
154         $(mpd)                  \
155         $(moc)                  \
156         $(netbsd)               \
157         $(openbsd)              \
158         $(port_monitors)        \
159         $(eve)                  \
160         $(rss)                  \
161         $(weather)              \
162         $(lua)                  \
163         $(solaris)              \
164         timed_thread.c          \
165         timed_thread.h          \
166         mboxscan.c              \
167         mboxscan.h              \
168         $(x11)                  \
169         $(xmms2)                \
170         $(ibm)                  \
171         specials.c              \
172         specials.h              \
173         tailhead.c              \
174         tailhead.h              \
175         temphelper.c            \
176         temphelper.h            \
177         text_object.h           \
178         text_object.c           \
179         algebra.h               \
180         algebra.c               \
181         $(imlib2)
182
183 conky_LDFLAGS = \
184         $(PTHREAD_LIBS) \
185         -lm
186
187 EXTRA_DIST = \
188         $(config_output)        \
189         $(config_cookie)        \
190         audacious.c             \
191         audacious.h             \
192         bmpx.c                  \
193         colours.c               \
194         colours.h               \
195         common.h                \
196         fonts.c                 \
197         fonts.h                 \
198         freebsd.c               \
199         freebsd.h               \
200         fs.h                    \
201         hddtemp.c               \
202         hddtemp.h               \
203         apcupsd.c               \
204         apcupsd.h               \
205         linux.c                 \
206         linux.h                 \
207         libmpdclient.c          \
208         libmpdclient.h          \
209         libtcp-portmon.c        \
210         libtcp-portmon.h        \
211         rss.h                   \
212         weather.h               \
213         llua.h                  \
214         mail.h                  \
215         mixer.h                 \
216         moc.h                   \
217         moc.c                   \
218         mpd.c                   \
219         mpd.h                   \
220         netbsd.c                \
221         nvidia.c                \
222         nvidia.h                \
223         openbsd.c               \
224         openbsd.h               \
225         solaris.c               \
226         specials.c              \
227         specials.h              \
228         tailhead.c              \
229         tailhead.h              \
230         top.h                   \
231         diskio.h                \
232         x11.c                   \
233         x11.h                   \
234         xmms2.c                 \
235         xmms2.h                 \
236         smapi.c                 \
237         smapi.h                 \
238         ibm.c                   \
239         ibm.h                   \
240         sony.h                  \
241         users.c                 \
242         imlib2.c                \
243         imlib2.h
244
245
246 # vi:set ts=8 sw=8 noet ai nocindent syntax=automake: