-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile~
52 lines (39 loc) · 1.54 KB
/
Makefile~
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
JAVAC=/usr/bin/javac
.SUFFIXES: .java .class
SRCDIR = src
BINDIR = bin
OUTDIR = output
ARRAYOUTDIR = Arrayoutput
BSTOUTDIR = BSToutput
$(BINDIR)/%.class:$(SRCDIR)/%.java
$(JAVAC) -d $(BINDIR)/ -cp $(BINDIR) $<
CLASSES=Loadshedding.class LSArrayApp.class BinaryTreeNode.class BinaryTree.class BinarySearchTree.class \
LSBSTApp.class
CLASS_FILES=$(CLASSES:%.class=$(BINDIR)/%.class)
default: $(CLASS_FILES)
clean:
rm $(BINDIR)/*.class
rm $(ARRAYOUTDIR)/*.xls
rm $(BSTOUTDIR)/*.xls
rm $(OUTDIR)/*.txt
$(RM) -r doc/*
javadoc:
javadoc -d doc/ src/*.java
runpart2:
java -cp bin LSArrayApp 6 29 02 > $(OUTDIR)/output.part2.known1.txt
java -cp bin LSArrayApp 6 9 04 > $(OUTDIR)/output.part2.known2.txt
java -cp bin LSArrayApp 1 2 00 > $(OUTDIR)/output.part2.known3.txt
java -cp bin LSArrayApp 6 33 02 > $(OUTDIR)/output.part2.invalid1.txt
java -cp bin LSArrayApp 1 2 39 > $(OUTDIR)/output.part2.invalid2.txt
java -cp bin LSArrayApp 66 9 02 > $(OUTDIR)/output.part2.invalid3.txt
java -cp bin LSArrayApp > $(OUTDIR)/output.part1.printallareas.txt
runpart4:
java -cp bin LSBSTApp 6 29 02 > $(OUTDIR)/output.part4.known1.txt
java -cp bin LSBSTApp 6 9 04 > $(OUTDIR)/output.part4.known2.txt
java -cp bin LSBSTApp 1 2 00 > $(OUTDIR)/output.part4.known3.txt
java -cp bin LSBSTApp 6 33 02 > $(OUTDIR)/output.part4.invalid1.txt
java -cp bin LSBSTApp 1 2 39 > $(OUTDIR)/output.part4.invalid2.txt
java -cp bin LSBSTApp 66 9 02 > $(OUTDIR)/output.part4.invalid3.txt
java -cp bin LSBSTApp > $(OUTDIR)/output.part3.printallareas.txt
runpart5:
sh Scripts/commands2.sh