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