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