here comes the big header include rewrite
[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_MPD
51 mpd = mpd.c libmpdclient.c
52 endif
53
54 if BUILD_MOC
55 moc = moc.c
56 endif
57
58 if BUILD_XMMS2
59 xmms2 = xmms2.c
60 endif
61
62 if BUILD_LINUX
63 linux = linux.c top.c diskio.c users.c
64 PTHREAD_LIBS =  -lpthread
65 endif
66
67 #if BUILD_SOLARIS
68 #solaris = solaris.c
69 #endif
70
71 if BUILD_FREEBSD
72 freebsd = freebsd.c
73 PTHREAD_LIBS =  -pthread
74 endif
75
76 #if BUILD_NETBSD
77 #netbsd = netbsd.c
78 #endif
79
80 if BUILD_OPENBSD
81 openbsd = openbsd.c
82 PTHREAD_LIBS =  -pthread
83 endif
84
85 if BUILD_PORT_MONITORS
86 port_monitors = libtcp-portmon.h libtcp-portmon.c \
87                 tcp-portmon.h tcp-portmon.c
88 endif
89
90 if BUILD_X11
91 x11 = x11.c
92 endif
93
94 if BUILD_HDDTEMP
95 hddtemp = hddtemp.c
96 endif
97
98 if BUILD_EVE
99 eve = eve.c eve.h
100 endif
101
102 if BUILD_RSS
103 rss = rss.c prss.c prss.h
104 endif
105
106 if BUILD_SMAPI
107 smapi = smapi.c smapi.h
108 endif
109
110 if BUILD_NVIDIA
111 nvidia = nvidia.c nvidia.h
112 endif
113
114 conky_SOURCES =                 \
115         $(config_output)        \
116         $(config_cookie)        \
117         $(audacious)            \
118         $(bmpx)                 \
119         common.c                \
120         conky.c                 \
121         conky.h                 \
122         $(freebsd)              \
123         fs.c                    \
124         $(hddtemp)              \
125         $(linux)                \
126         logging.h               \
127         $(nvidia)               \
128         mail.c                  \
129         mixer.c                 \
130         $(mpd)                  \
131   $(moc) \
132         $(netbsd)               \
133         $(openbsd)              \
134         $(port_monitors)        \
135         $(eve)                  \
136         $(rss)                  \
137         $(solaris)              \
138         timed_thread.c          \
139         timed_thread.h          \
140         mboxscan.c              \
141         mboxscan.h              \
142         $(x11)                  \
143         $(xmms2)                \
144         $(smapi)                \
145         temphelper.c            \
146         temphelper.h            \
147         text_object.h           \
148         text_object.c
149
150 conky_LDFLAGS =                                 \
151         $(PTHREAD_LIBS)                         \
152         -lm
153
154 EXTRA_DIST =                    \
155         $(config_output)        \
156         $(config_cookie)        \
157         audacious.c             \
158         audacious.h             \
159         bmpx.c                  \
160         common.h                \
161         freebsd.c               \
162         freebsd.h               \
163         fs.h                    \
164         hddtemp.c               \
165         hddtemp.h               \
166         linux.c                 \
167         linux.h                 \
168         libmpdclient.c          \
169         libmpdclient.h          \
170         libtcp-portmon.c        \
171         libtcp-portmon.h        \
172         rss.h                   \
173         mail.h                  \
174         mixer.h                 \
175         moc.h                   \
176         moc.c                   \
177         mpd.c                   \
178         mpd.h                   \
179         netbsd.c                \
180         nvidia.c                \
181         nvidia.h                \
182         openbsd.c               \
183         openbsd.h               \
184         solaris.c               \
185         top.h                   \
186         diskio.h                \
187         x11.c                   \
188         x11.h                   \
189         xmms2.c                 \
190         xmms2.h                 \
191         smapi.c                 \
192         users.c
193
194
195 # vi:set ts=8 sw=8 noet ai nocindent syntax=automake: