-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (31 loc) · 1.35 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
PROG = output
CFLAGS = -g -Wall
PY_FILES = plotting.py
#CPP_FILES = entropy.cpp randomwalk.cpp bresenham.cpp following.cpp #${wildcard *cpp}
#CPP_FILES = random_chasing.cpp randomwalk.cpp bresenham.cpp #${wildcard *cpp}
#CPP_FILES = dynamic_following.cpp randomwalk.cpp bresenham.cpp following.cpp #${wildcard *cpp}
#CPP_FILES = classification_set.cpp randomwalk.cpp bresenham.cpp
#use this line for training
#CPP_FILES = training.cpp randomwalk.cpp bresenham.cpp following.cpp #${wildcard *cpp}
#use this line ONCE done training (creates a new set to run detection/classification on)
CPP_FILES = classification_set.cpp randomwalk.cpp bresenham.cpp following.cpp
# for generating RW-chasing csv
#CPP_FILES = RW-Chasing.cpp randomwalk.cpp bresenham.cpp following.cpp
all : ${PROG};
${PROG} :
#compiles cpp code
-g++ ${CFLAGS} -o ${PROG} ${CPP_FILES}
#runs the exe file
-./${PROG}
#runs python files in PY_FILES
-python ${PY_FILES}
# -"H:\Program Files\MATLAB\R2020b\bin\matlab.exe" -nosplash -nodesktop -r "run('C:\Users\Jack Qiao\OneDrive\Desktop\Research\HSMC 21\phishing\clustering.m');"
train :
-g++ ${CFLAGS} -o ${PROG} training.cpp randomwalk.cpp bresenham.cpp following.cpp
-./${PROG}
-python plotting.py
generate_set :
-g++ ${CFLAGS} -o ${PROG} classification_set.cpp randomwalk.cpp bresenham.cpp following.cpp
-./${PROG}
clean:
-del ${PROG} *.o *.exe *.csv