-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.orig
85 lines (62 loc) · 2.54 KB
/
Makefile.orig
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
test: runtest test5
echo ok
GCC=gcc-4.7
PLUGIN_SOURCE_FILES= plugin.c
TOP := $(dir $(lastword $(MAKEFILE_LIST)))
GCCPLUGIN_HEADER_DIR=/usr/lib/gcc/x86_64-linux-gnu/5.1.1/plugin/include
CXX=g++-5 -c
CFLAGS+= -g -O0 -save-temps -I$(GCCPLUGIN_HEADER_DIR) -fPIC -O2 -Wl,-E -fstack-protector -ldl -lm -lpthread -lc -lcrypt -c
CXXFLAGS+= -g -O0 -save-temps -c
all : test21 test22 test23 test2 test2c1 test3 test4 test6 test71 test7 test_enum testarray
echo ok
#testgen2 testgen
runtest :
make
test_bootstrap: runtest
LD_LIBRARY_PATH=/usr/local/lib ${CXX} -g3 -O0 -dH -ggdb -save-temps -I/usr/lib/gcc/x86_64-linux-gnu/5/plugin/include -I /usr/include/raptor2 -I /usr/include/rasqal -I ../google-coredumper/src -fplugin=./.libs/libtemplate_plugin.so plugin.cpp
test_empty: runtest
# -e open,stat,lstat,fstat,socket,socketpair,execve,vfork,recvfrom,access,mmap,close
# strace -f -o strace.txt
LD_LIBRARY_PATH=/usr/local/lib ${CXX} -g3 -O0 -dH -ggdb -save-temps -I/usr/lib/gcc/x86_64-linux-gnu/5/plugin/include -I /usr/include/raptor2 -I /usr/include/rasqal -I ../google-coredumper/src -fplugin=./.libs/libtemplate_plugin.so tests/test.c
test_simple_int:
${CXX} -fplugin=./.libs/libtemplate_plugin.so tests/test_simple_int.cpp
test2:
${CXX} -fplugin=./.libs/libtemplate_plugin.so tests/plugincpp_test.cpp
test2c1:
${CXX} -fplugin=./.libs/libtemplate_plugin.so tests/plugincpp_test_template.cpp
test21:
${CXX} -c -fplugin=./.libs/libtemplate_plugin.so tests/crash1.cpp
test22:
${CXX} -c -fplugin=./.libs/libtemplate_plugin.so tests/plugincpp_interface.cpp
test23:
${CXX} -c -fplugin=./.libs/libtemplate_plugin.so tests/plugincpp_interface_simple.cpp
testarray:
${CXX} -c -std=gnu++11 -fplugin=./.libs/libtemplate_plugin.so tests/test_array.cpp
test7:
${CXX} -c -fplugin=./.libs/libtemplate_plugin.so tests/test_struct.cpp
test71:
gcc -c -fplugin=./.libs/libtemplate_plugin.so tests/test_struct.cpp
test3:
${CXX} -fplugin=./.libs/libtemplate_plugin.so -c tests/test.c
test4:
${CXX} -fplugin=./.libs/libtemplate_plugin.so -c tests/test_tree.cpp
test_enum:
${CXX} -fplugin=./.libs/libtemplate_plugin.so -c tests/test_enum.cpp
test6:
${CXX} -fplugin=./.libs/libtemplate_plugin.so -c tests/test_enum1.cpp
testgen:
${CXX} -save-temps -Wall -std=gnu++11 tests/test_cpp_out.cpp
testgen2:
${CXX} -save-temps -Wall -std=gnu++11 tests/test_cpp_out_v2.cpp
clean :
rm plugin.so
rm *.o
rm *.i *.ii *.s
static_test :
${CXX} -std=c++0x -I fake fake/tree.c plugincpp.cpp RecordContext.cpp
distclean:
- rm *.i *.ii *.s
- make distclean;
autoreconf;
./configure;
make