forked from simsong/bulk_extractor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
107 lines (93 loc) · 3.42 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
# bulk_extractor Makefile.am
# This file is compiled with automake to create Makefile.in.
# Makefile.in is transformed by "configure" to create Makefile
#
# (C) 2020 Simson L. Garfinkel
# https://www.gnu.org/licenses/lgpl-3.0.en.html
SUBDIRS = doc doc/latex_manuals man src src/tests python specfiles tests
# don't include bootstrap. People run it, and they shoudln't
# It's only for people who check out the git repo
EXTRA_DIST = \
.gitignore \
licenses/LICENSE.Autoconf_exception \
licenses/LICENSE.CPL1 \
licenses/LICENSE.GPLv3 \
licenses/LICENSE.LGPLv2.1 \
licenses/LICENSE.LGPLv3 \
m4/ac_check_classpath.m4 \
m4/ac_check_junit.m4 \
m4/ac_check_rqrd_class.m4 \
m4/ac_java_options.m4 \
m4/ac_prog_jar.m4 \
m4/ac_prog_java.m4 \
m4/ac_prog_java_cc.m4 \
m4/ac_prog_java_works.m4 \
m4/ac_prog_javac.m4 \
m4/ac_prog_javac_works.m4 \
m4/ac_prog_javadoc.m4 \
m4/ac_prog_javah.m4 \
m4/ac_try_compile_java.m4 \
m4/ac_try_run_javac.m4 \
m4/ax_pthread.m4 \
bootstrap.sh \
README.md \
$(SRC_WIN_DIST)
ACLOCAL_AMFLAGS = -I m4
distclean2:
@echo Deleting:
@find . \
\( -name '*.orig' -o -name '*.rej' -o -name '*~' \
-o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
-o -name '.*.rej' -o -size 0 \
-o -name '*%' -o -name '.*.cmd' -o -name 'core' \) \
-type f -print | tee /dev/tty | xargs rm -f
.PHONY: exels
exels:
/bin/ls -l */*exe
.PHONY: execlean
execlean:
/bin/rm -f */*exe
.PHONY: win32
win32: win32/bulk_extractor32.exe
.PHONY: win64
win64: win64/bulk_extractor64.exe
win32/bulk_extractor32.exe:
@echo '****************************************************'
@echo '*** making win32 with mingw32-configure and make ***'
@echo '****************************************************'
if [ -r Makefile ]; then $(MAKE) distclean ; fi
if [ ! -d win32 ]; then mkdir win32 ; fi
if [ ! -r win32/Makefile ]; then (cd win32;mingw32-configure) ; fi
(cd win32;$(MAKE))
(cp win32/src/bulk_extractor.exe win32/bulk_extractor32.exe)
ls -l win32/bulk_extractor32.exe
win64/bulk_extractor64.exe:
@echo '****************************************************'
@echo '*** making win64 with mingw32-configure and make ***'
@echo '****************************************************'
if [ -r Makefile ]; then $(MAKE) distclean ; fi
if [ ! -d win64 ]; then mkdir win64 ; fi
if [ ! -r win64/Makefile ]; then (cd win64;mingw64-configure) ; fi
(cd win64;$(MAKE))
(cp win64/src/bulk_extractor.exe win64/bulk_extractor64.exe)
ls -l win64/bulk_extractor64.exe
winlibs:
@echo '*****************************************'
@echo '*** making win32 and win64 libraries ***'
@echo '*****************************************'
if [ -r Makefile ]; then $(MAKE) distclean ; fi
if [ ! -d win32 ]; then mkdir win32 ; fi
if [ ! -r win32/Makefile ]; then (cd win32;mingw32-configure --disable-libewf --disable-afflib) ; fi
(cd win32/src;$(MAKE) lib;mv libbulkextractor.so ../../libbulkextractor32.DLL)
if [ ! -d win64 ]; then mkdir win64 ; fi
if [ ! -r win64/Makefile ]; then (cd win64;mingw64-configure --disable-libewf --disable-afflib) ; fi
(cd win64/src;$(MAKE) lib;mv libbulkextractor.so ../../libbulkextractor64.DLL)
ls -l libbulk*.DLL
.PHONY: lib
lib:
(cd src; $(MAKE) lib)
.PHONY: libinstall
libinstall:
install -D src/libbulkextractor.so $(prefix)/lib/libbulkextractor.so
install -D python/module/bulkextractor.py $(prefix)/lib/python2.7/dist-packages/bulkextractor.py
if [ -r /sbin/ldconfig ]; /sbin/ldconfig -v ; fi