2010-11-24 19:31:12 -05:00
|
|
|
|
2010-11-26 16:13:32 -05:00
|
|
|
if WANT_JANSSON
|
|
|
|
JANSSON_INCLUDES= -I$(top_srcdir)/compat/jansson
|
|
|
|
else
|
|
|
|
JANSSON_INCLUDES=
|
|
|
|
endif
|
|
|
|
|
2011-02-13 03:04:02 -05:00
|
|
|
EXTRA_DIST = example-cfg.json
|
|
|
|
|
2010-11-26 16:13:32 -05:00
|
|
|
SUBDIRS = compat
|
|
|
|
|
2011-07-01 13:21:18 +10:00
|
|
|
INCLUDES = $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_INCLUDES)
|
2010-11-24 19:31:12 -05:00
|
|
|
|
|
|
|
bin_PROGRAMS = minerd
|
|
|
|
|
2011-03-14 23:17:34 -04:00
|
|
|
minerd_SOURCES = elist.h miner.h compat.h \
|
2011-03-14 20:18:03 -04:00
|
|
|
cpu-miner.c util.c \
|
2011-06-14 10:32:54 +10:00
|
|
|
ocl.c findnonce.c \
|
2011-03-14 20:18:03 -04:00
|
|
|
sha256_generic.c sha256_4way.c sha256_via.c \
|
|
|
|
sha256_cryptopp.c sha256_sse2_amd64.c
|
2010-11-26 16:28:12 -05:00
|
|
|
minerd_LDFLAGS = $(PTHREAD_FLAGS)
|
2011-06-14 10:32:54 +10:00
|
|
|
minerd_LDADD = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @OPENCL_LIBS@
|
2011-06-08 23:09:21 +02:00
|
|
|
minerd_CPPFLAGS = @LIBCURL_CPPFLAGS@
|
2010-11-24 19:31:12 -05:00
|
|
|
|
2011-04-11 13:04:29 -04:00
|
|
|
if HAVE_x86_64
|
2011-03-05 22:22:57 -05:00
|
|
|
if HAS_YASM
|
|
|
|
SUBDIRS += x86_64
|
|
|
|
minerd_LDADD += x86_64/libx8664.a
|
|
|
|
AM_CFLAGS = -DHAS_YASM
|
|
|
|
endif
|
2011-03-14 23:36:28 -04:00
|
|
|
endif
|