-
Notifications
You must be signed in to change notification settings - Fork 218
Expand file tree
/
Copy pathMakefile.am
More file actions
170 lines (145 loc) · 4.42 KB
/
Copy pathMakefile.am
File metadata and controls
170 lines (145 loc) · 4.42 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
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
BE20_API_DIR= be20_api
include Makefile.auto_defs
#include be20_api/Makefile.defs
#include rar/Makefile.defs
#DFXML_SRC_DIR=be20_api/dfxml_cpp/src/
#include $(DFXML_SRC_DIR)Makefile.defs
# $(BE20_API_EXTRA_DIST)
EXTRA_DIST = .gitignore scan_headers.flex scan_httpheader_lg.cpp $(AUTO_EXTRA_DIST) $(AUTO_TESTS_DIST)
ETAGS = etags-emacs
ACLOCAL_AMFLAGS = -I m4
# So that relative imports from be20_api work
AM_CPPFLAGS = @RE2_CFLAGS@ -I$(top_srcdir)/src/be20_api -I$(top_srcdir)/src/be20_api/utfcpp/source
bulk_extractor_LDADD = @RE2_LIBS@
test_be_LDADD = @RE2_LIBS@
AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS = bulk_extractor
check_PROGRAMS = test_be
TESTS = test_be
CLEANFILES = scan_accts.cpp scan_base16.cpp scan_email.cpp scan_gps.cpp \
be20_api/config.h be20_api/dfxml/src/config.h config.h *.d *~
# bring in defs from two included projects
# note: don't be clever and use the $variable on the Include line. it doesn't work
TSK3INCS = \
tsk3_fatdirs.h\
tsk3/auto/tsk_auto.h\
tsk3/base/tsk_base.h\
tsk3/base/tsk_os.h\
tsk3/fs/tsk_fatfs.h\
tsk3/fs/tsk_fs.h\
tsk3/fs/tsk_ntfs.h\
tsk3/hashdb/tsk_hashdb.h\
tsk3/img/tsk_img.h\
tsk3/libtsk.h\
tsk3/tsk_incs.h\
tsk3/vs/tsk_vs.h
# These scanners are based on GNUflex
flex_scanners = \
sbuf_flex_scanner.h \
scan_base16.flex \
scan_accts.flex \
scan_email.flex scan_email.h \
scan_gps.flex
# This is gross. Sorry!
scan_base16.o: sbuf_flex_scanner.h
scan_accts.o: sbuf_flex_scanner.h
scan_email.o: sbuf_flex_scanner.h
scan_gps.o: sbuf_flex_scanner.h
# These scanners are based on Lightbox Technology's lightgrep
lightgrep_scanners = \
pattern_scanner.cpp pattern_scanner.h \
pattern_scanner_utils.cpp pattern_scanner_utils.h \
scan_lightgrep.cpp \
scan_accts_lg.cpp \
scan_base16_lg.cpp \
scan_email_lg.cpp \
scan_gps_lg.cpp
# scanners_builtin are the scanners that are compiled into the binary
scanners_builtin = \
bulk_extractor_scanners.cpp \
scan_aes.cpp scan_aes.h \
scan_base64.cpp scan_base64.h \
scan_ccns2.cpp scan_ccns2.h \
scan_elf.cpp \
scan_evtx.cpp \
scan_exif.cpp scan_exif.h exif_reader.cpp exif_reader.h exif_entry.h exif_entry.cpp jpeg_validator.h \
scan_exiv2.cpp \
scan_facebook.cpp \
scan_find.cpp \
scan_gzip.cpp \
scan_hiberfile.cpp pyxpress.c pyxpress.h \
scan_httplogs.cpp \
scan_json.cpp \
scan_kml.cpp \
scan_msxml.cpp scan_msxml.h \
scan_net.cpp scan_net.h \
scan_ntfsindx.cpp \
scan_ntfslogfile.cpp \
scan_ntfsmft.cpp \
scan_ntfsusn.cpp \
scan_outlook.cpp scan_outlook.h \
scan_pdf.cpp scan_pdf.h \
scan_rar.cpp \
scan_sqlite.cpp \
scan_utmp.cpp \
scan_vcard.cpp scan_vcard.h \
scan_windirs.cpp \
scan_winlnk.cpp \
scan_winpe.cpp \
scan_winprefetch.cpp \
scan_wordlist.cpp scan_wordlist.h \
scan_xor.cpp \
scan_yarax.cpp \
scan_zip.cpp \
pcap_writer.cpp \
pcap_writer.h
if FLEXSCANNERS_ENABLED
scanners_builtin += $(flex_scanners)
endif
if LIGHTGREP_ENABLED
scanners_builtin += $(lightgrep_scanners)
endif
if RAR_ENABLED
scanners_builtin += $(AUTO_RAR_FILES)
endif
bulk_extractor_parts = \
$(TSK3INCS) \
$(AUTO_CPP_FILES) \
$(AUTO_H_FILES) \
bulk_extractor_restarter.h \
bulk_extractor_scanners.h \
base64_forensic.cpp \
base64_forensic.h \
bulk_extractor.cpp \
bulk_extractor.h \
cxxopts.hpp \
image_process.cpp \
image_process.h \
notify_thread.cpp \
notify_thread.h \
phase1.h \
phase1.cpp \
sbuf_decompress.cpp \
sbuf_decompress.h
bulk_extractor_SOURCES = $(bulk_extractor_parts) $(scanners_builtin) main.cpp
test_be_SOURCES = $(bulk_extractor_parts) $(scanners_builtin) \
be20_api/catch.hpp test_be.h test_be1.cpp test_be2.cpp test_be3.cpp
runs.txt: test_be tests/run_each.sh
bash tests/run_each.sh > runs.txt 2>&1
#lib: libbulkextractor.so
#libbulkextractor.so: $(bulk_extractorlib_OBJECTS)
# $(CXX) -shared -fPIC -o $@ $(LDFLAGS) $(bulk_extractorlib_OBJECTS) $(LIBS)
#unitest$(EXEEXT): unicode_escape.cpp
# $(CXX) -DSTANDALONE -o unitest$(EXEEXT) -g unicode_escape.cpp $(CPPFLAGS) $(CXXFLAGS) -I..
#
# Rule to compile .flex into a .o
# FreeBSD NOTE: flex does not support -R and -o does not work properly
# | sed "s/static int yy_get_next_buffer/static int XXyy_get_next_buffer/"
#
SUFFIXES = .flex
FLEX_CXXFLAGS=-Wno-shadow -Wno-effc++ -Wno-redundant-decls -Wno-missing-noreturn
.flex.o:
@echo " FLEX-CXX" $@
@$(LEX) -R -t $< | sed "s/register //" > `basename $@ .o`.cpp
@$(CXX) $(CPPFLAGS) $(AM_CPPFLAGS) $(CXXFLAGS) $(FLEX_CXXFLAGS) \
-I${top_srcdir} -I${srcdir} -I.. -I../../_build -c `basename $@ .o`.cpp