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