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