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