1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-01 18:55:36 +00:00
sgminer/Makefile.am

100 lines
2.4 KiB
Makefile
Raw Normal View History

2011-06-24 18:43:37 +00:00
ACLOCAL_AMFLAGS = -I m4
JANSSON_INCLUDES= -I$(top_srcdir)/compat/jansson
2013-08-28 02:05:58 +00:00
if WANT_USBUTILS
USBUTILS_INCLUDES = -I$(top_srcdir)/compat/libusb-1.0/libusb
else
USBUTILS_INCLUDES =
endif
2011-10-17 03:07:38 +00:00
EXTRA_DIST = example.conf m4/gnulib-cache.m4 linux-usb-cgminer \
ADL_SDK/readme.txt api-example.php miner.php \
API.class API.java api-example.c windows-build.txt \
2012-08-23 01:41:10 +00:00
bitstreams/* API-README FPGA-README SCRYPT-README \
bitforce-firmware-flash.c hexdump.c ASIC-README \
2013-04-28 09:59:43 +00:00
01-cgminer.rules GPU-README
SUBDIRS = lib compat ccan
2013-08-28 02:05:58 +00:00
INCLUDES = $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_INCLUDES) $(USBUTILS_INCLUDES)
bin_PROGRAMS = cgminer
2013-04-04 14:59:10 +00:00
bin_SCRIPTS = $(top_srcdir)/*.cl
cgminer_LDFLAGS = $(PTHREAD_FLAGS)
cgminer_LDADD = $(DLOPEN_FLAGS) @LIBCURL_LIBS@ @JANSSON_LIBS@ @PTHREAD_LIBS@ \
@OPENCL_LIBS@ @NCURSES_LIBS@ @PDCURSES_LIBS@ @WS2_LIBS@ \
@LIBUSB_LIBS@ @MM_LIBS@ @RT_LIBS@ \
@MATH_LIBS@ lib/libgnu.a ccan/libccan.a
if HAVE_WINDOWS
2013-08-28 02:05:58 +00:00
cgminer_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @OPENCL_FLAGS@
else
2013-08-28 02:05:58 +00:00
cgminer_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @OPENCL_FLAGS@ @LIBCURL_CFLAGS@
endif
2013-04-16 02:27:10 +00:00
cgminer_CPPFLAGS += $(ADL_CPPFLAGS)
# common sources
cgminer_SOURCES := cgminer.c
cgminer_SOURCES += elist.h miner.h compat.h bench_block.h \
util.c util.h uthash.h logging.h \
2013-08-28 02:05:58 +00:00
sha2.c sha2.h api.c
cgminer_SOURCES += logging.c
# GPU sources, TODO: make them selectable
# the GPU portion extracted from original main.c
cgminer_SOURCES += driver-opencl.h driver-opencl.c
# the original GPU related sources, unchanged
cgminer_SOURCES += ocl.c ocl.h findnonce.c findnonce.h
cgminer_SOURCES += adl.c adl.h adl_functions.h
cgminer_SOURCES += *.cl
if HAS_SCRYPT
2012-08-07 11:49:11 +00:00
cgminer_SOURCES += scrypt.c scrypt.h
endif
if NEED_FPGAUTILS
2012-06-14 11:25:32 +00:00
cgminer_SOURCES += fpgautils.c fpgautils.h
endif
2013-08-28 02:05:58 +00:00
if WANT_USBUTILS
cgminer_SOURCES += usbutils.c usbutils.h
2012-12-30 22:09:43 +00:00
endif
2013-03-06 13:00:31 +00:00
if HAS_BFLSC
2013-08-08 20:31:57 +00:00
cgminer_SOURCES += driver-bflsc.c driver-bflsc.h
2013-03-06 13:00:31 +00:00
endif
if HAS_BITFORCE
cgminer_SOURCES += driver-bitforce.c
endif
if HAS_BITFURY
cgminer_SOURCES += driver-bitfury.c driver-bitfury.h
endif
if HAS_ICARUS
cgminer_SOURCES += driver-icarus.c
endif
2013-04-05 02:32:09 +00:00
if HAS_AVALON
2013-04-22 09:28:50 +00:00
cgminer_SOURCES += driver-avalon.c driver-avalon.h
2013-04-05 02:32:09 +00:00
endif
2013-10-03 13:19:18 +00:00
if HAS_KLONDIKE
cgminer_SOURCES += driver-klondike.c
endif
2012-06-11 03:02:10 +00:00
if HAS_MODMINER
2012-12-30 22:09:43 +00:00
cgminer_SOURCES += driver-modminer.c
2012-06-11 03:02:10 +00:00
bitstreamsdir = $(bindir)/bitstreams
2013-04-04 14:59:10 +00:00
dist_bitstreams_DATA = $(top_srcdir)/bitstreams/*
2012-06-11 03:02:10 +00:00
endif