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