diff --git a/.gitignore b/.gitignore index a0ea9029..9ab93c0f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,9 @@ - +cgminer +cgminer.exe minerd minerd.exe *.o +*.bin autom4te.cache .deps @@ -28,4 +30,4 @@ mingw32-config.cache ext_deps config.h.in -config.h \ No newline at end of file +config.h diff --git a/AUTHORS b/AUTHORS index 7665c4ec..51b7424e 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,2 +1,2 @@ -Jeff Garzik -Con Kolivas +Original CPU mining software: Jeff Garzik +GPU mining and rewrite: Con Kolivas 15qSxP1SQcUX3o4nhkfdbgyoWEFMomJ4rZ diff --git a/Makefile.am b/Makefile.am index 8013bce3..b562fbe2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,21 +13,21 @@ SUBDIRS = lib compat INCLUDES = $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_INCLUDES) -bin_PROGRAMS = minerd +bin_PROGRAMS = cgminer -minerd_SOURCES = elist.h miner.h compat.h \ - cpu-miner.c util.c \ +cgminer_SOURCES = elist.h miner.h compat.h \ + main.c util.c \ ocl.c findnonce.c \ sha256_generic.c sha256_4way.c sha256_via.c \ sha256_cryptopp.c sha256_sse2_amd64.c -minerd_LDFLAGS = $(PTHREAD_FLAGS) -minerd_LDADD = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @OPENCL_LIBS@ lib/libgnu.a -minerd_CPPFLAGS = @LIBCURL_CPPFLAGS@ -I$(top_builddir)/lib -I$(top_srcdir)/lib +cgminer_LDFLAGS = $(PTHREAD_FLAGS) +cgminer_LDADD = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @OPENCL_LIBS@ lib/libgnu.a +cgminer_CPPFLAGS = @LIBCURL_CPPFLAGS@ -I$(top_builddir)/lib -I$(top_srcdir)/lib if HAVE_x86_64 if HAS_YASM SUBDIRS += x86_64 -minerd_LDADD += x86_64/libx8664.a +cgminer_LDADD += x86_64/libx8664.a AM_CFLAGS = -DHAS_YASM endif endif diff --git a/README b/README index 676c4401..d65ed977 100644 --- a/README +++ b/README @@ -29,7 +29,7 @@ Native WIN32 build instructions (on mingw32, on windows): CFLAGS="-O3 -Wall -msse2 -I" LDFLAGS="-L" ./configure make -Usage instructions: Run "minerd --help" to see options. +Usage instructions: Run "cgminer --help" to see options. Also many issues and FAQs are covered in the forum thread dedicated to this program, diff --git a/configure.ac b/configure.ac index 60859ae2..bd9ecfe1 100644 --- a/configure.ac +++ b/configure.ac @@ -1,9 +1,9 @@ -AC_INIT([cpuminer], [1.0.2]) +AC_INIT([cgminer], [1.0.9]) AC_PREREQ(2.59) AC_CANONICAL_SYSTEM AC_CONFIG_MACRO_DIR([m4]) -AC_CONFIG_SRCDIR([cpu-miner.c]) +AC_CONFIG_SRCDIR([main.c]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign]) @@ -109,8 +109,7 @@ AM_CONDITIONAL([HAS_YASM], [test x$has_yasm = xtrue]) PKG_PROG_PKG_CONFIG() -LIBCURL_CHECK_CONFIG(, 7.10.1, , - [AC_MSG_ERROR([Missing required libcurl >= 7.10.1])]) +LIBCURL_CHECK_CONFIG(, 7.10.1, , [AC_MSG_ERROR([Missing required libcurl dev >= 7.10.1])]) AC_SUBST(OPENCL_LIBS) AC_SUBST(JANSSON_LIBS) diff --git a/cpu-miner.c b/main.c similarity index 99% rename from cpu-miner.c rename to main.c index 3000d972..0d38c0f0 100644 --- a/cpu-miner.c +++ b/main.c @@ -31,7 +31,7 @@ #include "findnonce.h" #include "ocl.h" -#define PROGRAM_NAME "minerd" +#define PROGRAM_NAME "cgminer" #define DEF_RPC_URL "http://127.0.0.1:8332/" #define DEF_RPC_USERNAME "rpcuser" #define DEF_RPC_PASSWORD "rpcpass" @@ -1313,8 +1313,8 @@ static void show_usage(void) { int i; - printf("minerd version %s\n\n", VERSION); - printf("Usage:\tminerd [options]\n\nSupported options:\n"); + printf("cgminer version %s\n\n", VERSION); + printf("Usage:\tcgminer [options]\n\nSupported options:\n"); for (i = 0; i < ARRAY_SIZE(options_help); i++) { struct option_help *h;