Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
binwalk
Commits
b0366e3f
Commit
b0366e3f
authored
Aug 06, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #64 from Flameeyes/master
build: fix semantics of AC_ARG_ENABLE (issue #63).
parents
b2b0cda8
9718f598
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
36 deletions
+31
-36
Makefile.in
Makefile.in
+6
-6
configure.ac
configure.ac
+17
-22
Makefile
src/bundles/Makefile
+8
-8
No files found.
Makefile.in
View file @
b0366e3f
...
@@ -40,21 +40,21 @@ ida: build
...
@@ -40,21 +40,21 @@ ida: build
if
[
"
$(IDA_DIR)
"
!=
""
]
&&
[
-e
"
$(IDA_DIR)
/python/lib/python2.7"
]
;
then
cp
-R
$(SRC_DIR)
/binwalk
$(IDA_DIR)
/python/lib/python2.7/
;
fi
if
[
"
$(IDA_DIR)
"
!=
""
]
&&
[
-e
"
$(IDA_DIR)
/python/lib/python2.7"
]
;
then
cp
-R
$(SRC_DIR)
/binwalk
$(IDA_DIR)
/python/lib/python2.7/
;
fi
build
:
build
:
if
[
"
$(BUILD_C_LIBS)
"
-eq
"
1
"
]
;
then
make
-C
$(SRC_C_DIR)
;
fi
if
[
"
$(BUILD_C_LIBS)
"
-eq
"
yes
"
]
;
then
make
-C
$(SRC_C_DIR)
;
fi
if
[
"
$(BUILD_BUNDLES)
"
-eq
"
1
"
]
;
then
make
-C
$(SRC_BUNDLES_DIR)
;
fi
if
[
"
$(BUILD_BUNDLES)
"
-eq
"
yes
"
]
;
then
make
-C
$(SRC_BUNDLES_DIR)
;
fi
$(PYTHON)
./setup.py build
$(PYTHON)
./setup.py build
deps
:
deps
:
./deps.sh
./deps.sh
clean
:
clean
:
if
[
"
$(BUILD_C_LIBS)
"
-eq
"
1
"
]
;
then
make
-C
$(SRC_C_DIR)
clean
;
fi
if
[
"
$(BUILD_C_LIBS)
"
-eq
"
yes
"
]
;
then
make
-C
$(SRC_C_DIR)
clean
;
fi
if
[
"
$(BUILD_BUNDLES)
"
-eq
"
1
"
]
;
then
make
-C
$(SRC_BUNDLES_DIR)
clean
;
fi
if
[
"
$(BUILD_BUNDLES)
"
-eq
"
yes
"
]
;
then
make
-C
$(SRC_BUNDLES_DIR)
clean
;
fi
$(PYTHON)
./setup.py clean
$(PYTHON)
./setup.py clean
distclean
:
clean
distclean
:
clean
if
[
"
$(BUILD_C_LIBS)
"
-eq
"
1
"
]
;
then
make
-C
$(SRC_C_DIR)
distclean
;
fi
if
[
"
$(BUILD_C_LIBS)
"
-eq
"
yes
"
]
;
then
make
-C
$(SRC_C_DIR)
distclean
;
fi
if
[
"
$(BUILD_BUNDLES)
"
-eq
"
1
"
]
;
then
make
-C
$(SRC_BUNDLES_DIR)
distclean
;
fi
if
[
"
$(BUILD_BUNDLES)
"
-eq
"
yes
"
]
;
then
make
-C
$(SRC_BUNDLES_DIR)
distclean
;
fi
rm
-rf
Makefile config.
*
*
.cache
rm
-rf
Makefile config.
*
*
.cache
uninstall
:
uninstall
:
...
...
configure.ac
View file @
b0366e3f
...
@@ -18,29 +18,24 @@ AC_ARG_WITH([python],
...
@@ -18,29 +18,24 @@ AC_ARG_WITH([python],
[PYTHON=python])
[PYTHON=python])
AC_ARG_ENABLE([clibs],
AC_ARG_ENABLE([clibs],
[AS_HELP_STRING([--disable-clibs], [do not build/install binwalk c libraries])],
[AS_HELP_STRING([--disable-clibs], [do not build/install binwalk c libraries])],,
[BUILD_C_LIBS=0],
[BUILD_C_LIBS=yes])
[BUILD_C_LIBS=1])
AC_ARG_ENABLE([bundles],
AC_ARG_ENABLE([bundles],
[AS_HELP_STRING([--disable-bundles], [do not build/install any bundled software])],
[AS_HELP_STRING([--disable-bundles], [do not build/install any bundled software])],,
[BUILD_BUNDLES=0],
[BUILD_BUNDLES=yes])
[BUILD_BUNDLES=1])
AC_ARG_ENABLE([libmagic],
AC_ARG_ENABLE([libmagic],
[AS_HELP_STRING([--disable-libmagic], [do not build/install the bundled libmagic library])],
[AS_HELP_STRING([--disable-libmagic], [do not build/install the bundled libmagic library])],,
[BUILD_MAGIC=0],
[BUILD_MAGIC=yes])
[BUILD_MAGIC=1])
AC_ARG_ENABLE([libfuzzy],
AC_ARG_ENABLE([libfuzzy],
[AS_HELP_STRING([--disable-libfuzzy], [do not build/install the bundled libfuzzy library])],
[AS_HELP_STRING([--disable-libfuzzy], [do not build/install the bundled libfuzzy library])],,
[BUILD_FUZZY=0],
[BUILD_FUZZY=yes])
[BUILD_FUZZY=1])
AC_ARG_ENABLE([pyqtgraph],
AC_ARG_ENABLE([pyqtgraph],
[AS_HELP_STRING([--disable-pyqtgraph], [do not build/install the bundled pyqtgraph module])],
[AS_HELP_STRING([--disable-pyqtgraph], [do not build/install the bundled pyqtgraph module])],,
[BUILD_PYQTGRAPH=0],
[BUILD_PYQTGRAPH=yes])
[BUILD_PYQTGRAPH=1])
CFLAGS="-Wall -fPIC $CFLAGS"
CFLAGS="-Wall -fPIC $CFLAGS"
INSTALL_OPTIONS="-m644"
INSTALL_OPTIONS="-m644"
...
@@ -59,28 +54,28 @@ else
...
@@ -59,28 +54,28 @@ else
SOEXT="so"
SOEXT="so"
fi
fi
if test "$BUILD_BUNDLES" == "
0
"
if test "$BUILD_BUNDLES" == "
no
"
then
then
BUILD_MAGIC=
0
BUILD_MAGIC=
no
BUILD_FUZZY=
0
BUILD_FUZZY=
no
BUILD_PYQTGRAPH=
0
BUILD_PYQTGRAPH=
no
fi
fi
if test "$BUILD_MAGIC" != "
0
"
if test "$BUILD_MAGIC" != "
no
"
then
then
rm -rf $(ls ./src/bundles/file-*.tar.gz | sed -e 's/\.tar\.gz//')
rm -rf $(ls ./src/bundles/file-*.tar.gz | sed -e 's/\.tar\.gz//')
(cd ./src/bundles && tar -zxvf file-*.tar.gz > /dev/null)
(cd ./src/bundles && tar -zxvf file-*.tar.gz > /dev/null)
(cd ./src/bundles/file-*/ && ./configure) || exit 1
(cd ./src/bundles/file-*/ && ./configure) || exit 1
fi
fi
if test "$BUILD_FUZZY" != "
0
"
if test "$BUILD_FUZZY" != "
no
"
then
then
rm -rf $(ls ./src/bundles/ssdeep-*.tar.gz | sed -e 's/\.tar\.gz//')
rm -rf $(ls ./src/bundles/ssdeep-*.tar.gz | sed -e 's/\.tar\.gz//')
(cd ./src/bundles && tar -zxvf ssdeep-*.tar.gz > /dev/null)
(cd ./src/bundles && tar -zxvf ssdeep-*.tar.gz > /dev/null)
(cd ./src/bundles/ssdeep-*/ && ./configure) || exit 1
(cd ./src/bundles/ssdeep-*/ && ./configure) || exit 1
fi
fi
if test "$BUILD_PYQTGRAPH" != "
0
"
if test "$BUILD_PYQTGRAPH" != "
no
"
then
then
(cd ./src/bundles && tar -zxvf pyqtgraph-*.tar.gz > /dev/null)
(cd ./src/bundles && tar -zxvf pyqtgraph-*.tar.gz > /dev/null)
fi
fi
...
...
src/bundles/Makefile
View file @
b0366e3f
...
@@ -6,12 +6,12 @@ PYQTGRAPH_VERSION=`ls pyqtgraph-*.tar.gz | cut -d'-' -f2 | cut -d '.' -f1,2,3`
...
@@ -6,12 +6,12 @@ PYQTGRAPH_VERSION=`ls pyqtgraph-*.tar.gz | cut -d'-' -f2 | cut -d '.' -f1,2,3`
.PHONY
:
all clean_libs clean distclean
.PHONY
:
all clean_libs clean distclean
all
:
all
:
if
[
"
$(BUILD_FUZZY)
"
-eq
"
1
"
]
;
then
make
-C
ssdeep-
$(SSDEEP_VERSION)
libfuzzy.la
;
fi
if
[
"
$(BUILD_FUZZY)
"
-eq
"
yes
"
]
;
then
make
-C
ssdeep-
$(SSDEEP_VERSION)
libfuzzy.la
;
fi
if
[
"
$(BUILD_FUZZY)
"
-eq
"
1
"
]
;
then
cp ssdeep-
$(SSDEEP_VERSION)
/.libs/libfuzzy.
$(SOEXT)
$(LIB_DIR)
;
fi
if
[
"
$(BUILD_FUZZY)
"
-eq
"
yes
"
]
;
then
cp ssdeep-
$(SSDEEP_VERSION)
/.libs/libfuzzy.
$(SOEXT)
$(LIB_DIR)
;
fi
if
[
"
$(BUILD_MAGIC)
"
-eq
"
1
"
]
;
then
make
-C
file-
$(FILE_VERSION)
/src magic.h
;
fi
# This must be done first for OSX, else MAGIC_VERSION is undefined
if
[
"
$(BUILD_MAGIC)
"
-eq
"
yes
"
]
;
then
make
-C
file-
$(FILE_VERSION)
/src magic.h
;
fi
# This must be done first for OSX, else MAGIC_VERSION is undefined
if
[
"
$(BUILD_MAGIC)
"
-eq
"
1
"
]
;
then
make
-C
file-
$(FILE_VERSION)
/src libmagic.la
;
fi
if
[
"
$(BUILD_MAGIC)
"
-eq
"
yes
"
]
;
then
make
-C
file-
$(FILE_VERSION)
/src libmagic.la
;
fi
if
[
"
$(BUILD_MAGIC)
"
-eq
"
1
"
]
;
then
cp file-
$(FILE_VERSION)
/src/.libs/libmagic.
$(SOEXT)
$(LIB_DIR)
;
fi
if
[
"
$(BUILD_MAGIC)
"
-eq
"
yes
"
]
;
then
cp file-
$(FILE_VERSION)
/src/.libs/libmagic.
$(SOEXT)
$(LIB_DIR)
;
fi
if
[
"
$(BUILD_PYQTGRAPH)
"
-eq
"
1
"
]
&&
[
!
-e
$(LIB_DIR)
/pyqtgraph
]
;
then
cp
-R
pyqtgraph-
$(PYQTGRAPH_VERSION)
/pyqtgraph
$(LIB_DIR)
/
;
fi
if
[
"
$(BUILD_PYQTGRAPH)
"
-eq
"
yes
"
]
&&
[
!
-e
$(LIB_DIR)
/pyqtgraph
]
;
then
cp
-R
pyqtgraph-
$(PYQTGRAPH_VERSION)
/pyqtgraph
$(LIB_DIR)
/
;
fi
clean_libs
:
clean_libs
:
rm
-f
$(LIB_DIR)
/libmagic.
$(SOEXT)
rm
-f
$(LIB_DIR)
/libmagic.
$(SOEXT)
...
@@ -19,8 +19,8 @@ clean_libs:
...
@@ -19,8 +19,8 @@ clean_libs:
rm
-rf
$(LIB_DIR)
/pyqtgraph
rm
-rf
$(LIB_DIR)
/pyqtgraph
clean
:
clean_libs
clean
:
clean_libs
if
[
"
$(BUILD_FUZZY)
"
-eq
"
1
"
]
;
then
make
-C
ssdeep-
$(SSDEEP_VERSION)
clean
;
fi
if
[
"
$(BUILD_FUZZY)
"
-eq
"
yes
"
]
;
then
make
-C
ssdeep-
$(SSDEEP_VERSION)
clean
;
fi
if
[
"
$(BUILD_MAGIC)
"
-eq
"
1
"
]
;
then
make
-C
file-
$(FILE_VERSION)
clean
;
fi
if
[
"
$(BUILD_MAGIC)
"
-eq
"
yes
"
]
;
then
make
-C
file-
$(FILE_VERSION)
clean
;
fi
distclean
:
clean_libs
distclean
:
clean_libs
rm
-rf
./ssdeep-
$(SSDEEP_VERSION)
rm
-rf
./ssdeep-
$(SSDEEP_VERSION)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment