rewrite tcp-portmon hooks
[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_AUDACIOUS
31 audacious = audacious.c audacious.h
32 endif
33
34 if BUILD_BMPX
35 bmpx = bmpx.c
36 endif
37
38 if BUILD_MPD
39 mpd = mpd.c libmpdclient.c
40 endif
41
42 if BUILD_MOC
43 moc = moc.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                 tcp-portmon.h tcp-portmon.c
76 endif
77
78 if BUILD_X11
79 x11 = x11.c
80 endif
81
82 if BUILD_HDDTEMP
83 hddtemp = hddtemp.c
84 endif
85
86 if BUILD_EVE
87 eve = eve.c eve.h
88 endif
89
90 if BUILD_RSS
91 rss = rss.c prss.c prss.h
92 endif
93
94 if BUILD_SMAPI
95 smapi = smapi.c smapi.h
96 endif
97
98 if BUILD_NVIDIA
99 nvidia = nvidia.c nvidia.h
100 endif
101
102 conky_SOURCES =                 \
103         $(audacious)            \
104         $(bmpx)                 \
105         common.c                \
106         conky.c                 \
107         conky.h                 \
108         $(freebsd)              \
109         fs.c                    \
110         $(hddtemp)              \
111         $(linux)                \
112         $(nvidia)               \
113         mail.c                  \
114         mixer.c                 \
115         $(mpd)                  \
116   $(moc) \
117         $(netbsd)               \
118         $(openbsd)              \
119         $(port_monitors)        \
120         $(eve)                  \
121         $(rss)                  \
122         $(solaris)              \
123         timed_thread.c          \
124         timed_thread.h          \
125         mboxscan.c              \
126         mboxscan.h              \
127         $(x11)                  \
128         $(xmms2)                \
129         $(smapi)                \
130         temphelper.c            \
131         temphelper.h
132
133 conky_LDFLAGS =                                 \
134         $(PTHREAD_LIBS)                         \
135         -lm
136
137 EXTRA_DIST =                    \
138         audacious.c             \
139         audacious.h             \
140         bmpx.c                  \
141         common.h                \
142         freebsd.c               \
143         freebsd.h               \
144         fs.h                    \
145         hddtemp.c               \
146         hddtemp.h               \
147         linux.c                 \
148         linux.h                 \
149         libmpdclient.c          \
150         libmpdclient.h          \
151         libtcp-portmon.c        \
152         libtcp-portmon.h        \
153         rss.h                   \
154         mail.h                  \
155         mixer.h                 \
156         moc.h                   \
157         moc.c                   \
158         mpd.c                   \
159         mpd.h                   \
160         netbsd.c                \
161         nvidia.c                \
162         nvidia.h                \
163         openbsd.c               \
164         openbsd.h               \
165         solaris.c               \
166         top.h                   \
167         diskio.h                \
168         x11.c                   \
169         x11.h                   \
170         xmms2.c                 \
171         xmms2.h                 \
172         smapi.c                 \
173         users.c
174
175
176 # vi:set ts=8 sw=8 noet ai nocindent syntax=automake: