Add libgnu convenience lib, modules stdio and getaddrinfo.
[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 # $Id$
26
27 INCLUDES =                              \
28         -I$(top_builddir)/libgnu        \
29         -I$(top_srcdir)/libgnu          \
30         -DSYSTEM_CONFIG_FILE=\"$(sysconfdir)/conky/conky.conf\"
31
32 bin_PROGRAMS = conky
33
34 if BUILD_AUDACIOUS
35 audacious = audacious.c audacious.h
36 endif
37
38 if BUILD_BMPX
39 bmpx = bmpx.c
40 endif
41
42 if BUILD_MPD
43 mpd = mpd.c libmpdclient.c
44 endif
45
46 if BUILD_XMMS2
47 xmms2 = xmms2.c
48 endif
49
50 if BUILD_LINUX
51 linux = linux.c top.c diskio.c users.c
52 PTHREAD_LIBS =  -lpthread
53 endif
54
55 #if BUILD_SOLARIS
56 #solaris = solaris.c
57 #endif
58
59 if BUILD_FREEBSD
60 freebsd = freebsd.c
61 PTHREAD_LIBS =  -pthread
62 endif
63
64 #if BUILD_NETBSD
65 #netbsd = netbsd.c
66 #endif
67
68 if BUILD_OPENBSD
69 openbsd = openbsd.c
70 PTHREAD_LIBS =  -pthread
71 endif
72
73 if BUILD_PORT_MONITORS
74 port_monitors = libtcp-portmon.h libtcp-portmon.c
75 endif
76
77 if BUILD_X11
78 x11 = x11.c
79 endif
80
81 if BUILD_HDDTEMP
82 hddtemp = hddtemp.c
83 endif
84
85 if BUILD_EVE
86 eve = eve.c eve.h
87 endif
88
89 if BUILD_RSS
90 rss = rss.c prss.c prss.h
91 endif
92
93 if BUILD_SMAPI
94 smapi = smapi.c smapi.h
95 endif
96
97 if BUILD_NVIDIA
98 nvidia = nvidia.c nvidia.h
99 endif
100
101 conky_SOURCES =                 \
102         $(audacious)            \
103         $(bmpx)                 \
104         common.c                \
105         conky.c                 \
106         conky.h                 \
107         $(freebsd)              \
108         fs.c                    \
109         $(hddtemp)              \
110         $(linux)                \
111         $(nvidia)               \
112         mail.c                  \
113         mixer.c                 \
114         $(mpd)                  \
115         $(netbsd)               \
116         $(openbsd)              \
117         $(port_monitors)        \
118         $(eve)                  \
119         $(rss)                  \
120         $(solaris)              \
121         timed_thread.c          \
122         timed_thread.h          \
123         mboxscan.c              \
124         mboxscan.h              \
125         $(x11)                  \
126         $(xmms2)                \
127         $(smapi)
128
129 conky_LDFLAGS =                 \
130         $(PTHREAD_LIBS)         \
131         $(top_builddir)/libgnu/libgnu.la
132         -lm
133
134 EXTRA_DIST =                    \
135         audacious.c             \
136         audacious.h             \
137         bmpx.c                  \
138         common.h                \
139         freebsd.c               \
140         fs.h                    \
141         hddtemp.c               \
142         hddtemp.h               \
143         linux.c                 \
144         linux.h                 \
145         libmpdclient.c          \
146         libmpdclient.h          \
147         libtcp-portmon.c        \
148         libtcp-portmon.h        \
149         rss.h                   \
150         mail.h                  \
151         mixer.h                 \
152         mpd.c                   \
153         mpd.h                   \
154         netbsd.c                \
155         nvidia.c                \
156         nvidia.h                \
157         openbsd.c               \
158         solaris.c               \
159         top.h                   \
160         diskio.h                \
161         x11.c                   \
162         x11.h                   \
163         xmms2.c                 \
164         smapi.c                 \
165         users.c
166
167
168 # vi:set ts=8 sw=8 noet ai nocindent syntax=automake: