"Fossies" - the Fresh Open Source Software Archive

Member "monit-5.28.0/Makefile.am" (28 Mar 2021, 4483 Bytes) of package /linux/privat/monit-5.28.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.am": 5.27.2_vs_5.28.0.

    1 # Copyright (C) Tildeslash Ltd. All rights reserved.
    2 
    3 AUTOMAKE_OPTIONS = foreign no-dependencies subdir-objects
    4 ACLOCAL_AMFLAGS	 = -I m4
    5 
    6 EXTRA_DIST	= COPYING CONTRIBUTORS bootstrap doc src config monitrc system libmonit monit.1
    7 
    8 SUBDIRS		= libmonit
    9 
   10 CC		= @CC@
   11 FLEX		= @FLEX@
   12 FLEXFLAGS	= -i
   13 YACC		= @YACC@
   14 YACCFLAGS	= -dvt
   15 POD2MAN		= @POD2MAN@
   16 POD2MANFLAGS	= @POD2MANFLAGS@
   17 
   18 AM_CPPFLAGS	= $(CPPFLAGS) $(EXTCPPFLAGS) -D@ARCH@ -DSYSCONFDIR="\"@sysconfdir@\"" -I./src -I./src/device -I./src/http -I./src/notification -I./src/process -I./src/protocols -I./src/ssl -I./src/terminal -I./libmonit/src
   19 AM_LDFLAGS	= $(LDFLAGS) $(EXTLDFLAGS) -L./lib/
   20 
   21 bin_PROGRAMS	= monit
   22 monit_SOURCES	= src/y.tab.c \
   23 		  src/lex.yy.c \
   24 		  src/monit.c \
   25 		  src/alert.c \
   26 		  src/control.c \
   27 		  src/daemonize.c \
   28 		  src/env.c \
   29 		  src/event.c \
   30 		  src/file.c \
   31 		  src/gc.c \
   32 		  src/http.c \
   33 		  src/log.c \
   34 		  src/md5.c \
   35 		  src/md5_crypt.c \
   36 		  src/net/net.c \
   37                   src/net/socket.c \
   38                   src/net/Link.c \
   39 		  src/sha1.c \
   40 		  src/checksum.c \
   41 		  src/signal.c \
   42 		  src/spawn.c \
   43 		  src/state.c \
   44 		  src/util.c \
   45 		  src/validate.c \
   46 		  src/device/device_common.c \
   47 		  src/device/sysdep_@ARCH@.c \
   48 		  src/http/base64.c \
   49 		  src/http/cervlet.c \
   50 		  src/http/client.c \
   51 		  src/http/engine.c \
   52 		  src/http/xml.c \
   53 		  src/http/processor.c \
   54 		  src/notification/Address.c \
   55 		  src/notification/MMonit.c \
   56 		  src/notification/SMTP.c \
   57 		  src/process/ProcessTree.c \
   58 		  src/process/sysdep_@ARCH@.c \
   59 		  src/protocols/apache_status.c \
   60 		  src/protocols/clamav.c \
   61 		  src/protocols/default.c \
   62 		  src/protocols/dns.c \
   63 		  src/protocols/dwp.c \
   64 		  src/protocols/fail2ban.c \
   65 		  src/protocols/ftp.c \
   66 		  src/protocols/generic.c \
   67 		  src/protocols/gps.c \
   68 		  src/protocols/http.c \
   69 		  src/protocols/imap.c \
   70 		  src/protocols/ldap2.c \
   71 		  src/protocols/ldap3.c \
   72 		  src/protocols/lmtp.c \
   73 		  src/protocols/memcache.c \
   74 		  src/protocols/mongodb.c \
   75 		  src/protocols/mqtt.c \
   76 		  src/protocols/mysql.c \
   77 		  src/protocols/nntp.c \
   78 		  src/protocols/ntp3.c \
   79 		  src/protocols/pgsql.c \
   80 		  src/protocols/pop.c \
   81 		  src/protocols/postfix_policy.c \
   82 		  src/protocols/protocol.c \
   83 		  src/protocols/radius.c \
   84 		  src/protocols/rdate.c \
   85 		  src/protocols/redis.c \
   86 		  src/protocols/rsync.c \
   87 		  src/protocols/sieve.c \
   88 		  src/protocols/sip.c \
   89 		  src/protocols/smtp.c \
   90 		  src/protocols/spamassassin.c \
   91 		  src/protocols/ssh.c \
   92 		  src/protocols/tns.c \
   93 		  src/protocols/websocket.c \
   94 		  src/ssl/Ssl.c \
   95 		  src/terminal/TextBox.c \
   96 		  src/terminal/TextColor.c \
   97                   src/statistics/Statistics.c
   98 
   99 monit_LDADD 	= libmonit/libmonit.la
  100 monit_LDFLAGS 	= -static $(EXTLDFLAGS)
  101 
  102 man_MANS 	= monit.1
  103 
  104 BUILT_SOURCES   = src/lex.yy.c src/y.tab.c src/y.tab.h
  105 
  106 CLEANFILES	= src/y.output
  107 DISTCLEANFILES	= *~ $(BUILT_SOURCES)
  108 
  109 define check-exit
  110 || exit 1
  111 
  112 endef
  113 
  114 # -------
  115 # Targets
  116 # -------
  117 
  118 dist-hook::
  119 	-rm -rf `find $(distdir) -name "._*"`
  120 	-rm -rf `find $(distdir) -name ".DS_Store"`
  121 	-rm -rf `find $(distdir) -name ".libs"`
  122 	-rm -rf `find $(distdir) -name ".git"`
  123 	-rm -rf `find $(distdir) -name ".dirstamp"`
  124 	-rm -rf $(distdir)/libmonit/libmonit.xcodeproj
  125 	-rm -rf $(distdir)/libmonit/config.log
  126 	-rm -rf $(distdir)/libmonit/config.status
  127 	-rm -rf $(distdir)/libmonit/autom4te.cache
  128 	-rm -f $(distdir)/src/config.h
  129 	-rm -f $(distdir)/src/stamp-*
  130 	-rm -f $(distdir)/src/y.output
  131 	-rm -f $(distdir)/README.md
  132 	-rm -f $(distdir)/libmonit/README*
  133 	-mv $(distdir)/doc/CHANGES $(distdir)/
  134 	-perl -pi -e 's/^Version: .*/Version: '$(VERSION)'/' $(distdir)/system/packages/redhat/monit.spec
  135 	-chmod 600 monitrc
  136 
  137 clean-local:
  138 	-rm -f `find . -name "*.o" -o -name "*.lo" -o -name "*.loT" -o -name "*~"`
  139 
  140 distclean-local:
  141 	-rm -rf autom4te.cache/
  142 	-rm -f monit-[0-9].*tar.gz
  143 
  144 cleanall: clean distclean
  145 	-git clean -fxd
  146 
  147 monit.1: doc/monit.pod
  148 	$(POD2MAN) $(POD2MANFLAGS) $< > $@
  149 	-rm -f pod2*
  150 
  151 
  152 # -------------
  153 # Grammar rules
  154 # -------------
  155 
  156 src/y.tab.c src/y.tab.h: run-yacc
  157 	
  158 .INTERMEDIATE: run-yacc
  159 run-yacc: src/p.y
  160 	$(YACC) $(YACCFLAGS) -o src/y.tab.c $<
  161 
  162 src/lex.yy.c: src/l.l
  163 	$(FLEX) $(FLEXFLAGS) -o$@ $<
  164 
  165 
  166 # --------------
  167 # MacOS codesign
  168 # --------------
  169 if WITH_CODESIGN
  170 monit_LDFLAGS   += -sectcreate __TEXT __info_plist config/Info.plist
  171 all-local: $(bin_PROGRAMS)
  172 	$(foreach file, $(bin_PROGRAMS), \
  173                 codesign -s $(CODESIGN_IDENTITY) -v --deep --timestamp --options runtime $(file) \
  174         $(check-exit))
  175 endif