root/src/java/Makefile.in

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

This appears to work... now we need to make sure it works well. refs #142

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