outsource ibm-acpi stuff into it's own source file
[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-2007 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): ../doc/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
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
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
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_SMAPI
111 smapi = smapi.c smapi.h
112 endif
113
114 if BUILD_NVIDIA
115 nvidia = nvidia.c nvidia.h
116 endif
117
118 conky_SOURCES =                 \
119         $(config_output)        \
120         $(config_cookie)        \
121         $(audacious)            \
122         $(bmpx)                 \
123         common.c                \
124         conky.c                 \
125         conky.h                 \
126         $(freebsd)              \
127         fs.c                    \
128         $(hddtemp)              \
129         $(linux)                \
130         logging.h               \
131         $(nvidia)               \
132         mail.c                  \
133         mixer.c                 \
134         $(mpd)                  \
135   $(moc) \
136         $(netbsd)               \
137         $(openbsd)              \
138         $(port_monitors)        \
139         $(eve)                  \
140         $(rss)                  \
141         $(solaris)              \
142         timed_thread.c          \
143         timed_thread.h          \
144         mboxscan.c              \
145         mboxscan.h              \
146         $(x11)                  \
147         $(xmms2)                \
148         $(smapi)                \
149         $(ibm)                  \
150         temphelper.c            \
151         temphelper.h            \
152         text_object.h           \
153         text_object.c           \
154         algebra.h               \
155         algebra.c
156
157 conky_LDFLAGS =                                 \
158         $(PTHREAD_LIBS)                         \
159         -lm
160
161 EXTRA_DIST =                    \
162         $(config_output)        \
163         $(config_cookie)        \
164         audacious.c             \
165         audacious.h             \
166         bmpx.c                  \
167         common.h                \
168         freebsd.c               \
169         freebsd.h               \
170         fs.h                    \
171         hddtemp.c               \
172         hddtemp.h               \
173         linux.c                 \
174         linux.h                 \
175         libmpdclient.c          \
176         libmpdclient.h          \
177         libtcp-portmon.c        \
178         libtcp-portmon.h        \
179         rss.h                   \
180         mail.h                  \
181         mixer.h                 \
182         moc.h                   \
183         moc.c                   \
184         mpd.c                   \
185         mpd.h                   \
186         netbsd.c                \
187         nvidia.c                \
188         nvidia.h                \
189         openbsd.c               \
190         openbsd.h               \
191         solaris.c               \
192         top.h                   \
193         diskio.h                \
194         x11.c                   \
195         x11.h                   \
196         xmms2.c                 \
197         xmms2.h                 \
198         smapi.c                 \
199         smapi.h                 \
200         ibm.c                   \
201         ibm.h                   \
202         users.c
203
204
205 # vi:set ts=8 sw=8 noet ai nocindent syntax=automake: