2010-11-25 00:31:12 +00:00
|
|
|
|
2011-06-24 18:43:37 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2014-07-02 07:24:10 +00:00
|
|
|
JANSSON_CPPFLAGS= -I$(top_builddir)/submodules/jansson/src -I$(top_srcdir)/submodules/jansson/src
|
2010-11-26 21:13:32 +00:00
|
|
|
|
2014-01-15 11:49:01 +00:00
|
|
|
EXTRA_DIST = example.conf m4/gnulib-cache.m4 \
|
2011-12-28 23:22:16 +00:00
|
|
|
ADL_SDK/readme.txt api-example.php miner.php \
|
2014-01-15 13:37:55 +00:00
|
|
|
API.class API.java api-example.c hexdump.c \
|
|
|
|
doc/API doc/FAQ doc/GPU doc/SCRYPT doc/windows-build.txt
|
2011-02-13 08:04:02 +00:00
|
|
|
|
2014-07-02 07:24:10 +00:00
|
|
|
SUBDIRS = lib submodules ccan sph
|
2010-11-26 21:13:32 +00:00
|
|
|
|
2014-01-15 13:37:55 +00:00
|
|
|
bin_PROGRAMS = sgminer
|
2010-11-25 00:31:12 +00:00
|
|
|
|
2015-04-07 09:42:43 +00:00
|
|
|
sgminer_CPPFLAGS = $(PTHREAD_FLAGS) -std=gnu99 $(JANSSON_CPPFLAGS)
|
2014-01-15 13:37:55 +00:00
|
|
|
sgminer_LDFLAGS = $(PTHREAD_FLAGS)
|
|
|
|
sgminer_LDADD = $(DLOPEN_FLAGS) @LIBCURL_LIBS@ @JANSSON_LIBS@ @PTHREAD_LIBS@ \
|
2012-01-01 09:25:04 +00:00
|
|
|
@OPENCL_LIBS@ @NCURSES_LIBS@ @PDCURSES_LIBS@ @WS2_LIBS@ \
|
2014-02-19 22:06:29 +00:00
|
|
|
@MM_LIBS@ @RT_LIBS@ @MATH_LIBS@ lib/libgnu.a ccan/libccan.a sph/libsph.a
|
2012-11-18 06:19:53 +00:00
|
|
|
|
2015-12-09 00:07:39 +00:00
|
|
|
sgminer_CPPFLAGS += -I$(top_builddir)/lib -I$(top_srcdir)/lib @OPENCL_FLAGS@ @LIBCURL_CFLAGS@
|
2013-12-09 04:06:43 +00:00
|
|
|
|
2015-12-09 00:07:39 +00:00
|
|
|
if HAVE_WINDOWS
|
|
|
|
sgminer_LDFLAGS += -all-static
|
2013-04-05 00:58:21 +00:00
|
|
|
endif
|
2010-11-25 00:31:12 +00:00
|
|
|
|
2014-01-15 13:36:19 +00:00
|
|
|
sgminer_CPPFLAGS += $(ADL_CPPFLAGS)
|
|
|
|
|
2014-02-04 11:49:59 +00:00
|
|
|
if USE_GIT_VERSION
|
2017-06-14 18:53:07 +00:00
|
|
|
GIT_VERSION := $(shell sh -c 'git describe --tags --abbrev=4 --dirty')
|
2014-02-04 11:49:59 +00:00
|
|
|
sgminer_CPPFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
|
|
|
|
endif
|
|
|
|
|
2014-05-03 23:29:28 +00:00
|
|
|
if USE_BUILD_NUMBER
|
|
|
|
sgminer_CPPFLAGS += -DBUILD_NUMBER=\"$(BUILD_NUMBER)\"
|
|
|
|
endif
|
|
|
|
|
2014-01-15 13:36:19 +00:00
|
|
|
sgminer_SOURCES := sgminer.c
|
2014-06-20 13:50:52 +00:00
|
|
|
sgminer_SOURCES += api.c api.h
|
2014-01-15 13:36:19 +00:00
|
|
|
sgminer_SOURCES += elist.h miner.h compat.h bench_block.h
|
|
|
|
sgminer_SOURCES += util.c util.h uthash.h
|
|
|
|
sgminer_SOURCES += logging.c logging.h
|
|
|
|
sgminer_SOURCES += driver-opencl.c driver-opencl.h
|
|
|
|
sgminer_SOURCES += ocl.c ocl.h
|
|
|
|
sgminer_SOURCES += findnonce.c findnonce.h
|
|
|
|
sgminer_SOURCES += adl.c adl.h adl_functions.h
|
2014-02-28 20:14:59 +00:00
|
|
|
sgminer_SOURCES += pool.c pool.h
|
2014-03-06 18:55:56 +00:00
|
|
|
sgminer_SOURCES += algorithm.c algorithm.h
|
2014-06-14 22:09:47 +00:00
|
|
|
sgminer_SOURCES += config_parser.c config_parser.h
|
2014-11-19 17:33:11 +00:00
|
|
|
sgminer_SOURCES += events.c events.h
|
2014-06-05 18:36:01 +00:00
|
|
|
sgminer_SOURCES += ocl/build_kernel.c ocl/build_kernel.h
|
|
|
|
sgminer_SOURCES += ocl/binary_kernel.c ocl/binary_kernel.h
|
2013-12-03 22:37:49 +00:00
|
|
|
|
2014-01-20 14:04:43 +00:00
|
|
|
sgminer_SOURCES += kernel/*.cl
|
2014-06-08 01:17:29 +00:00
|
|
|
sgminer_SOURCES += algorithm/scrypt.c algorithm/scrypt.h
|
|
|
|
sgminer_SOURCES += algorithm/darkcoin.c algorithm/darkcoin.h
|
|
|
|
sgminer_SOURCES += algorithm/qubitcoin.c algorithm/qubitcoin.h
|
|
|
|
sgminer_SOURCES += algorithm/quarkcoin.c algorithm/quarkcoin.h
|
|
|
|
sgminer_SOURCES += algorithm/myriadcoin-groestl.c algorithm/myriadcoin-groestl.h
|
|
|
|
sgminer_SOURCES += algorithm/fuguecoin.c algorithm/fuguecoin.h
|
|
|
|
sgminer_SOURCES += algorithm/inkcoin.c algorithm/inkcoin.h
|
|
|
|
sgminer_SOURCES += algorithm/animecoin.c algorithm/animecoin.h
|
|
|
|
sgminer_SOURCES += algorithm/groestlcoin.c algorithm/groestlcoin.h
|
2016-10-05 03:12:56 +00:00
|
|
|
sgminer_SOURCES += algorithm/sibcoin.c algorithm/sibcoin.h
|
2014-06-08 01:17:29 +00:00
|
|
|
sgminer_SOURCES += algorithm/sifcoin.c algorithm/sifcoin.h
|
|
|
|
sgminer_SOURCES += algorithm/twecoin.c algorithm/twecoin.h
|
|
|
|
sgminer_SOURCES += algorithm/marucoin.c algorithm/marucoin.h
|
|
|
|
sgminer_SOURCES += algorithm/maxcoin.c algorithm/maxcoin.h
|
2014-06-15 15:21:10 +00:00
|
|
|
sgminer_SOURCES += algorithm/talkcoin.c algorithm/talkcoin.h
|
2014-06-27 20:10:22 +00:00
|
|
|
sgminer_SOURCES += algorithm/bitblock.c algorithm/bitblock.h
|
2014-06-30 19:13:13 +00:00
|
|
|
sgminer_SOURCES += algorithm/x14.c algorithm/x14.h
|
2014-07-08 05:30:29 +00:00
|
|
|
sgminer_SOURCES += algorithm/fresh.c algorithm/fresh.h
|
2014-12-03 15:09:55 +00:00
|
|
|
sgminer_SOURCES += algorithm/whirlcoin.c algorithm/whirlcoin.h
|
2014-11-19 11:06:16 +00:00
|
|
|
sgminer_SOURCES += algorithm/neoscrypt.c algorithm/neoscrypt.h
|
2015-03-09 10:01:20 +00:00
|
|
|
sgminer_SOURCES += algorithm/whirlpoolx.c algorithm/whirlpoolx.h
|
2015-03-10 08:47:46 +00:00
|
|
|
sgminer_SOURCES += algorithm/lyra2re.c algorithm/lyra2re.h algorithm/lyra2.c algorithm/lyra2.h algorithm/sponge.c algorithm/sponge.h
|
2016-02-11 20:33:56 +00:00
|
|
|
sgminer_SOURCES += algorithm/lyra2rev2.c algorithm/lyra2rev2.h
|
2015-03-10 09:26:58 +00:00
|
|
|
sgminer_SOURCES += algorithm/pluck.c algorithm/pluck.h
|
2016-07-10 15:13:54 +00:00
|
|
|
sgminer_SOURCES += algorithm/sia.c algorithm/sia.h
|
2015-11-09 16:15:15 +00:00
|
|
|
sgminer_SOURCES += algorithm/credits.c algorithm/credits.h
|
|
|
|
sgminer_SOURCES += algorithm/yescrypt.h algorithm/yescrypt.c algorithm/yescrypt_core.h algorithm/yescrypt-opt.c algorithm/yescryptcommon.c algorithm/sysendian.h
|
2016-02-06 11:50:16 +00:00
|
|
|
sgminer_SOURCES += algorithm/blake256.c algorithm/blake256.h
|
|
|
|
sgminer_SOURCES += algorithm/blakecoin.c algorithm/blakecoin.h
|
2016-03-21 16:34:35 +00:00
|
|
|
sgminer_SOURCES += algorithm/decred.c algorithm/decred.h
|
2017-02-01 02:02:39 +00:00
|
|
|
sgminer_SOURCES += algorithm/pascal.c algorithm/pascal.h
|
2016-07-17 22:36:27 +00:00
|
|
|
sgminer_SOURCES += algorithm/lbry.c algorithm/lbry.h
|
2017-06-14 18:26:57 +00:00
|
|
|
sgminer_SOURCES += algorithm/gostcoin.c algorithm/gostcoin.h
|
2013-12-03 22:37:49 +00:00
|
|
|
|
2014-01-20 14:04:43 +00:00
|
|
|
bin_SCRIPTS = $(top_srcdir)/kernel/*.cl
|
2012-06-11 03:02:10 +00:00
|
|
|
|