forked from googleprojectzero/functionsimsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (36 loc) · 1.65 KB
/
Copy pathMakefile
File metadata and controls
51 lines (36 loc) · 1.65 KB
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
CPP = g++
CPPFLAGS = -ggdb -O3 -std=c++11
LIBDIR = -L./third_party/pe-parse/parser-library -L./third_party/libdwarf/libdwarf
LIBS = -lparseAPI -linstructionAPI -lsymtabAPI -lsymLite -ldynDwarf -ldynElf \
-lcommon -lelf -ldwarf -lpthread -lpe-parser-library
OBJ = disassembly.o pecodesource.o flowgraph.o flowgraphutil.o \
functionminhash.o minhashsearchindex.o
ALL = disassemble dotgraphs graphhashes addfunctionstoindex createfunctionindex\
matchfunctionsfromindex dumpfunctionindexinfo growfunctionindex
%.o: %.cpp
$(CPP) -c -o $@ $< $(CPPFLAGS)
all: $(ALL)
disassemble: $(OBJ)
$(CPP) $(CPPFLAGS) -o disassemble disassemble.cpp $(OBJ) \
$(LIBDIR) $(LIBS)
dotgraphs: dotgraphs.cpp $(OBJ)
$(CPP) $(CPPFLAGS) -o dotgraphs dotgraphs.cpp $(OBJ) $(LIBDIR) $(LIBS)
graphhashes: graphhashes.cpp $(OBJ)
$(CPP) $(CPPFLAGS) -o graphhashes graphhashes.cpp $(OBJ) $(LIBDIR) $(LIBS)
createfunctionindex: createfunctionindex.cpp $(OBJ)
$(CPP) $(CPPFLAGS) -o createfunctionindex createfunctionindex.cpp $(OBJ) \
$(LIBDIR) $(LIBS)
addfunctionstoindex: addfunctionstoindex.cpp $(OBJ)
$(CPP) $(CPPFLAGS) -o addfunctionstoindex addfunctionstoindex.cpp $(OBJ) \
$(LIBDIR) $(LIBS)
matchfunctionsfromindex: matchfunctionsfromindex.cpp $(OBJ)
$(CPP) $(CPPFLAGS) -o matchfunctionsfromindex matchfunctionsfromindex.cpp $(OBJ) \
$(LIBDIR) $(LIBS)
dumpfunctionindexinfo: dumpfunctionindexinfo.cpp $(OBJ)
$(CPP) $(CPPFLAGS) -o dumpfunctionindexinfo dumpfunctionindexinfo.cpp $(OBJ) \
$(LIBDIR) $(LIBS)
growfunctionindex: growfunctionindex.cpp $(OBJ)
$(CPP) $(CPPFLAGS) -o growfunctionindex growfunctionindex.cpp $(OBJ) \
$(LIBDIR) $(LIBS)
clean:
rm ./*.o $(ALL)