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