Merge "Change PTL informatin in INFO"
[bottlenecks.git] / testsuites / rubbos / puppet_manifests / modules / rubbos_tomcat / files / tomcat_sl / rubbos_files / Makefile
1
2
3 ###########################
4 #    RUBBoS Makefile      #
5 ###########################
6
7 include config.mk
8
9 ##############################
10 #    Environment variables   #
11 ##############################
12
13 JAVA  = $(JAVA_HOME)/bin/java
14 JAVAC = $(JAVA_HOME)/bin/javac
15 JAVACOPTS = -deprecation
16 JAVACC = $(JAVAC) $(JAVACOPTS)
17 RMIC = $(JAVA_HOME)/bin/rmic
18 RMIREGISTRY= $(JAVA_HOME)/bin/rmiregistry 
19 CLASSPATH = .:$(J2EE_HOME)/lib/j2ee.jar:$(JAVA_HOME)/jre/lib/rt.jar
20 JAVADOC = $(JAVA_HOME)/javadoc
21
22
23 #########################
24 #    Servlets version   #
25 #########################
26 #ServletPrinter 
27 Servlets = Config TimeManagement BrowseCategories Auth RegisterUser RubbosHttpServlet BrowseRegions SearchItemsByCategory SearchItemsByRegion ViewItem ViewBidHistory ViewUserInfo SellItemForm RegisterItem PutCommentAuth PutComment StoreComment BuyNowAuth BuyNow StoreBuyNow PutBidAuth PutBid StoreBid AboutMe
28
29 all_servlets_sources =  $(addprefix edu/rice/rubbos/servlets/, $(addsuffix .java, $(Servlets)))
30 all_servlets_obj = $(addprefix edu/rice/rubbos/servlets/, $(addsuffix .class, $(Servlets)))
31
32 servlets: $(all_servlets_obj)
33
34 clean_servlets:
35         rm -f edu/rice/rubbos/servlets/*.class
36
37 ####################
38 #       Client     #
39 ####################
40
41 ClientFiles = URLGenerator URLGeneratorPHP RUBBoSProperties Stats \
42               TransitionTable ClientEmulator UserSession 
43
44 all_client_sources =  $(addprefix edu/rice/rubbos/client/, $(addsuffix .java, $(ClientFiles)))
45 all_client_obj = $(addprefix edu/rice/rubbos/client/, $(addsuffix .class, $(ClientFiles))) edu/rice/rubbos/beans/TimeManagement.class
46
47 client: $(all_client_obj)
48
49 initDB:
50         ${JAVA} -classpath .:./database edu.rice.rubbos.client.InitDB ${PARAM}
51
52 emulator:
53         ${JAVA} -classpath Client:Client/rubbos_client.jar:. -Xmx1300m -Dhttp.keepAlive=true -Dhttp.maxConnections=1000000 edu.rice.rubbos.client.ClientEmulator
54
55 emulatorDebug:
56         ${JAVA} -classpath Client:Client/rubbos_client.jar:. -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Xmx1300m -Dhttp.keepAlive=true -Dhttp.maxConnections=1000000 edu.rice.rubbos.client.ClientEmulator
57
58
59 ############################
60 #       Global rules       #
61 ############################
62
63
64 all: beans ejb_servlets client javadoc flush_cache
65
66 world: all servlets
67
68 javadoc :
69         ${JAVADOC} -d ./doc/api -bootclasspath ${CLASSPATH} -version -author -windowtitle "RUBBoS API" -header "<b>RUBBoS (C)2001 Rice University/INRIA</b><br>" edu.rice.rubbos.beans edu.rice.rubbos.beans.servlets edu.rice.rubbos.client
70
71 clean:
72         rm -f core edu/rice/rubbos/beans/*.class edu/rice/rubbos/beans/JOnAS* edu/rice/rubbos/beans/servlets/*.class edu/rice/rubbos/client/*.class edu/rice/rubbos/servlets/*.class
73
74 %.class: %.java
75         ${JAVACC} -classpath ${CLASSPATH} $<
76
77 flush_cache: bench/flush_cache.c
78         gcc bench/flush_cache.c -o bench/flush_cache
79