root/src/java/Makefile.in

Revision d0a64b649e4eac288431ac20d986830b57fb044d, 4.9 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 5 years ago)

Add support for riemann as the IEP subsystem.
Remove all traces of Esper.
Change the license on all our bits to simply match reconnoiter.
Cleanup copyrights and embelish auditing script.
Updated test 108 to check riemann iep results.

  • Property mode set to 100644
Line 
1 .SUFFIXES: .re .c
2
3 JAVA=@JAVA@
4 JAVAC=@JAVAC@
5 JAR=@JAR@
6 INSTALL=@INSTALL@
7
8 prefix=@prefix@
9 exec_prefix=@exec_prefix@
10 bindir=@bindir@
11 sbindir=@sbindir@
12 libdir=@libdir@
13 javalibdir=@JAVA_LIB_DIR@
14 includedir=${prefix}/include
15 libexecdir=@libexecdir@
16 localstatedir=@localstatedir@
17 datarootdir=@datarootdir@
18 mandir=@mandir@
19 mansubdir=@mansubdir@
20 docdir=${prefix}/@docdir@
21 sysconfdir=@sysconfdir@
22 srcdir=@srcdir@
23 top_srcdir=@top_srcdir@
24
25 IEPJAR=reconnoiter-riemann/target/reconnoiter-riemann-1.0-jar-with-dependencies.jar
26
27 R_FILE=src/com/omniti/reconnoiter/MQListener.java \
28         src/com/omniti/reconnoiter/IEventHandler.java \
29         src/com/omniti/reconnoiter/MessageHandler.java \
30         src/com/omniti/reconnoiter/CheckStatus.java \
31         src/com/omniti/reconnoiter/broker/RabbitBroker.java \
32         src/com/omniti/reconnoiter/broker/IMQBroker.java \
33         src/com/omniti/reconnoiter/broker/AMQBroker.java \
34         src/com/omniti/reconnoiter/broker/BrokerFactory.java \
35         src/com/omniti/reconnoiter/event/NoitEvent.java \
36         src/com/omniti/reconnoiter/event/NoitBundlev1.java \
37         src/com/omniti/reconnoiter/event/NoitBundlev2.java \
38         src/com/omniti/reconnoiter/event/NoitCheck.java \
39         src/com/omniti/reconnoiter/event/NoitStatus.java \
40         src/com/omniti/reconnoiter/event/NoitMetric.java \
41         src/com/omniti/reconnoiter/event/NoitMetricText.java \
42         src/com/omniti/reconnoiter/event/NoitMetricNumeric.java \
43         src/com/omniti/reconnoiter/event/NoitMetricGeneric.java \
44         src/com/omniti/reconnoiter/StratconConfig.java \
45         src/com/omniti/reconnoiter/StratconMessage.java \
46         src/com/omniti/reconnoiter/StratconMessageFactory.java
47
48 R_JAVA = $(R_FILE:src/%=%)
49 R_CLASS = $(R_JAVA:.java=*.class)
50
51 J_FILE = src/com/omniti/jezebel/Jezebel.java \
52         src/com/omniti/jezebel/JezebelDispatch.java \
53         src/com/omniti/jezebel/JezebelCheck.java \
54         src/com/omniti/jezebel/JezebelClassLoader.java \
55         src/com/omniti/jezebel/JezebelResmon.java \
56         src/com/omniti/jezebel/JezebelTools.java \
57         src/com/omniti/jezebel/Resmon.java \
58         src/com/omniti/jezebel/ResmonResult.java \
59         src/com/omniti/jezebel/SampleCheck.java \
60         src/com/omniti/jezebel/check/JDBC.java \
61         src/com/omniti/jezebel/check/mysql.java \
62         src/com/omniti/jezebel/check/oracle.java \
63         src/com/omniti/jezebel/check/sqlserver.java \
64         src/com/omniti/jezebel/check/postgres.java \
65         src/com/omniti/jezebel/check/jmx.java \
66         src/com/omniti/jezebel/check/ldap.java \
67         src/com/omniti/jezebel/check/snmp.java
68
69 J_JAVA = $(J_FILE:src/%=%)
70 J_CLASS = $(J_JAVA:.java=*.class)
71
72 R_SUPPORT=lib/activemq-all-5.2.0.jar lib/antlr-runtime-3.1.1.jar \
73         lib/log4j-1.2.15.jar lib/spring-beans-2.5.5.jar lib/spring-context-2.5.5.jar \
74         lib/cglib-nodep-2.2.jar lib/commons-pool-1.4.jar lib/commons-dbcp-1.2.2.jar \
75         lib/postgresql-8.3-604.jdbc3.jar lib/rabbitmq-client-2.4.1.jar lib/commons-io-1.2.jar \
76         lib/commons-cli-1.1.jar lib/commons-logging-1.1.1.jar lib/commons-codec-1.5.jar \
77         lib/protobuf-java-2.4.1.jar
78
79 J_SUPPORT=lib/log4j-1.2.15.jar \
80         lib/jetty-6.1.20.jar lib/servlet-api-2.5-20081211.jar \
81         lib/jetty-util-6.1.20.jar lib/commons-logging-1.1.1.jar \
82         lib/commons-cli-1.1.jar lib/postgresql-8.3-604.jdbc3.jar \
83         lib/snmp4j-2.1.0.jar
84
85 all:    lib/reconnoiter.jar lib/jezebel.jar $(IEPJAR)
86         @chmod 755 reconnoiter-riemann/run-iep.sh
87         @chmod 755 jezebel
88
89 lib/reconnoiter.jar:    $(R_FILE)
90         @echo "- $@ compiling files"
91         @mkdir -p classes
92         (cd src && $(JAVAC) -Xlint:unchecked -g -cp ../`echo $(R_SUPPORT) | sed -e 's/ /:..\//g;'` -d ../classes $(R_JAVA))
93         @echo "- creating $@"
94         @(cd classes && $(JAR) cf ../$@ $(R_CLASS))
95
96 lib/jezebel.jar:        $(J_FILE)
97         @echo "- $@ compiling files"
98         @mkdir -p classes
99         @(cd src && $(JAVAC) -Xlint:unchecked -g -cp ../`echo $(J_SUPPORT) | sed -e 's/ /:..\//g;'` -d ../classes $(J_JAVA))
100         @echo "- creating $@"
101         @(cd classes && $(JAR) cf ../$@ $(J_CLASS))
102
103 $(IEPJAR):
104         @echo "- building a maven-like repo layout in lib"
105         @(cd lib && ./stub-as-maven.sh)
106         @echo "- building reconnoiter-riemann"
107         @(cd reconnoiter-riemann && mvn compile assembly:single)
108
109 install-dirs:   all
110         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(javalibdir)
111         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(bindir)
112
113 install-iep:    install-dirs all
114         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(localstatedir)/db/noit-iep
115         $(INSTALL) -m 0644 $(IEPJAR) $(DESTDIR)$(javalibdir)/
116         $(INSTALL) -m 0755 reconnoiter-riemann/run-iep.sh $(DESTDIR)$(bindir)/run-iep.sh
117         $(INSTALL) -m 0644 reconnoiter-riemann/riemann.config $(DESTDIR)$(localstatedir)/db/noit-iep/riemann.config
118         $(INSTALL) -m 0644 log4j.xml $(DESTDIR)$(localstatedir)/db/noit-iep/log4j.xml
119
120 install-jezebel:        install-dirs all
121         $(INSTALL) -m 0644 lib/jezebel.jar $(DESTDIR)$(javalibdir)/jezebel.jar
122         for jar in $(J_SUPPORT) ; do \
123                 $(INSTALL) -m 0644 $$jar $(DESTDIR)$(javalibdir)/`echo $$jar | sed -e 's#^lib/##'` ; \
124         done
125         $(INSTALL) -m 0755 jezebel $(DESTDIR)$(bindir)/jezebel
126
127 install:        install-iep install-jezebel
128
129 clean:
130         rm -rf classes reconnoiter-riemann/target
131         rm -f lib/reconnoiter.jar lib/jezebel.jar
132
133 distclean:      clean
134         rm -f Makefile reconnoiter-riemann/run-iep.sh jezebel
135
Note: See TracBrowser for help on using the browser.