Merge branch 'master' into imlib2
[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_NVIDIA
115 nvidia = nvidia.c nvidia.h
116 endif
117
118 if BUILD_IMLIB2
119 imlib2 = imlib2.c imlib2.h
120 endif
121
122 if BUILD_APCUPSD
123 apcupsd = apcupsd.c apcupsd.h
124 endif
125
126 conky_SOURCES = \
127         $(config_output)        \
128         $(config_cookie)        \
129         $(audacious)            \
130         $(bmpx)                 \
131         colours.c               \
132         colours.h               \
133         common.c                \
134         conky.c                 \
135         conky.h                 \
136         $(freebsd)              \
137         fs.c                    \
138         $(hddtemp)              \
139         $(apcupsd)              \
140         $(linux)                \
141         logging.h               \
142         $(nvidia)               \
143         mail.c                  \
144         mixer.c                 \
145         $(mpd)                  \
146         $(moc)                  \
147         $(netbsd)               \
148         $(openbsd)              \
149         $(port_monitors)        \
150         $(eve)                  \
151         $(rss)                  \
152         $(solaris)              \
153         timed_thread.c          \
154         timed_thread.h          \
155         mboxscan.c              \
156         mboxscan.h              \
157         $(x11)                  \
158         $(xmms2)                \
159         $(ibm)                  \
160         specials.c              \
161         specials.h              \
162         tailhead.c              \
163         tailhead.h              \
164         temphelper.c            \
165         temphelper.h            \
166         text_object.h           \
167         text_object.c           \
168         algebra.h               \
169         algebra.c               \
170         $(imlib2)
171
172 conky_LDFLAGS = \
173         $(PTHREAD_LIBS) \
174         -lm
175
176 EXTRA_DIST = \
177         $(config_output)        \
178         $(config_cookie)        \
179         audacious.c             \
180         audacious.h             \
181         bmpx.c                  \
182         colours.c               \
183         colours.h               \
184         common.h                \
185         fonts.c                 \
186         fonts.h                 \
187         freebsd.c               \
188         freebsd.h               \
189         fs.h                    \
190         hddtemp.c               \
191         hddtemp.h               \
192         apcupsd.c               \
193         apcupsd.h               \
194         linux.c                 \
195         linux.h                 \
196         libmpdclient.c          \
197         libmpdclient.h          \
198         libtcp-portmon.c        \
199         libtcp-portmon.h        \
200         rss.h                   \
201         mail.h                  \
202         mixer.h                 \
203         moc.h                   \
204         moc.c                   \
205         mpd.c                   \
206         mpd.h                   \
207         netbsd.c                \
208         nvidia.c                \
209         nvidia.h                \
210         openbsd.c               \
211         openbsd.h               \
212         solaris.c               \
213         specials.c              \
214         specials.h              \
215         tailhead.c              \
216         tailhead.h              \
217         top.h                   \
218         diskio.h                \
219         x11.c                   \
220         x11.h                   \
221         xmms2.c                 \
222         xmms2.h                 \
223         smapi.c                 \
224         smapi.h                 \
225         ibm.c                   \
226         ibm.h                   \
227         sony.h                  \
228         users.c                 \
229         imlib2.c                \
230         imlib2.h
231
232
233 # vi:set ts=8 sw=8 noet ai nocindent syntax=automake: