Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Convert over to autotools. Release version 0.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Garzik authored and Jeff Garzik committed Nov 25, 2010
1 parent e33abcd commit 702e2ac
Show file tree
Hide file tree
Showing 12 changed files with 431 additions and 27 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,20 @@
minerd
*.o

autom4te.cache
.deps

Makefile
Makefile.in
INSTALL
aclocal.m4
configure
depcomp
missing
install-sh
stamp-h1
cpuminer-config.h*
compile
config.log
config.status

1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Jeff Garzik <[email protected]>
340 changes: 340 additions & 0 deletions COPYING

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See git repository ('git log') for full changelog.
3 changes: 3 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cpuminer is available under the terms of the GNU Public License version 2.

See COPYING for details.
24 changes: 0 additions & 24 deletions Makefile

This file was deleted.

9 changes: 9 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

INCLUDES = -pthread

bin_PROGRAMS = minerd

minerd_SOURCES = cpu-miner.c sha256_generic.c
minerd_LDFLAGS = -pthread
minerd_LDADD = @CRYPTO_LIBS@ @LIBCURL@ @JANSSON_LIBS@

5 changes: 5 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

Version 0.1 - November 24, 2010

- Initial release.

10 changes: 7 additions & 3 deletions README
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@

This is a CPU miner for bitcoin.
This is a multi-threaded CPU miner for bitcoin.

License: X11/MIT
See http://www.opensource.org/licenses/mit-license.php
License: GPLv2. See COPYING for details.

Dependencies:
libcurl http://curl.haxx.se/libcurl/
jansson http://www.digip.org/jansson/
OpenSSL libcrypto http://www.openssl.org/

Basic build instructions:
./autogen.sh
./configure
make

12 changes: 12 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

# You need autoconf 2.5x, preferably 2.57 or later
# You need automake 1.7 or later. 1.6 might work.

set -e

aclocal
autoheader
automake --gnu --add-missing --copy
autoconf

34 changes: 34 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
AC_INIT([cpuminer], [0.1])

AC_PREREQ(2.52)
AC_CONFIG_SRCDIR([cpu-miner.c])
AM_INIT_AUTOMAKE([gnu])
AC_CONFIG_HEADERS([cpuminer-config.h])

dnl Make sure anyone changing configure.ac/Makefile.am has a clue
AM_MAINTAINER_MODE

dnl Checks for programs
AC_PROG_CC
AC_PROG_GCC_TRADITIONAL
AM_PROG_CC_C_O

dnl Checks for header files.
AC_HEADER_STDC

AC_CHECK_LIB(crypto, MD5_Init, CRYPTO_LIBS=-lcrypto)
AC_CHECK_LIB(jansson, json_loads, JANSSON_LIBS=-ljansson)

PKG_PROG_PKG_CONFIG()

LIBCURL_CHECK_CONFIG(, 7.10.1, ,
[AC_MSG_ERROR([Missing required libcurl >= 7.10.1])])

AC_SUBST(CRYPTO_LIBS)
AC_SUBST(JANSSON_LIBS)

AC_CONFIG_FILES([
Makefile
])
AC_OUTPUT

2 changes: 2 additions & 0 deletions cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*/

#define _GNU_SOURCE
#include "cpuminer-config.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down

0 comments on commit 702e2ac

Please sign in to comment.