2010-11-24 19:31:12 -05:00
|
|
|
|
2011-06-25 04:43:37 +10:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2013-10-16 22:02:03 +11:00
|
|
|
JANSSON_INCLUDES= -I$(top_srcdir)/compat/jansson-2.5/src
|
2010-11-26 16:13:32 -05:00
|
|
|
|
2013-08-28 12:05:58 +10:00
|
|
|
if WANT_USBUTILS
|
|
|
|
USBUTILS_INCLUDES = -I$(top_srcdir)/compat/libusb-1.0/libusb
|
|
|
|
else
|
|
|
|
USBUTILS_INCLUDES =
|
|
|
|
endif
|
|
|
|
|
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 \
|
2012-08-23 11:41:10 +10:00
|
|
|
bitstreams/* API-README FPGA-README SCRYPT-README \
|
2013-04-28 19:24:57 +10:00
|
|
|
bitforce-firmware-flash.c hexdump.c ASIC-README \
|
2013-04-28 19:59:43 +10:00
|
|
|
01-cgminer.rules 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-08-28 12:05:58 +10:00
|
|
|
INCLUDES = $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_INCLUDES) $(USBUTILS_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-08-18 01:39:35 +10:00
|
|
|
@LIBUSB_LIBS@ @MM_LIBS@ @RT_LIBS@ \
|
2012-01-01 20:25:04 +11:00
|
|
|
@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
|
|
|
# common sources
|
|
|
|
cgminer_SOURCES := cgminer.c
|
|
|
|
|
|
|
|
cgminer_SOURCES += elist.h miner.h compat.h bench_block.h \
|
2012-09-24 16:27:47 +10:00
|
|
|
util.c util.h uthash.h logging.h \
|
2013-08-28 12:05:58 +10:00
|
|
|
sha2.c sha2.h api.c
|
2012-01-30 23:11:39 +01:00
|
|
|
|
2012-02-11 19:31:34 +01:00
|
|
|
cgminer_SOURCES += logging.c
|
|
|
|
|
2013-10-23 22:31:00 +11:00
|
|
|
if HAS_OPENCL
|
2013-10-23 21:29:42 +11:00
|
|
|
bin_SCRIPTS = $(top_srcdir)/*.cl
|
2012-01-30 23:11:39 +01:00
|
|
|
|
2013-10-23 21:29:42 +11:00
|
|
|
cgminer_SOURCES += driver-opencl.h driver-opencl.c
|
2012-01-30 23:11:39 +01:00
|
|
|
cgminer_SOURCES += ocl.c ocl.h findnonce.c findnonce.h
|
|
|
|
cgminer_SOURCES += adl.c adl.h adl_functions.h
|
2012-02-08 13:45:56 +11:00
|
|
|
cgminer_SOURCES += *.cl
|
2012-01-30 23:11:39 +01:00
|
|
|
|
2012-08-07 19:56:43 +10:00
|
|
|
if HAS_SCRYPT
|
2012-08-07 21:49:11 +10:00
|
|
|
cgminer_SOURCES += scrypt.c scrypt.h
|
2012-08-07 19:56:43 +10:00
|
|
|
endif
|
|
|
|
|
2013-10-23 21:29:42 +11:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2012-06-05 02:17:09 +00:00
|
|
|
if NEED_FPGAUTILS
|
2012-06-14 21:25:32 +10:00
|
|
|
cgminer_SOURCES += fpgautils.c fpgautils.h
|
2012-06-05 02:17:09 +00:00
|
|
|
endif
|
|
|
|
|
2013-08-28 12:05:58 +10:00
|
|
|
if WANT_USBUTILS
|
|
|
|
cgminer_SOURCES += usbutils.c usbutils.h
|
2012-12-31 09:09:43 +11:00
|
|
|
endif
|
|
|
|
|
2013-03-07 00:00:31 +11:00
|
|
|
if HAS_BFLSC
|
2013-08-09 06:31:57 +10:00
|
|
|
cgminer_SOURCES += driver-bflsc.c driver-bflsc.h
|
2013-03-07 00:00:31 +11:00
|
|
|
endif
|
|
|
|
|
2012-01-31 00:20:58 +11:00
|
|
|
if HAS_BITFORCE
|
2012-03-13 12:18:23 -04:00
|
|
|
cgminer_SOURCES += driver-bitforce.c
|
2012-01-08 19:56:15 -05:00
|
|
|
endif
|
2012-01-30 23:11:39 +01:00
|
|
|
|
2013-09-24 20:59:10 +10:00
|
|
|
if HAS_BITFURY
|
|
|
|
cgminer_SOURCES += driver-bitfury.c driver-bitfury.h
|
|
|
|
endif
|
|
|
|
|
2012-02-13 16:04:13 +08:00
|
|
|
if HAS_ICARUS
|
2012-03-13 12:18:23 -04:00
|
|
|
cgminer_SOURCES += driver-icarus.c
|
2012-02-13 16:04:13 +08:00
|
|
|
endif
|
2012-03-11 00:49:25 +00:00
|
|
|
|
2013-04-05 13:32:09 +11:00
|
|
|
if HAS_AVALON
|
2013-04-22 19:28:50 +10:00
|
|
|
cgminer_SOURCES += driver-avalon.c driver-avalon.h
|
2013-04-05 13:32:09 +11:00
|
|
|
endif
|
|
|
|
|
2013-10-03 23:19:18 +10:00
|
|
|
if HAS_KLONDIKE
|
|
|
|
cgminer_SOURCES += driver-klondike.c
|
|
|
|
endif
|
|
|
|
|
2012-06-11 03:02:10 +00:00
|
|
|
if HAS_MODMINER
|
2012-12-31 09:09:43 +11:00
|
|
|
cgminer_SOURCES += driver-modminer.c
|
2012-06-11 03:02:10 +00:00
|
|
|
bitstreamsdir = $(bindir)/bitstreams
|
2013-04-04 22:59:10 +08:00
|
|
|
dist_bitstreams_DATA = $(top_srcdir)/bitstreams/*
|
2012-06-11 03:02:10 +00:00
|
|
|
endif
|