root/src/java/Makefile.in

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

fixes #240

  • 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 JAVA=com/omniti/reconnoiter/MQListener.java \
25         com/omniti/reconnoiter/EventHandler.java \
26         com/omniti/reconnoiter/broker/NoitListener.java \
27         com/omniti/reconnoiter/broker/RabbitBroker.java \
28         com/omniti/reconnoiter/broker/IMQBroker.java \
29         com/omniti/reconnoiter/broker/AMQBroker.java \
30         com/omniti/reconnoiter/broker/RabbitListener.java \
31         com/omniti/reconnoiter/broker/AMQListener.java \
32         com/omniti/reconnoiter/broker/BrokerFactory.java \
33         com/omniti/reconnoiter/event/NoitEvent.java \
34         com/omniti/reconnoiter/event/NoitCheck.java \
35         com/omniti/reconnoiter/event/NoitStatus.java \
36         com/omniti/reconnoiter/event/NoitMetric.java \
37         com/omniti/reconnoiter/event/NoitMetricText.java \
38         com/omniti/reconnoiter/event/NoitMetricNumeric.java \
39         com/omniti/reconnoiter/event/StratconStatement.java \
40         com/omniti/reconnoiter/event/StratconQueryBase.java \
41         com/omniti/reconnoiter/event/StratconQuery.java \
42         com/omniti/reconnoiter/event/StratconQueryStop.java \
43         com/omniti/reconnoiter/esper/ExactStatViewFactory.java \
44         com/omniti/reconnoiter/esper/ExactBaseBivariateStatisticsView.java \
45         com/omniti/reconnoiter/esper/ExactRegressionLinestView.java \
46         com/omniti/reconnoiter/esper/ExactBaseStatisticsBean.java \
47         com/omniti/reconnoiter/esper/ExactRegressionBean.java \
48         com/omniti/reconnoiter/esper/WeightedValueBean.java \
49         com/omniti/reconnoiter/esper/CounterView.java \
50         com/omniti/reconnoiter/esper/CounterViewFactory.java \
51         com/omniti/reconnoiter/esper/DeriveView.java \
52         com/omniti/reconnoiter/esper/DeriveViewFactory.java \
53         com/omniti/reconnoiter/IEPEngine.java \
54         com/omniti/reconnoiter/StratconConfig.java \
55         com/omniti/reconnoiter/StratconMessage.java \
56         com/omniti/reconnoiter/StratconMessageFactory.java
57
58 SUPPORT=lib/activemq-all-5.2.0.jar lib/antlr-runtime-3.1.1.jar lib/esper-3.3.0.jar \
59         lib/log4j-1.2.15.jar lib/spring-beans-2.5.5.jar lib/spring-context-2.5.5.jar \
60         lib/cglib-nodep-2.2.jar lib/commons-pool-1.4.jar lib/commons-dbcp-1.2.2.jar \
61         lib/postgresql-8.3-604.jdbc3.jar lib/rabbitmq-client.jar lib/commons-io-1.2.jar \
62         lib/commons-cli-1.1.jar lib/commons-logging-1.1.1.jar
63
64 all:    reconnoiter.jar
65         @chmod 755 run-iep.sh
66
67 reconnoiter.jar:        $(JAVA)
68         @echo "- compiling files"
69         @$(JAVAC) -Xlint:unchecked -g -cp `echo $(SUPPORT) | sed -e 's/ /:/g;'` $(JAVA)
70         @echo "- creating jar"
71         @$(JAR) cf $@ `find com -name \*.class`
72
73 install:        all
74         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(javalibdir)
75         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(javalibdir)/lib
76         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(bindir)
77         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(prefix)/var/db/noit-iep
78         $(INSTALL) -m 0644 reconnoiter.jar $(DESTDIR)$(javalibdir)/reconnoiter.jar
79         for jar in $(SUPPORT) ; do \
80                 $(INSTALL) -m 0644 $$jar $(DESTDIR)$(javalibdir)/$$jar ; \
81         done
82         $(INSTALL) -m 0644 log4j.xml $(DESTDIR)$(prefix)/var/db/noit-iep/log4j.xml
83         $(INSTALL) -m 0755 run-iep.sh $(DESTDIR)$(bindir)/run-iep.sh
84
85 clean:
86         find com -name \*.class -exec rm {} \;
87         rm -f reconnoiter.jar
88
Note: See TracBrowser for help on using the browser.