-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
33 lines (22 loc) · 968 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
################################ Macros #################################
SHELL = /bin/sh
# Enable debug options
# CFLAGS = -g -Wall -fopenmp
# Enable best optimization options
CFLAGS = -Ofast -march=native -mtune=native -fopenmp -std=c++11
CC = mpic++
OBJECTS = Helper.o ArffImporter.o TreeBuilder.o Classifier.o
################################ Compile ################################
exec: ${OBJECTS} Main.c
$(CC) ${CFLAGS} -o $@ ${OBJECTS} Main.c
Helper.o: Helper.c Helper.h BasicDataStructures.h
$(CC) ${CFLAGS} -c Helper.c
ArffImporter.o: ArffImporter.cpp ArffImporter.h BasicDataStructures.h Helper.h
$(CC) ${CFLAGS} -c ArffImporter.cpp
TreeBuilder.o: TreeBuilder.cpp TreeBuilder.h BasicDataStructures.h Helper.h
$(CC) ${CFLAGS} -c TreeBuilder.cpp
Classifier.o: Classifier.cpp Classifier.h TreeBuilder.h
$(CC) ${CFLAGS} -c Classifier.cpp
################################# Clean #################################
clean:
-rm -f *.o *.h.gch exec