-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
executable file
·46 lines (34 loc) · 2.36 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
HASHTABLELIST=./hashTable/hashTableList
HASHTABLE=./hashTable
PARSING=./parsing
VECTOR=./Vector
LSH=./LSH
HASHMAP = ./Hypercube/HashMap
HYPERCUBE = ./Hypercube
CLUSTER = ./Clustering
FRECHET = ./FrechetDistance
BINARYTREE = ./BinaryTree
FRECHERCONT=./Fred-master/src
CC=gcc
CCPLUSPLUS=g++ -O2 -std=c++14
CFLAGS= -g -O2 -Wall -I$(HASHTABLELIST) -I$(HASHTABLE) -I$(PARSING) -I$(VECTOR) -I$(LSH) -I$(CLUSTER) -I$(FRECHET) -I$(BINARYTREE) -I$(FRECHERCONT)
OBJ1= search.o mainLSH.o mainCube.o $(HASHTABLE)/hashTable.o $(HASHTABLELIST)/hashTableList.o $(PARSING)/parsingLSH.o $(PARSING)/parsingCube.o $(VECTOR)/vector.o $(LSH)/lsh.o $(HYPERCUBE)/hypercube.o $(HASHMAP)/hashmap.o $(LSH)/helperFunctions.o $(FRECHET)/discreteFrechet.o $(BINARYTREE)/binaryTree.o
OBJ2= mainCluster.o $(HASHTABLE)/hashTable.o $(HASHTABLELIST)/hashTableList.o $(PARSING)/parsingCluster.o $(VECTOR)/vector.o $(HASHMAP)/hashmap.o $(LSH)/lsh.o $(LSH)/helperFunctions.o $(CLUSTER)/clustering.o $(CLUSTER)/clusterHelpingFuns.o $(CLUSTER)/kmeansPlusPlus.o $(HYPERCUBE)/hypercube.o $(FRECHET)/discreteFrechet.o $(BINARYTREE)/binaryTree.o
OBJ3= my_interface.o simplification.o point.o interval.o frechet.o curve.o config.o
OBJ4= unitTesting.o mainLSH.o mainCube.o $(LSH)/lsh.o $(HYPERCUBE)/hypercube.o $(PARSING)/parsingLSH.o $(PARSING)/parsingCube.o $(HASHTABLE)/hashTable.o $(HASHTABLELIST)/hashTableList.o $(HASHMAP)/hashmap.o $(VECTOR)/vector.o $(LSH)/helperFunctions.o $(FRECHET)/discreteFrechet.o $(BINARYTREE)/binaryTree.o
EXEC1 = search
EXEC2 = cluster
EXEC3 = unitTesting
all: $(EXEC1) $(EXEC2) $(EXEC3)
unit_testing: $(EXEC3)
$(EXEC1): $(OBJ1)
$(CCPLUSPLUS) -c $(FRECHERCONT)/my_interface.cpp $(FRECHERCONT)/simplification.cpp $(FRECHERCONT)/point.cpp $(FRECHERCONT)/interval.cpp $(FRECHERCONT)/frechet.cpp $(FRECHERCONT)/curve.cpp $(FRECHERCONT)/config.cpp
$(CC) $(CFLAGS) $(OBJ1) $(OBJ3) -o $(EXEC1) -lm -lstdc++
$(EXEC2): $(OBJ2)
$(CC) $(CFLAGS) $(OBJ2) $(OBJ3) -o $(EXEC2) -lm -lstdc++
$(EXEC3): $(OBJ4)
$(CCPLUSPLUS) -c $(FRECHERCONT)/my_interface.cpp $(FRECHERCONT)/simplification.cpp $(FRECHERCONT)/point.cpp $(FRECHERCONT)/interval.cpp $(FRECHERCONT)/frechet.cpp $(FRECHERCONT)/curve.cpp $(FRECHERCONT)/config.cpp
$(CC) $(CFLAGS) $(OBJ4) $(OBJ3) -o $(EXEC3) -lm -lstdc++ -lcunit
.PHONY: clean
clean:
rm -f $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(EXEC1) $(EXEC2) $(EXEC3)