-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (26 loc) · 821 Bytes
/
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
# binary search program makefile
# Zongo Maqutu
# March 2020
JAVAC=/usr/bin/javac
.SUFFIXES: .java .class
SRCDIR=src
BINDIR=bin
$(BINDIR)/%.class:$(SRCDIR)/%.java
$(JAVAC) -d $(BINDIR)/ -cp $(BINDIR) $<
#CLASSES=SequentialBasins.class ParallelThreads.class ParallelBasins.class
#CLASS_FILES=$(CLASSES:%.class=$(BINDIR)/%.class)
#default: $(CLASS_FILES)
all:
@javac -d bin $(SRCDIR)/*.java
clean:
rm $(BINDIR)/*.class
#to run the makefile with arguments use the command 'make SequentialBasins ARGS="YOUR ARGUMENTS"'or ParallelBasins ARGS = "YOUR ARGUMENTS"
runLarge:
@java -cp bin Flow "data/largesample_in.txt"
runMedium:
@java -cp bin Flow "data/medsample_in.txt"
#Write a section that will generate and clean Javadoc
docs:
@javadoc -classpath bin/ d docs/ src/*.java
cleandocs:
@rm - r docs/*