mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-26 22:44:21 +00:00
Modify Makefile to only include opencl related code when configured in.
This commit is contained in:
parent
05478b5937
commit
9fa8e920c7
12
Makefile.am
12
Makefile.am
@ -22,8 +22,6 @@ INCLUDES = $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_INCLUDES) $(USBUTILS_
|
||||
|
||||
bin_PROGRAMS = cgminer
|
||||
|
||||
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@ \
|
||||
@ -47,11 +45,10 @@ cgminer_SOURCES += elist.h miner.h compat.h bench_block.h \
|
||||
|
||||
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
|
||||
if HAVE_OPENCL
|
||||
bin_SCRIPTS = $(top_srcdir)/*.cl
|
||||
|
||||
# the original GPU related sources, unchanged
|
||||
cgminer_SOURCES += driver-opencl.h driver-opencl.c
|
||||
cgminer_SOURCES += ocl.c ocl.h findnonce.c findnonce.h
|
||||
cgminer_SOURCES += adl.c adl.h adl_functions.h
|
||||
cgminer_SOURCES += *.cl
|
||||
@ -60,6 +57,9 @@ if HAS_SCRYPT
|
||||
cgminer_SOURCES += scrypt.c scrypt.h
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
|
||||
if NEED_FPGAUTILS
|
||||
cgminer_SOURCES += fpgautils.c fpgautils.h
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user