2010-11-24 19:31:12 -05:00
|
|
|
|
2011-06-25 04:43:37 +10:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2010-11-26 16:13:32 -05:00
|
|
|
if WANT_JANSSON
|
|
|
|
JANSSON_INCLUDES= -I$(top_srcdir)/compat/jansson
|
|
|
|
else
|
|
|
|
JANSSON_INCLUDES=
|
|
|
|
endif
|
|
|
|
|
2011-10-17 14:07:38 +11:00
|
|
|
EXTRA_DIST = example.conf m4/gnulib-cache.m4 linux-usb-cgminer \
|
2011-09-05 19:36:12 +10:00
|
|
|
ADL_SDK/readme.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
|
|
|
|
2011-07-01 13:21:18 +10:00
|
|
|
INCLUDES = $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_INCLUDES)
|
2010-11-24 19:31:12 -05:00
|
|
|
|
2011-07-04 20:33:31 +10:00
|
|
|
bin_PROGRAMS = cgminer
|
2010-11-24 19:31:12 -05:00
|
|
|
|
2011-08-22 10:17:23 +10:00
|
|
|
bin_SCRIPTS = phatk110817.cl poclbm110817.cl
|
2011-07-12 22:23:03 +10:00
|
|
|
|
2011-08-16 17:13:10 +10:00
|
|
|
cgminer_SOURCES = elist.h miner.h compat.h bench_block.h \
|
2011-08-25 12:10:45 +10:00
|
|
|
main.c util.c uthash.h \
|
2011-07-12 22:23:03 +10:00
|
|
|
ocl.c ocl.h findnonce.c findnonce.h \
|
2011-03-14 20:18:03 -04:00
|
|
|
sha256_generic.c sha256_4way.c sha256_via.c \
|
2011-07-12 22:23:03 +10:00
|
|
|
sha256_cryptopp.c sha256_sse2_amd64.c \
|
2011-08-26 13:45:45 +10:00
|
|
|
sha256_sse4_amd64.c sha256_sse2_i386.c \
|
2011-10-09 12:22:00 +11:00
|
|
|
sha256_altivec_4way.c \
|
2011-09-06 09:01:24 +10:00
|
|
|
adl.c adl.h adl_functions.h \
|
2011-09-23 09:44:09 +10:00
|
|
|
phatk110817.cl poclbm110817.cl \
|
2011-11-23 14:35:49 +11:00
|
|
|
sha2.c sha2.h api.c
|
2011-07-06 16:47:25 +09:30
|
|
|
|
2011-11-11 22:21:30 +11:00
|
|
|
cgminer_LDFLAGS = $(PTHREAD_FLAGS)
|
|
|
|
cgminer_LDADD = $(DLOPEN_FLAGS) @LIBCURL_LIBS@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @OPENCL_LIBS@ @NCURSES_LIBS@ @PDCURSES_LIBS@ @WS2_LIBS@ lib/libgnu.a ccan/libccan.a
|
2011-09-14 07:14:34 +00:00
|
|
|
cgminer_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @OPENCL_FLAGS@
|
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
|
2011-07-04 20:33:31 +10:00
|
|
|
cgminer_LDADD += x86_64/libx8664.a
|
2011-03-05 22:22:57 -05:00
|
|
|
AM_CFLAGS = -DHAS_YASM
|
|
|
|
endif
|
2011-08-25 11:19:40 +10:00
|
|
|
else
|
|
|
|
if HAS_YASM
|
|
|
|
SUBDIRS += x86_32
|
|
|
|
cgminer_LDADD += x86_32/libx8632.a
|
|
|
|
AM_CFLAGS = -DHAS_YASM
|
|
|
|
endif
|
2011-03-14 23:36:28 -04:00
|
|
|
endif
|