-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·31 lines (25 loc) · 768 Bytes
/
Copy pathMakefile
File metadata and controls
executable file
·31 lines (25 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
TRG=bandwidth-module
BASE=$(HOME)/NetBeansProjects/
PSDIR=$(BASE)/peersim/source/
.PHONY: all clean doc release
clean:
rm -f `find -name "*.class"`
rm -rf doc
rm -f output.log
rm -f *.jar
rm -rf $(TRG)
peersim:
make -C $(PSDIR) release
jar: clean peersim
cd src && javac -g -cp "$(PSDIR)/djep-1.0.0.jar:$(PSDIR)/jep-2.3.0.jar:$(PSDIR)/peersim-1.0.2.jar" `find bandwidth -iname "*.java"` && jar -cf ../bandwidth-aware.jar `find bandwidth/ -name "*.class"`
module: clean peersim jar
mkdir $(TRG)
cp bandwidth-aware.jar $(TRG)
cp -r src/bandwidth $(TRG)
cp $(PSDIR)/*.jar $(TRG)
cp config-bandwidth.txt README $(TRG)
cp Makefilebm $(TRG)/Makefile
rm -rf `find $(TRG) -iname ".svn"`
pack: module
tar -czvvf bandwidth-module.tar.gz $(TRG)
all: pack