2010-11-24 19:31:12 -05:00
|
|
|
|
2011-06-25 04:43:37 +10:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2013-12-09 14:06:07 +11:00
|
|
|
JANSSON_CPPFLAGS= -I$(top_builddir)/compat/jansson-2.5/src -I$(top_srcdir)/compat/jansson-2.5/src
|
2010-11-26 16:13:32 -05:00
|
|
|
|
2014-01-15 13:49:01 +02:00
|
|
|
EXTRA_DIST = example.conf m4/gnulib-cache.m4 \
|
2011-12-29 10:22:16 +11:00
|
|
|
ADL_SDK/readme.txt api-example.php miner.php \
|
2014-01-15 15:37:55 +02: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 03:04:02 -05:00
|
|
|
|
2011-07-06 16:47:25 +09:30
|
|
|
SUBDIRS = lib compat ccan
|
2010-11-26 16:13:32 -05:00
|
|
|
|
2014-01-15 15:37:55 +02:00
|
|
|
bin_PROGRAMS = sgminer
|
2010-11-24 19:31:12 -05:00
|
|
|
|
2014-01-15 15:37:55 +02:00
|
|
|
sgminer_CPPFLAGS = $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_CPPFLAGS)
|
|
|
|
sgminer_LDFLAGS = $(PTHREAD_FLAGS)
|
|
|
|
sgminer_LDADD = $(DLOPEN_FLAGS) @LIBCURL_LIBS@ @JANSSON_LIBS@ @PTHREAD_LIBS@ \
|
2012-01-01 20:25:04 +11:00
|
|
|
@OPENCL_LIBS@ @NCURSES_LIBS@ @PDCURSES_LIBS@ @WS2_LIBS@ \
|
2013-11-17 03:38:30 +02:00
|
|
|
@MM_LIBS@ @RT_LIBS@ @MATH_LIBS@ lib/libgnu.a ccan/libccan.a
|
2012-11-18 17:19:53 +11:00
|
|
|
|
2014-01-15 15:36:19 +02:00
|
|
|
sgminer_CPPFLAGS += -I$(top_builddir)/lib -I$(top_srcdir)/lib @OPENCL_FLAGS@
|
2013-12-09 15:06:43 +11:00
|
|
|
|
|
|
|
if !HAVE_WINDOWS
|
2014-01-15 15:36:19 +02:00
|
|
|
sgminer_CPPFLAGS += @LIBCURL_CFLAGS@
|
2013-04-05 11:58:21 +11:00
|
|
|
endif
|
2010-11-24 19:31:12 -05:00
|
|
|
|
2014-01-15 15:36:19 +02:00
|
|
|
sgminer_CPPFLAGS += $(ADL_CPPFLAGS)
|
|
|
|
|
2014-02-04 13:49:59 +02:00
|
|
|
if USE_GIT_VERSION
|
|
|
|
GIT_VERSION := $(shell sh -c 'git describe --abbrev=4 --dirty')
|
|
|
|
sgminer_CPPFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
|
|
|
|
endif
|
|
|
|
|
2014-01-15 15:36:19 +02:00
|
|
|
sgminer_SOURCES := sgminer.c
|
|
|
|
sgminer_SOURCES += api.c
|
|
|
|
sgminer_SOURCES += elist.h miner.h compat.h bench_block.h
|
|
|
|
sgminer_SOURCES += util.c util.h uthash.h
|
|
|
|
sgminer_SOURCES += sha2.c sha2.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 22:14:59 +02:00
|
|
|
sgminer_SOURCES += pool.c pool.h
|
2014-03-06 20:55:56 +02:00
|
|
|
sgminer_SOURCES += algorithm.c algorithm.h
|
2014-01-15 15:36:19 +02:00
|
|
|
sgminer_SOURCES += scrypt.c scrypt.h
|
2014-01-20 16:04:43 +02:00
|
|
|
sgminer_SOURCES += kernel/*.cl
|
2013-12-04 00:37:49 +02:00
|
|
|
|
2014-01-20 16:04:43 +02:00
|
|
|
bin_SCRIPTS = $(top_srcdir)/kernel/*.cl
|
2012-06-11 03:02:10 +00:00
|
|
|
|