-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile.am
218 lines (194 loc) · 6.59 KB
/
Makefile.am
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
AUTOMAKE_OPTIONS = subdir-objects
SUBDIRS = udis86
test_SOURCES = src/example.c
bin_PROGRAMS = decompile16 decompile32 decompile64 test cfgtest projecttest
decompile16_CFLAGS = -D TARGET32 -std=c++0x -I${top_srcdir}/udis86/ -I${top_srcdir} -Wall -I${top_srcdir}/src
decompile32_CFLAGS = -D TARGET32 -std=c++0x -I${top_srcdir}/udis86/ -I${top_srcdir} -Wall -I${top_srcdir}/src
decompile64_CFLAGS = -D TARGET64 -std=c++0x -I${top_srcdir}/udis86/ -I${top_srcdir} -Wall -I${top_srcdir}/src
decompile16_CPPFLAGS = -D TARGET32 -std=c++0x -I${top_srcdir}/udis86/ -I${top_srcdir} -Wall -I${top_srcdir}/src
decompile32_CPPFLAGS = -D TARGET32 -std=c++0x -I${top_srcdir}/udis86/ -I${top_srcdir} -Wall -I${top_srcdir}/src
decompile64_CPPFLAGS = -D TARGET64 -std=c++0x -I${top_srcdir}/udis86/ -I${top_srcdir} -Wall -I${top_srcdir}/src
cfgtest_CFLAGS = -D TARGET32 -std=c++0x -I${top_srcdir}/udis86/ -I${top_srcdir} -Wall -I${top_srcdir}/src
cfgtest_CPPFLAGS = -D TARGET32 -std=c++0x -I${top_srcdir}/udis86/ -I${top_srcdir} -Wall -I${top_srcdir}/src
cfgtest_SOURCES = \
src/code_elements/code_element.cpp \
src/code_elements/ce_basic.cpp \
src/code_elements/ce_dummy.cpp \
src/code_elements/code_if_else.cpp \
src/code_elements/code_multi_if.cpp \
src/code_elements/code_run.cpp \
src/code_elements/code_do_while_loop.cpp \
src/code_elements/code_while_loop.cpp \
src/code_elements/related_code.cpp \
src/helpers.cpp \
src/statement.cpp \
src/var/type.cpp \
src/cfgtest.cpp \
src/disassembly/disassembler.cpp \
src/var/combo.cpp \
src/var/related_code_maker.cpp
projecttest_CFLAGS = -D TARGET32 -std=c++0x -I${top_srcdir}/udis86/ -I${top_srcdir} -Wall -I${top_srcdir}/src
projecttest_CPPFLAGS = -D TARGET32 -std=c++0x -I${top_srcdir}/udis86/ -I${top_srcdir} -Wall -I${top_srcdir}/src
projecttest_SOURCES = \
src/tests/projects.cpp \
src/executable/executable.cpp \
src/executable/exe_loader.cpp \
src/project/project.cpp \
src/project/build_system.cpp \
src/project/source_file.cpp \
src/function.cpp \
src/code_elements/related_code.cpp \
src/code_elements/code_element.cpp \
src/var/combo.cpp \
src/var/type.cpp \
src/statement.cpp
TESTS = cfgtest projecttest
#BUILT_SOURCES = libudis86.a
decompile16_LDADD = -ludis86
decompile32_LDADD = -ludis86
decompile64_LDADD = -ludis86
if WINDOWS
EXTRALDFLAGS = -mconsole
else
EXTRALDFLAGS =
endif
decompile16_LDFLAGS = -L./udis86/libudis86/.libs $(EXTRALDFLAGS)
decompile32_LDFLAGS = -L./udis86/libudis86/.libs $(EXTRALDFLAGS)
decompile64_LDFLAGS = -L./udis86/libudis86/.libs $(EXTRALDFLAGS)
decompile16_SOURCES = \
src/var/type.cpp \
src/statement.cpp \
src/operators/oper1.cpp \
src/operators/oper2.cpp \
src/operators/oper_dereference.cpp \
src/operators/oper_preincrement.cpp \
src/operators/oper_add.cpp \
src/operators/oper_left_shift.cpp \
src/operators/oper_right_shift.cpp \
src/operators/oper_sub.cpp \
src/operators/oper_assignment.cpp \
src/operators/oper_bitwise_and.cpp \
src/operators/oper_bitwise_or.cpp \
src/operators/oper_segbase.cpp \
src/decompile.cpp \
src/function.cpp \
src/code_elements/ce_basic.cpp \
src/code_elements/code_element.cpp \
src/code_elements/code_if_else.cpp \
src/code_elements/code_multi_if.cpp \
src/code_elements/code_run.cpp \
src/code_elements/code_do_while_loop.cpp \
src/code_elements/code_while_loop.cpp \
src/code_elements/related_code.cpp \
src/executable/executable.cpp \
src/executable/exe_loader.cpp \
src/executable/exe_elf.cpp \
src/executable/exe_macho.cpp \
src/executable/exe_pe.cpp \
src/executable/exe_real.cpp \
src/disassembly/disassembler.cpp \
src/disassembly/disass_x86.cpp \
src/disassembly/disass_ppc.cpp \
src/project/autotools.cpp \
src/project/build_system.cpp \
src/project/project.cpp \
src/project/source_file.cpp \
src/var/combo.cpp \
src/exceptions.cpp \
src/helpers.cpp
decompile32_SOURCES = \
src/var/type.cpp \
src/statement.cpp \
src/operators/oper1.cpp \
src/operators/oper2.cpp \
src/operators/oper_dereference.cpp \
src/operators/oper_preincrement.cpp \
src/operators/oper_add.cpp \
src/operators/oper_left_shift.cpp \
src/operators/oper_right_shift.cpp \
src/operators/oper_sub.cpp \
src/operators/oper_assignment.cpp \
src/operators/oper_bitwise_and.cpp \
src/operators/oper_bitwise_or.cpp \
src/operators/oper_segbase.cpp \
src/decompile.cpp \
src/function.cpp \
src/code_elements/ce_basic.cpp \
src/code_elements/code_element.cpp \
src/code_elements/code_if_else.cpp \
src/code_elements/code_multi_if.cpp \
src/code_elements/code_run.cpp \
src/code_elements/code_do_while_loop.cpp \
src/code_elements/code_while_loop.cpp \
src/code_elements/related_code.cpp \
src/executable/executable.cpp \
src/executable/exe_loader.cpp \
src/executable/exe_elf.cpp \
src/executable/exe_macho.cpp \
src/executable/exe_pe.cpp \
src/executable/exe_real.cpp \
src/disassembly/disassembler.cpp \
src/disassembly/disass_x86.cpp \
src/disassembly/disass_ppc.cpp \
src/project/autotools.cpp \
src/project/build_system.cpp \
src/project/project.cpp \
src/project/source_file.cpp \
src/var/combo.cpp \
src/exceptions.cpp \
src/helpers.cpp
decompile64_SOURCES = \
src/var/type.cpp \
src/statement.cpp \
src/operators/oper1.cpp \
src/operators/oper2.cpp \
src/operators/oper_dereference.cpp \
src/operators/oper_preincrement.cpp \
src/operators/oper_add.cpp \
src/operators/oper_left_shift.cpp \
src/operators/oper_right_shift.cpp \
src/operators/oper_sub.cpp \
src/operators/oper_assignment.cpp \
src/operators/oper_bitwise_and.cpp \
src/operators/oper_bitwise_or.cpp \
src/operators/oper_segbase.cpp \
src/decompile.cpp \
src/function.cpp \
src/code_elements/ce_basic.cpp \
src/code_elements/code_element.cpp \
src/code_elements/code_if_else.cpp \
src/code_elements/code_multi_if.cpp \
src/code_elements/code_run.cpp \
src/code_elements/code_do_while_loop.cpp \
src/code_elements/code_while_loop.cpp \
src/code_elements/related_code.cpp \
src/executable/executable.cpp \
src/executable/exe_loader.cpp \
src/executable/exe_elf.cpp \
src/executable/exe_macho.cpp \
src/executable/exe_pe.cpp \
src/executable/exe_real.cpp \
src/disassembly/disassembler.cpp \
src/disassembly/disass_x86.cpp \
src/disassembly/disass_ppc.cpp \
src/project/autotools.cpp \
src/project/build_system.cpp \
src/project/project.cpp \
src/project/source_file.cpp \
src/var/combo.cpp \
src/exceptions.cpp \
src/helpers.cpp
if HAVE_DOXYGEN
directory = $(top_srcdir)/docs/man/man3/
dist_man_MANS = $(directory)/man_page_1.3 $(directory)/man_page_2.3
$(directory)/man_page_1.3: doxyfile.stamp
$(directory)/man_page_2.3: doxyfile.stamp
doxyfile.stamp: decompile16 decompile32 decompile64
$(DOXYGEN) Doxyfile
echo Timestamp > doxyfile.stamp
CLEANFILES = doxyfile.stamp
all-local: doxyfile.stamp
clean-local:
rm -rf $(top_srcdir)/docs/man
rm -rf installer
endif