Use a builtin config without X11-support when compiled without it
[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_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         $(solaris)              \
149         timed_thread.c          \
150         timed_thread.h          \
151         mboxscan.c              \
152         mboxscan.h              \
153         $(x11)                  \
154         $(xmms2)                \
155         $(ibm)                  \
156         specials.c              \
157         specials.h              \
158         tailhead.c              \
159         tailhead.h              \
160         temphelper.c            \
161         temphelper.h            \
162         text_object.h           \
163         text_object.c           \
164         algebra.h               \
165         algebra.c
166
167 conky_LDFLAGS = \
168         $(PTHREAD_LIBS) \
169         -lm
170
171 EXTRA_DIST = \
172         $(config_output)        \
173         $(config_cookie)        \
174         audacious.c             \
175         audacious.h             \
176         bmpx.c                  \
177         colours.c               \
178         colours.h               \
179         common.h                \
180         fonts.c                 \
181         fonts.h                 \
182         freebsd.c               \
183         freebsd.h               \
184         fs.h                    \
185         hddtemp.c               \
186         hddtemp.h               \
187         apcupsd.c               \
188         apcupsd.h               \
189         linux.c                 \
190         linux.h                 \
191         libmpdclient.c          \
192         libmpdclient.h          \
193         libtcp-portmon.c        \
194         libtcp-portmon.h        \
195         rss.h                   \
196         mail.h                  \
197         mixer.h                 \
198         moc.h                   \
199         moc.c                   \
200         mpd.c                   \
201         mpd.h                   \
202         netbsd.c                \
203         nvidia.c                \
204         nvidia.h                \
205         openbsd.c               \
206         openbsd.h               \
207         solaris.c               \
208         specials.c              \
209         specials.h              \
210         tailhead.c              \
211         tailhead.h              \
212         top.h                   \
213         diskio.h                \
214         x11.c                   \
215         x11.h                   \
216         xmms2.c                 \
217         xmms2.h                 \
218         smapi.c                 \
219         smapi.h                 \
220         ibm.c                   \
221         ibm.h                   \
222         sony.h                  \
223         users.c
224
225
226 # vi:set ts=8 sw=8 noet ai nocindent syntax=automake: