-
Notifications
You must be signed in to change notification settings - Fork 187
/
Makefile.am
81 lines (67 loc) · 2.73 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
# 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
# We need to list *all* of the subdirs here that have Makefiles in them that are executed by
# doing a chdir into the directory and typing 'make'. So we do not need src/be20_api
SUBDIRS = doc doc/latex_manuals man src src/tests specfiles tests
# Include things explicitly
# Note - autoconf seems to automatically include the m4 rules that are used by configure.ac - no need to list them heren
#
# Don't include bootstrap. People run it, and they shouldn't
# It's only for people who check out the git repo
#
# note - we are allowed to use wildcards below! Who knew.
# and using $wildcard prevents it from running on mac, which doesn't use gnu make
include Makefile.auto_defs
EXTRA_DIST = $(SRC_WIN_DIST) $(AUTO_DOC_FILES) $(AUTO_ETC_FILES) $(AUTO_LICENSES) \
$(srcdir)/.gitignore \
$(srcdir)/CODING_STANDARDS.md \
$(srcdir)/LICENSE.md \
$(srcdir)/README.md
# ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -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: win64
win64: win64/bulk_extractor64.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 win64 library ***'
@echo '*****************************'
if [ -r Makefile ]; then $(MAKE) distclean ; fi
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