-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (33 loc) · 1.89 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
HEADERS = BuildReplacement.h MyVisitor.h InsnUtils.h Mutation.h make-mutants.pl
DYNINST_INSTALL_ROOT = /export/scratch/vaibhav/dyninst/build-install
TBB_INCLUDE_DIRS=/export/scratch/vaibhav/tbb/tbb2019_20181203oss/include
LIBELF_INCLUDE_DIR=/export/scratch/vaibhav/elfutils/elfutils-install/include
LIBELF_LIBRARIES=/export/scratch/vaibhav/elfutils/elfutils-install/lib/
LIBDWARF_INCLUDE_DIR=LIBELF_INCLUDE_DIR
LIBDWARF_LIBRARIES=LIBELF_LIBRARIES
default: ReplaceInsn CMOVReplace dyninst-test small-cmov-eg small-cmov-eg-1 small-setcc-eg
ReplaceInsn: ReplaceInsn.cpp $(HEADERS)
c++ ReplaceInsn.cpp -g -o ReplaceInsn \
-L $(DYNINST_INSTALL_ROOT)/lib -L $(LIBDWARF_LIBRARIES)/lib -L $(LIBELF_LIBRARIES) \
-I $(DYNINST_INSTALL_ROOT)/include -I $(TBB_INCLUDE_DIRS) \
-I $(LIBELF_INCLUDE_DIR) -I $(LIBDWARF_INCLUDE_DIR) \
-ldyninstAPI -linstructionAPI -ldw -lelf -lpatchAPI -lsymtabAPI -std=c++0x -lparseAPI -lcommon -lboost_system
CMOVReplace : CMOVReplace.cpp $(HEADERS)
c++ CMOVReplace.cpp -g -o CMOVReplace \
-L $(DYNINST_INSTALL_ROOT)/lib -L $(LIBDWARF_LIBRARIES)/lib -L $(LIBELF_LIBRARIES) \
-I $(DYNINST_INSTALL_ROOT)/include -I $(TBB_INCLUDE_DIRS) \
-I $(LIBELF_INCLUDE_DIR) -I $(LIBDWARF_INCLUDE_DIR) \
-ldyninstAPI -linstructionAPI -ldw -lelf -lpatchAPI -lsymtabAPI -std=c++0x -lparseAPI -lcommon -lboost_system
dyninst-test: dyninst-test.c
gcc dyninst-test.c -O0 -o dyninst-test-O0
gcc dyninst-test.c -O1 -o dyninst-test-O1
gcc dyninst-test.c -O2 -o dyninst-test-O2
gcc dyninst-test.c -O3 -o dyninst-test-O3
small-cmov-eg: small-cmov-eg.S
gcc small-cmov-eg.S -o small-cmov-eg
small-cmov-eg-1: small-cmov-eg-1.S
gcc small-cmov-eg-1.S -o small-cmov-eg-1
small-setcc-eg: small-setcc-eg.S
gcc small-setcc-eg.S -o small-setcc-eg
clean:
rm -f ReplaceInsn CMOVReplace dyninst-test small-cmov-eg small-setcc-eg