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-07-06 07:17:25 +00:00
|
|
|
SUBDIRS = lib compat ccan
|
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
|
|
|
|
2011-07-04 10:33:31 +00:00
|
|
|
bin_PROGRAMS = cgminer
|
2010-11-25 00:31:12 +00:00
|
|
|
|
2011-07-12 12:23:03 +00:00
|
|
|
bin_SCRIPTS = phatk110711.cl poclbm.cl
|
|
|
|
|
2011-07-04 10:33:31 +00:00
|
|
|
cgminer_SOURCES = elist.h miner.h compat.h \
|
2011-07-12 12:23:03 +00:00
|
|
|
main.c util.c \
|
|
|
|
ocl.c ocl.h findnonce.c findnonce.h \
|
2011-03-15 00:18:03 +00:00
|
|
|
sha256_generic.c sha256_4way.c sha256_via.c \
|
2011-07-12 12:23:03 +00:00
|
|
|
sha256_cryptopp.c sha256_sse2_amd64.c \
|
|
|
|
phatk110711.cl poclbm.cl
|
2011-07-06 07:17:25 +00:00
|
|
|
|
2011-07-04 10:33:31 +00:00
|
|
|
cgminer_LDFLAGS = $(PTHREAD_FLAGS)
|
2011-07-11 04:56:17 +00:00
|
|
|
cgminer_LDADD = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @OPENCL_LIBS@ @NCURSES_LIBS@ @PDCURSES_LIBS@ lib/libgnu.a ccan/libccan.a
|
2011-07-04 10:33:31 +00:00
|
|
|
cgminer_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
|
2011-07-04 10:33:31 +00:00
|
|
|
cgminer_LDADD += x86_64/libx8664.a
|
2011-03-06 03:22:57 +00:00
|
|
|
AM_CFLAGS = -DHAS_YASM
|
|
|
|
endif
|
2011-03-15 03:36:28 +00:00
|
|
|
endif
|