root/src/java/Makefile.in

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

make the NoitMetricNumeric? event a Java class instead on XMLDOM-based event. This gives us control. fixes #135

  • 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/AMQBrokerSingleton.java \
25         com/omniti/reconnoiter/AMQListener.java \
26         com/omniti/reconnoiter/AMQOutput.java \
27         com/omniti/reconnoiter/event/NoitEvent.java \
28         com/omniti/reconnoiter/event/NoitMetricNumeric.java \
29         com/omniti/reconnoiter/event/StratconQuery.java \
30         com/omniti/reconnoiter/event/StratconQueryStop.java \
31         com/omniti/reconnoiter/IEPEngine.java \
32         com/omniti/reconnoiter/StratconMessage.java
33
34 SUPPORT=lib/activemq-all-5.2.0.jar lib/antlr-runtime-3.1.1.jar lib/esper-3.0.0.jar \
35         lib/log4j-1.2.15.jar lib/spring-beans-2.5.5.jar lib/spring-context-2.5.5.jar \
36         lib/cglib-nodep-2.2.jar
37
38 all:    reconnoiter.jar
39         @chmod 755 run-iep.sh
40
41 reconnoiter.jar:        $(JAVA)
42         @echo "- compiling files"
43         @$(JAVAC) -cp `echo $(SUPPORT) | sed -e 's/ /:/g;'` $(JAVA)
44         @echo "- creating jar"
45         @$(JAR) cvf $@ `find com -name \*.class`
46
47 install:        all
48         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(javalibdir)
49         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(bindir)
50         $(INSTALL) -m 0644 reconnoiter.jar $(DESTDIR)$(javalibdir)/reconnoiter.jar
51         for jar in $(SUPPORT) ; do \
52                 $(INSTALL) -m 0644 $$jar $(DESTDIR)$(javalibdir)/$$jar ; \
53         done
54         $(INSTALL) -m 0755 run-iep.sh $(DESTDIR)$(bindir)/run-iep.sh
55
56 clean:
57         find com -name \*.class -exec rm {} \;
58         rm -f reconnoiter.jar
59         rm -f run-iep.sh
60
Note: See TracBrowser for help on using the browser.