-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compile CPU mining for win32 and win64
- Loading branch information
James Z.M. Gao
committed
Apr 4, 2013
1 parent
dfea623
commit c9ae715
Showing
22 changed files
with
225 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,5 @@ lib/string.h | |
lib/warn-on-use.h | ||
|
||
mkinstalldirs | ||
|
||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
bs_dir="$(dirname $(readlink -f $0))" | ||
build_dir="$PWD" | ||
rm -rf "${bs_dir}"/autom4te.cache | ||
rm -f "${bs_dir}"/aclocal.m4 "${bs_dir}"/ltmain.sh | ||
|
||
echo 'Running autoreconf -ifv...' | ||
autoreconf -ifv -I "/usr/local/share/aclocal/" "$bs_dir" || exit 1 | ||
|
||
if test -z "$NOCONFIGURE" ; then | ||
echo 'Configuring...' | ||
|
||
if [[ "$bs_dir" != "`pwd`" ]]; then | ||
export CPPFLAGS+=" -I $bs_dir" | ||
fi | ||
|
||
if [[ ! -z "$CGMINER_SDK" ]]; then | ||
export CPPFLAGS="-I $CGMINER_SDK/include $CPPFLAGS" | ||
export LDFLAGS="-L $CGMINER_SDK/lib $LDFLAGS" | ||
export PKG_CONFIG_PATH="$CGMINER_SDK/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" | ||
export ADL_SDK="$CGMINER_SDK/include/ADL_SDK" | ||
fi | ||
|
||
CFLAGS="-O3 -msse2" \ | ||
"$bs_dir"/configure \ | ||
--prefix="$build_dir"/opt \ | ||
--enable-cpumining \ | ||
--enable-scrypt \ | ||
--enable-bitforce \ | ||
--enable-icarus \ | ||
--enable-modminer \ | ||
--enable-ztex \ | ||
$@ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
bs_dir="$(dirname $(readlink -f $0))" | ||
build_dir="$PWD" | ||
rm -rf "${bs_dir}"/autom4te.cache | ||
rm -f "${bs_dir}"/aclocal.m4 "${bs_dir}"/ltmain.sh | ||
|
||
echo 'Running autoreconf -ifv...' | ||
autoreconf -ifv -I "/usr/local/share/aclocal/" "$bs_dir" || exit 1 | ||
|
||
if test -z "$NOCONFIGURE" ; then | ||
echo 'Configuring...' | ||
|
||
if [[ "$bs_dir" != "`pwd`" ]]; then | ||
export CPPFLAGS+=" -I $bs_dir" | ||
fi | ||
|
||
if [[ ! -z "$CGMINER_SDK" ]]; then | ||
export CPPFLAGS="-I $CGMINER_SDK/include $CPPFLAGS" | ||
export LDFLAGS="-L $CGMINER_SDK/lib64 $LDFLAGS" | ||
export PKG_CONFIG_PATH="$CGMINER_SDK/lib64/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" | ||
export ADL_SDK="$CGMINER_SDK/include/ADL_SDK" | ||
fi | ||
|
||
CFLAGS="-O3 -msse4" \ | ||
"$bs_dir"/configure \ | ||
--target=x86_64-w64-mingw32 \ | ||
--prefix="$build_dir"/opt \ | ||
--enable-cpumining \ | ||
--enable-scrypt \ | ||
--enable-bitforce \ | ||
--enable-icarus \ | ||
--enable-modminer \ | ||
--enable-ztex \ | ||
$@ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.