-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
155 lines (132 loc) · 3.92 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# Copyright (C) Tildeslash Ltd. All rights reserved.
AUTOMAKE_OPTIONS = foreign no-dependencies subdir-objects
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = README COPYING CONTRIBUTORS bootstrap doc src config monitrc system libmonit monit.1
SUBDIRS = libmonit
CC = @CC@
FLEX = @FLEX@
FLEXFLAGS = -i
YACC = @YACC@
YACCFLAGS = -dvt
POD2MAN = @POD2MAN@
POD2MANFLAGS = @POD2MANFLAGS@
AM_CPPFLAGS = $(CPPFLAGS) $(EXTCPPFLAGS) -D@ARCH@ -DSYSCONFDIR="\"@sysconfdir@\"" -I./src -I./src/device -I./src/http -I./src/process -I./src/protocols -I./src/ssl -I./libmonit/src
AM_LDFLAGS = $(LDFLAGS) $(EXTLDFLAGS) -L./lib/
bin_PROGRAMS = monit
monit_SOURCES = src/y.tab.c \
src/lex.yy.c \
src/monit.c \
src/alert.c \
src/collector.c \
src/control.c \
src/daemonize.c \
src/env.c \
src/event.c \
src/file.c \
src/gc.c \
src/http.c \
src/log.c \
src/md5.c \
src/md5_crypt.c \
src/net.c \
src/process.c \
src/sendmail.c \
src/sha1.c \
src/signal.c \
src/socket.c \
src/spawn.c \
src/state.c \
src/status.c \
src/util.c \
src/validate.c \
src/xml.c \
src/device/device_common.c \
src/device/sysdep_@[email protected] \
src/http/base64.c \
src/http/cervlet.c \
src/http/engine.c \
src/http/processor.c \
src/process/process_common.c \
src/process/sysdep_@[email protected] \
src/protocols/apache_status.c \
src/protocols/clamav.c \
src/protocols/default.c \
src/protocols/dns.c \
src/protocols/dwp.c \
src/protocols/ftp.c \
src/protocols/generic.c \
src/protocols/gps.c \
src/protocols/http.c \
src/protocols/imap.c \
src/protocols/ldap2.c \
src/protocols/ldap3.c \
src/protocols/lmtp.c \
src/protocols/memcache.c \
src/protocols/mongodb.c \
src/protocols/mysql.c \
src/protocols/nntp.c \
src/protocols/ntp3.c \
src/protocols/pgsql.c \
src/protocols/pop.c \
src/protocols/postfix_policy.c \
src/protocols/protocol.c \
src/protocols/radius.c \
src/protocols/rdate.c \
src/protocols/redis.c \
src/protocols/rsync.c \
src/protocols/sieve.c \
src/protocols/sip.c \
src/protocols/smtp.c \
src/protocols/ssh.c \
src/protocols/tns.c \
src/protocols/websocket.c \
src/ssl/Ssl.c
monit_LDADD = libmonit/libmonit.la
monit_LDFLAGS = -static $(EXTLDFLAGS)
man_MANS = monit.1
BUILT_SOURCES = src/lex.yy.c src/y.tab.c src/tokens.h
CLEANFILES = src/y.output
DISTCLEANFILES = *~ $(BUILT_SOURCES)
# -------
# Targets
# -------
dist-hook::
-rm -rf `find $(distdir) -name "._*"`
-rm -rf `find $(distdir) -name ".DS_Store"`
-rm -rf `find $(distdir) -name ".libs"`
-rm -rf `find $(distdir) -name ".git"`
-rm -rf `find $(distdir) -name ".dirstamp"`
-rm -rf $(distdir)/libmonit/libmonit.xcodeproj
-rm -rf $(distdir)/libmonit/config.log
-rm -rf $(distdir)/libmonit/config.status
-rm -rf $(distdir)/libmonit/autom4te.cache
-rm -f $(distdir)/src/config.h
-rm -f $(distdir)/src/stamp-*
-rm -f $(distdir)/src/y.output
-rm -f $(distdir)/README.md
-perl -pi -e 's/^Version: .*/Version: '$(VERSION)'/' $(distdir)/system/packages/redhat/monit.spec
-chmod 600 monitrc
clean-local:
-rm -f `find . -name "*.o" -o -name "*.lo" -o -name "*.loT" -o -name "*~"`
distclean-local:
-rm -rf autom4te.cache/
-rm -f monit-[0-9].*tar.gz
cleanall: clean distclean
-rm -f libmonit/Makefile.in libmonit/configure libmonit/aclocal.m4 libmonit/src/xconfig.h.in
-rm -f Makefile.in configure aclocal.m4 autom4te.cache src/config.h.in monit.1
-rm -rf libmonit/m4 libmonit/config
-rm -rf m4 config
monit.1: doc/monit.pod
$(POD2MAN) $(POD2MANFLAGS) $< > $@
-rm -f pod2*
# -------------
# Grammar rules
# -------------
src/y.tab.c src/tokens.h: src/p.y
$(YACC) $(YACCFLAGS) -o src/y.tab.c $<
-echo "#include <config.h>" > src/.y.tab.c
-cat src/y.tab.c >> src/.y.tab.c
-mv src/.y.tab.c src/y.tab.c
-mv src/y.tab.h src/tokens.h
src/lex.yy.c: src/l.l
$(FLEX) $(FLEXFLAGS) -o$@ $<