Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Correction of some bugs and performance enhancement.
[jaceP2P.git] / Makefile
1 #
2 # Makefile for JaceP2P plateform
3 # Author: Sébastien Miquée <sebastien.miquee@univ-fcomte.fr>
4 #
5
6 SRC=src
7 PACKAGE=jaceP2P
8 BIN=bin
9 LIB=${HOME}/lib
10 JAR=JaceP2P.jar
11 MAPPING=$(LIB)/Mapping.jar
12 CLASSPATH=.:$(MAPPING)
13
14 all: compile jar copy
15
16 compile:clean
17         javac -classpath $(MAPPING) -d ./$(BIN) ./$(SRC)/$(PACKAGE)/*.java
18         rmic -classpath $(CLASSPATH):$(BIN) -d ./$(BIN) jaceP2P.JaceServer
19         rmic -classpath $(CLASSPATH):$(BIN) -d ./$(BIN) jaceP2P.JaceSuperNodeServer
20
21 rmi:compile
22         rmic -classpath $(CLASSPATH):$(BIN) -d ./$(BIN) jaceP2P.JaceServer
23         rmic -classpath $(CLASSPATH):$(BIN) -d ./$(BIN) jaceP2P.JaceSuperNodeServer
24
25 jar:    
26         jar cvfm ./$(JAR) Manifest -C ./$(BIN) $(PACKAGE)
27
28 copy:
29         cp $(JAR) $(LIB)
30
31 clean:
32         rm -rf ./$(BIN)/* $(JAR)
33
34
35 #
36 ##
37 #
38