aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: b900312aa816b359cabd1bc4c0323750a3fb057d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
if WANT_JANSSON
JANSSON_INCLUDES= -I$(top_srcdir)/compat/jansson
else
JANSSON_INCLUDES=
endif

EXTRA_DIST	= example-cfg.json

SUBDIRS		= compat

INCLUDES	= $(PTHREAD_FLAGS) $(JANSSON_INCLUDES)

bin_PROGRAMS	= minerd

minerd_SOURCES	= elist.h miner.h compat.h			\
		  cpu-miner.c util.c scrypt.c sha256-helpers.h	\
		  scrypt-simd-helpers.h
minerd_LDFLAGS	= $(PTHREAD_FLAGS)
minerd_LDADD	= @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@
minerd_CPPFLAGS = @LIBCURL_CPPFLAGS@

if HAVE_CELL_SPU

scrypt-cell-spu.o: scrypt-cell-spu.c scrypt-cell-spu-asm.S \
		   sha256-helpers.h scrypt-simd-helpers.h \
		   scrypt-cell-spu.h
	$(SPU_ELF_GCC) -O3 -fstrict-aliasing -Wall -Wstrict-aliasing \
		       -o scrypt-cell-spu.elf scrypt-cell-spu.c scrypt-cell-spu-asm.S
	$(EMBEDSPU) scrypt_spu scrypt-cell-spu.elf scrypt-cell-spu.o

minerd_LDADD += scrypt-cell-spu.o @SPE2_LIBS@

endif