Add vim modelines.
[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\" -DPACKAGE_LIBDIR=\"$(pkglibdir)\"
27
28 bin_PROGRAMS = conky
29
30 LIBS = ${conky_LIBS}
31
32 if BUILD_CONFIG_OUTPUT
33 config_output = defconfig.h
34 config_cookie = conf_cookie.c conf_cookie.h
35 if BUILD_X11
36 config_input = ../data/conky.conf
37 else
38 config_input = ../data/conky_no_x11.conf
39 endif
40
41 conky_DEPENDENCIES = $(config_output)
42 BUILT_SOURCES = $(config_output)
43 CLEANFILES = $(config_output)
44
45 $(config_output): ${config_input}
46         sh $(srcdir)/../text2c.sh ${config_input} $@ defconfig
47 endif # BUILD_CONFIG_OUTPUT
48
49 if BUILD_AUDACIOUS
50 audacious = audacious.c audacious.h
51 endif
52
53 if BUILD_BMPX
54 bmpx = bmpx.c
55 endif
56
57 if BUILD_IBM
58 ibm = ibm.c ibm.h smapi.c smapi.h
59 endif
60
61 if BUILD_MPD
62 mpd = mpd.c libmpdclient.c
63 endif
64
65 if BUILD_MOC
66 moc = moc.c
67 endif
68
69 if BUILD_XMMS2
70 xmms2 = xmms2.c
71 endif
72
73 if BUILD_LINUX
74 linux = linux.c top.c diskio.c users.c sony.c
75 PTHREAD_LIBS =  -lpthread
76 endif
77
78 #if BUILD_SOLARIS
79 #solaris = solaris.c
80 #endif
81
82 if BUILD_FREEBSD
83 freebsd = freebsd.c diskio.c
84 PTHREAD_LIBS =  -pthread
85 endif
86
87 #if BUILD_NETBSD
88 #netbsd = netbsd.c
89 #endif
90
91 if BUILD_OPENBSD
92 openbsd = openbsd.c
93 PTHREAD_LIBS =  -pthread
94 endif
95
96 if BUILD_PORT_MONITORS
97 port_monitors = libtcp-portmon.h libtcp-portmon.c \
98                 tcp-portmon.h tcp-portmon.c
99 endif
100
101 if BUILD_X11
102 x11 = x11.c fonts.c
103 endif
104
105 if BUILD_HDDTEMP
106 hddtemp = hddtemp.c
107 endif
108
109 if BUILD_EVE
110 eve = eve.c eve.h
111 endif
112
113 if BUILD_CURL
114 ccurl_thread = ccurl_thread.c ccurl_thread.h
115 endif
116
117 if BUILD_RSS
118 rss = rss.c prss.c prss.h
119 endif
120
121 if BUILD_WEATHER
122 weather = weather.c weather.h
123 endif
124
125 if BUILD_LUA
126 lua = llua.c llua.h
127 endif
128
129 if BUILD_NVIDIA
130 nvidia = nvidia.c nvidia.h
131 endif
132
133 if BUILD_IMLIB2
134 imlib2 = imlib2.c imlib2.h
135 endif
136
137 if BUILD_APCUPSD
138 apcupsd = apcupsd.c apcupsd.h
139 endif
140
141 conky_SOURCES = \
142         $(config_output)        \
143         $(config_cookie)        \
144         $(audacious)            \
145         $(bmpx)                 \
146         colours.c               \
147         colours.h               \
148         common.c                \
149         conky.c                 \
150         conky.h                 \
151         $(freebsd)              \
152         fs.c                    \
153         $(hddtemp)              \
154         $(apcupsd)              \
155         $(linux)                \
156         logging.h               \
157         $(nvidia)               \
158         mail.c                  \
159         mixer.c                 \
160         $(mpd)                  \
161         $(moc)                  \
162         $(netbsd)               \
163         $(openbsd)              \
164         $(port_monitors)        \
165         $(eve)                  \
166         $(rss)                  \
167         $(weather)              \
168         $(lua)                  \
169         $(solaris)              \
170         timed_thread.c          \
171         timed_thread.h          \
172         mboxscan.c              \
173         mboxscan.h              \
174         $(x11)                  \
175         $(xmms2)                \
176         $(ibm)                  \
177         specials.c              \
178         specials.h              \
179         tailhead.c              \
180         tailhead.h              \
181         temphelper.c            \
182         temphelper.h            \
183         text_object.h           \
184         text_object.c           \
185         algebra.h               \
186         algebra.c               \
187         $(imlib2)               \
188         $(ccurl_thread)
189
190 conky_LDFLAGS = \
191         $(PTHREAD_LIBS) \
192         -lm
193
194 EXTRA_DIST = \
195         $(config_output)        \
196         $(config_cookie)        \
197         audacious.c             \
198         audacious.h             \
199         bmpx.c                  \
200         colours.c               \
201         colours.h               \
202         common.h                \
203         fonts.c                 \
204         fonts.h                 \
205         freebsd.c               \
206         freebsd.h               \
207         fs.h                    \
208         hddtemp.c               \
209         hddtemp.h               \
210         apcupsd.c               \
211         apcupsd.h               \
212         linux.c                 \
213         linux.h                 \
214         libmpdclient.c          \
215         libmpdclient.h          \
216         libtcp-portmon.c        \
217         libtcp-portmon.h        \
218         rss.h                   \
219         prss.h                  \
220         weather.h               \
221         llua.h                  \
222         mail.h                  \
223         mixer.h                 \
224         moc.h                   \
225         moc.c                   \
226         mpd.c                   \
227         mpd.h                   \
228         netbsd.c                \
229         nvidia.c                \
230         nvidia.h                \
231         openbsd.c               \
232         openbsd.h               \
233         solaris.c               \
234         specials.c              \
235         specials.h              \
236         tailhead.c              \
237         tailhead.h              \
238         top.h                   \
239         diskio.h                \
240         x11.c                   \
241         x11.h                   \
242         xmms2.c                 \
243         xmms2.h                 \
244         smapi.c                 \
245         smapi.h                 \
246         ibm.c                   \
247         ibm.h                   \
248         sony.h                  \
249         users.c                 \
250         imlib2.c                \
251         imlib2.h                \
252         ccurl_thread.h
253
254
255 # vi:set ts=4 sw=4 noet ai nocindent syntax=automake: