Merge "Change PTL informatin in INFO"
[bottlenecks.git] / testsuites / rubbos / rubbos_scripts / 1-1-1 / rubbos_conf / 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:$TOMCATservlet.jar
20 CLASSPATH = .:$(J2EE_HOME)/lib/j2ee.jar:$(JAVA_HOME)/jre/lib/rt.jar
21 JAVADOC = $(JAVA_HOME)/javadoc
22
23
24 #########################
25 #    Servlets version   #
26 #########################
27 #ServletPrinter 
28 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
29
30 all_servlets_sources =  $(addprefix edu/rice/rubbos/servlets/, $(addsuffix .java, $(Servlets)))
31 all_servlets_obj = $(addprefix edu/rice/rubbos/servlets/, $(addsuffix .class, $(Servlets)))
32
33 servlets: $(all_servlets_obj)
34
35 clean_servlets:
36         rm -f edu/rice/rubbos/servlets/*.class
37
38 ####################
39 #       Client     #
40 ####################
41
42 ClientFiles = URLGenerator URLGeneratorPHP RUBBoSProperties Stats \
43               TransitionTable ClientEmulator UserSession 
44
45 all_client_sources =  $(addprefix edu/rice/rubbos/client/, $(addsuffix .java, $(ClientFiles)))
46 all_client_obj = $(addprefix edu/rice/rubbos/client/, $(addsuffix .class, $(ClientFiles))) edu/rice/rubbos/beans/TimeManagement.class
47
48 client: $(all_client_obj)
49
50 initDB:
51         ${JAVA} -classpath .:./database edu.rice.rubbos.client.InitDB ${PARAM}
52
53 emulator:
54         ${JAVA} -classpath Client:Client/rubbos_client.jar:. -Xmx1300m -Dhttp.keepAlive=true -Dhttp.maxConnections=1000000 edu.rice.rubbos.client.ClientEmulator
55
56 emulatorDebug:
57         ${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
58
59
60 ############################
61 #       Global rules       #
62 ############################
63
64
65 all: beans ejb_servlets client javadoc flush_cache
66
67 world: all servlets
68
69 javadoc :
70         ${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
71
72 clean:
73         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
74
75 %.class: %.java
76         ${JAVACC} -classpath ${CLASSPATH} $<
77
78 flush_cache: bench/flush_cache.c
79         gcc bench/flush_cache.c -o bench/flush_cache
80