root/src/java/Makefile.in

Revision 9d8cd3850dffe388cb5b8c8a3b937922330b067f, 4.2 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 4 years ago)

basic concept works, refs #295

  • 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=@prefix@/java
14 includedir=${prefix}/include
15 libexecdir=@libexecdir@
16 datarootdir = @datarootdir@
17 mandir=@mandir@
18 mansubdir=@mansubdir@
19 docdir=${prefix}/@docdir@
20 sysconfdir=@sysconfdir@
21 srcdir=@srcdir@
22 top_srcdir=@top_srcdir@
23
24 R_JAVA=com/omniti/reconnoiter/MQListener.java \
25         com/omniti/reconnoiter/EventHandler.java \
26         com/omniti/reconnoiter/MessageHandler.java \
27         com/omniti/reconnoiter/broker/NoitListener.java \
28         com/omniti/reconnoiter/broker/RabbitBroker.java \
29         com/omniti/reconnoiter/broker/IMQBroker.java \
30         com/omniti/reconnoiter/broker/AMQBroker.java \
31         com/omniti/reconnoiter/broker/RabbitListener.java \
32         com/omniti/reconnoiter/broker/AMQListener.java \
33         com/omniti/reconnoiter/broker/BrokerFactory.java \
34         com/omniti/reconnoiter/event/NoitEvent.java \
35         com/omniti/reconnoiter/event/NoitCheck.java \
36         com/omniti/reconnoiter/event/NoitStatus.java \
37         com/omniti/reconnoiter/event/NoitMetric.java \
38         com/omniti/reconnoiter/event/NoitMetricText.java \
39         com/omniti/reconnoiter/event/NoitMetricNumeric.java \
40         com/omniti/reconnoiter/event/StratconStatement.java \
41         com/omniti/reconnoiter/event/StratconQueryBase.java \
42         com/omniti/reconnoiter/event/StratconQuery.java \
43         com/omniti/reconnoiter/event/StratconQueryStop.java \
44         com/omniti/reconnoiter/esper/ExactStatViewFactory.java \
45         com/omniti/reconnoiter/esper/ExactBaseBivariateStatisticsView.java \
46         com/omniti/reconnoiter/esper/ExactRegressionLinestView.java \
47         com/omniti/reconnoiter/esper/ExactBaseStatisticsBean.java \
48         com/omniti/reconnoiter/esper/ExactRegressionBean.java \
49         com/omniti/reconnoiter/esper/WeightedValueBean.java \
50         com/omniti/reconnoiter/esper/CounterView.java \
51         com/omniti/reconnoiter/esper/CounterViewFactory.java \
52         com/omniti/reconnoiter/esper/DeriveView.java \
53         com/omniti/reconnoiter/esper/DeriveViewFactory.java \
54         com/omniti/reconnoiter/IEPEngine.java \
55         com/omniti/reconnoiter/StratconConfig.java \
56         com/omniti/reconnoiter/StratconMessage.java \
57         com/omniti/reconnoiter/StratconMessageFactory.java
58
59 R_CLASS = $(R_JAVA:.java=.class)
60
61 J_JAVA = com/omniti/jezebel/Jezebel.java \
62         com/omniti/jezebel/JezebelDispatch.java \
63         com/omniti/jezebel/JezebelCheck.java \
64         com/omniti/jezebel/JezebelClassLoader.java \
65         com/omniti/jezebel/JezebelResmon.java \
66         com/omniti/jezebel/Resmon.java \
67         com/omniti/jezebel/ResmonResult.java \
68         com/omniti/jezebel/SampleCheck.java
69
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 lib/esper-3.3.0.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.jar lib/commons-io-1.2.jar \
76         lib/commons-cli-1.1.jar lib/commons-logging-1.1.1.jar
77
78 J_SUPPORT=lib/log4j-1.2.15.jar \
79         lib/jetty-6.1.20.jar lib/servlet-api-2.5-20081211.jar \
80         lib/jetty-util-6.1.20.jar lib/commons-logging-1.1.1.jar \
81         lib/commons-cli-1.1.jar
82
83 all:    reconnoiter.jar jezebel.jar
84         @chmod 755 run-iep.sh
85         @chmod 755 jezebel
86
87 reconnoiter.jar:        $(R_JAVA)
88         @echo "- $@ compiling files"
89         @$(JAVAC) -Xlint:unchecked -g -cp `echo $(R_SUPPORT) | sed -e 's/ /:/g;'` $(R_JAVA)
90         @echo "- creating $@"
91         @$(JAR) cf $@ $(R_CLASS)
92
93 jezebel.jar:    $(J_JAVA)
94         @echo "- $@ compiling files"
95         @$(JAVAC) -Xlint:unchecked -g -cp `echo $(J_SUPPORT) | sed -e 's/ /:/g;'` $(J_JAVA)
96         @echo "- creating $@"
97         @$(JAR) cf $@ $(J_CLASS)
98
99 install:        all
100         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(javalibdir)
101         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(javalibdir)/lib
102         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(bindir)
103         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(prefix)/var/db/noit-iep
104         $(INSTALL) -m 0644 reconnoiter.jar $(DESTDIR)$(javalibdir)/reconnoiter.jar
105         $(INSTALL) -m 0644 jezebel.jar $(DESTDIR)$(javalibdir)/jezebel.jar
106         for jar in $(R_SUPPORT) $(J_SUPPORT) ; do \
107                 $(INSTALL) -m 0644 $$jar $(DESTDIR)$(javalibdir)/$$jar ; \
108         done
109         $(INSTALL) -m 0644 log4j.xml $(DESTDIR)$(prefix)/var/db/noit-iep/log4j.xml
110         $(INSTALL) -m 0755 run-iep.sh $(DESTDIR)$(bindir)/run-iep.sh
111
112 clean:
113         find com -name \*.class -exec rm {} \;
114         rm -f reconnoiter.jar jezebel.jar
115
Note: See TracBrowser for help on using the browser.