2010-11-24 19:31:12 -05:00
|
|
|
|
2011-06-25 04:43:37 +10:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2013-10-26 16:41:28 +02:00
|
|
|
JANSSON_INCLUDES= -I$(top_builddir)/compat/jansson-2.5/src -I$(top_srcdir)/compat/jansson-2.5/src
|
2010-11-26 16:13:32 -05:00
|
|
|
|
2011-10-17 14:07:38 +11:00
|
|
|
EXTRA_DIST = example.conf m4/gnulib-cache.m4 linux-usb-cgminer \
|
2011-12-29 10:22:16 +11:00
|
|
|
ADL_SDK/readme.txt api-example.php miner.php \
|
2012-04-22 14:32:40 +10:00
|
|
|
API.class API.java api-example.c windows-build.txt \
|
2013-11-24 16:10:29 +02:00
|
|
|
API-README SCRYPT-README hexdump.c GPU-README
|
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
|
|
|
|
2013-11-17 03:38:30 +02: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-11-11 22:21:30 +11:00
|
|
|
cgminer_LDFLAGS = $(PTHREAD_FLAGS)
|
2012-01-01 20:25:04 +11:00
|
|
|
cgminer_LDADD = $(DLOPEN_FLAGS) @LIBCURL_LIBS@ @JANSSON_LIBS@ @PTHREAD_LIBS@ \
|
|
|
|
@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
|
|
|
|
2013-04-05 11:58:21 +11:00
|
|
|
if HAVE_WINDOWS
|
2013-08-28 12:05:58 +10:00
|
|
|
cgminer_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @OPENCL_FLAGS@
|
2013-04-05 11:58:21 +11:00
|
|
|
else
|
2013-08-28 12:05:58 +10:00
|
|
|
cgminer_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @OPENCL_FLAGS@ @LIBCURL_CFLAGS@
|
2013-04-05 11:58:21 +11:00
|
|
|
endif
|
2010-11-24 19:31:12 -05:00
|
|
|
|
2013-04-16 10:27:10 +08:00
|
|
|
cgminer_CPPFLAGS += $(ADL_CPPFLAGS)
|
|
|
|
|
2012-01-30 23:11:39 +01:00
|
|
|
cgminer_SOURCES := cgminer.c
|
2013-12-04 00:37:49 +02:00
|
|
|
cgminer_SOURCES += api.c
|
|
|
|
cgminer_SOURCES += elist.h miner.h compat.h bench_block.h
|
|
|
|
cgminer_SOURCES += util.c util.h uthash.h
|
|
|
|
cgminer_SOURCES += sha2.c sha2.h
|
|
|
|
cgminer_SOURCES += logging.c logging.h
|
|
|
|
cgminer_SOURCES += driver-opencl.c driver-opencl.h
|
|
|
|
cgminer_SOURCES += ocl.c ocl.h
|
|
|
|
cgminer_SOURCES += findnonce.c findnonce.h
|
2012-01-30 23:11:39 +01:00
|
|
|
cgminer_SOURCES += adl.c adl.h adl_functions.h
|
2012-08-07 21:49:11 +10:00
|
|
|
cgminer_SOURCES += scrypt.c scrypt.h
|
2013-12-04 00:37:49 +02:00
|
|
|
cgminer_SOURCES += *.cl
|
|
|
|
|
|
|
|
bin_SCRIPTS = $(top_srcdir)/*.cl
|
2012-06-11 03:02:10 +00:00
|
|
|
|