mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
195 lines
4.7 KiB
Makefile
195 lines
4.7 KiB
Makefile
|
|
if WANT_JANSSON
|
|
JANSSON_INCLUDES= -I$(top_srcdir)/compat/jansson
|
|
else
|
|
JANSSON_INCLUDES=
|
|
endif
|
|
|
|
EXTRA_DIST = example-cfg.json nomacro.pl
|
|
|
|
SUBDIRS = compat
|
|
|
|
ALL_INCLUDES = @PTHREAD_FLAGS@ -fno-strict-aliasing $(JANSSON_INCLUDES) -I.
|
|
|
|
bin_PROGRAMS = cpuminer
|
|
|
|
dist_man_MANS = cpuminer.1
|
|
|
|
cpuminer_SOURCES = \
|
|
cpu-miner.c \
|
|
util.c \
|
|
uint256.cpp \
|
|
api.c \
|
|
sysinfos.c \
|
|
algo-gate-api.c\
|
|
algo/groestl/sph_groestl.c \
|
|
algo/skein/sph_skein.c \
|
|
algo/bmw/sph_bmw.c \
|
|
algo/shavite/sph_shavite.c \
|
|
algo/shavite/shavite.c \
|
|
algo/echo/sph_echo.c \
|
|
algo/blake/sph_blake.c \
|
|
algo/blake/sph_blake2b.c \
|
|
algo/heavy/sph_hefty1.c \
|
|
algo/blake/mod_blakecoin.c \
|
|
algo/luffa/sph_luffa.c \
|
|
algo/cubehash/sph_cubehash.c \
|
|
algo/simd/sph_simd.c \
|
|
algo/hamsi/sph_hamsi.c \
|
|
algo/fugue/sph_fugue.c \
|
|
algo/gost/sph_gost.c \
|
|
algo/jh/sph_jh.c \
|
|
algo/keccak/sph_keccak.c \
|
|
algo/keccak/keccak.c\
|
|
algo/sha3/sph_sha2.c \
|
|
algo/sha3/sph_sha2big.c \
|
|
algo/shabal/sph_shabal.c \
|
|
algo/whirlpool/sph_whirlpool.c\
|
|
crypto/blake2s.c \
|
|
crypto/oaes_lib.c \
|
|
crypto/c_keccak.c \
|
|
crypto/c_groestl.c \
|
|
crypto/c_blake256.c \
|
|
crypto/c_jh.c \
|
|
crypto/c_skein.c \
|
|
crypto/hash.c \
|
|
crypto/aesb.c \
|
|
crypto/magimath.cpp \
|
|
algo/argon2/argon2a.c \
|
|
algo/argon2/ar2/argon2.c \
|
|
algo/argon2/ar2/opt.c \
|
|
algo/argon2/ar2/cores.c \
|
|
algo/argon2/ar2/ar2-scrypt-jane.c \
|
|
algo/argon2/ar2/blake2b.c \
|
|
algo/axiom.c \
|
|
algo/blake/blake.c \
|
|
algo/blake/blake2b.c \
|
|
algo/blake/blake2s.c \
|
|
algo/blake/blakecoin.c \
|
|
algo/blake/decred.c \
|
|
algo/blake/pentablake.c \
|
|
algo/bmw/bmw256.c \
|
|
algo/cubehash/sse2/cubehash_sse2.c\
|
|
algo/cryptonight/cryptolight.c \
|
|
algo/cryptonight/cryptonight-common.c\
|
|
algo/cryptonight/cryptonight-aesni.c\
|
|
algo/cryptonight/cryptonight.c\
|
|
algo/drop.c \
|
|
algo/echo/aes_ni/hash.c\
|
|
algo/fresh.c \
|
|
algo/groestl/groestl.c \
|
|
algo/groestl/myr-groestl.c \
|
|
algo/groestl/aes_ni/hash-groestl.c \
|
|
algo/groestl/aes_ni/hash-groestl256.c \
|
|
algo/haval/haval.c\
|
|
algo/heavy/heavy.c \
|
|
algo/heavy/bastion.c \
|
|
algo/hmq1725.c \
|
|
algo/hodl/hodl.cpp \
|
|
algo/hodl/hodl-gate.c \
|
|
algo/hodl/hodl_arith_uint256.cpp \
|
|
algo/hodl/hodl_uint256.cpp \
|
|
algo/hodl/hash.cpp \
|
|
algo/hodl/hmac_sha512.cpp \
|
|
algo/hodl/sha256.cpp \
|
|
algo/hodl/sha512.cpp \
|
|
algo/hodl/utilstrencodings.cpp \
|
|
algo/hodl/hodl-wolf.c \
|
|
algo/hodl/aes.c \
|
|
algo/hodl/sha512_avx.c \
|
|
algo/hodl/sha512_avx2.c \
|
|
algo/lbry.c \
|
|
algo/luffa/luffa.c \
|
|
algo/luffa/sse2/luffa_for_sse2.c \
|
|
algo/lyra2/lyra2.c \
|
|
algo/lyra2/sponge.c \
|
|
algo/lyra2/lyra2rev2.c \
|
|
algo/lyra2/lyra2re.c \
|
|
algo/lyra2/zcoin.c \
|
|
algo/lyra2/zoin.c \
|
|
algo/keccak/sse2/keccak.c \
|
|
algo/m7m.c \
|
|
algo/neoscrypt.c \
|
|
algo/nist5.c \
|
|
algo/pluck.c \
|
|
algo/quark/quark.c \
|
|
algo/qubit/qubit.c \
|
|
algo/qubit/deep.c \
|
|
algo/ripemd/sph_ripemd.c \
|
|
algo/scrypt.c \
|
|
algo/scryptjane/scrypt-jane.c \
|
|
algo/sha2/sha2.c \
|
|
algo/sha2/sha256t.c \
|
|
algo/simd/sse2/nist.c \
|
|
algo/simd/sse2/vector.c \
|
|
algo/skein/skein.c \
|
|
algo/skein/skein2.c \
|
|
algo/s3.c \
|
|
algo/tiger/sph_tiger.c \
|
|
algo/timetravel.c \
|
|
algo/veltor.c \
|
|
algo/whirlpool/whirlpool.c \
|
|
algo/whirlpool/whirlpoolx.c \
|
|
algo/x11/x11.c \
|
|
algo/x11/x11evo.c \
|
|
algo/x11/x11gost.c \
|
|
algo/x11/c11.c \
|
|
algo/x13/x13.c \
|
|
algo/x14/x14.c \
|
|
algo/x15/x15.c \
|
|
algo/x17/x17.c \
|
|
algo/xevan.c \
|
|
algo/yescrypt/yescrypt.c \
|
|
algo/yescrypt/yescrypt-common.c \
|
|
algo/yescrypt/sha256_Y.c\
|
|
algo/yescrypt/yescrypt-simd.c\
|
|
algo/zr5.c
|
|
|
|
|
|
disable_flags =
|
|
|
|
if USE_ASM
|
|
cpuminer_SOURCES += asm/neoscrypt_asm.S
|
|
if ARCH_x86
|
|
cpuminer_SOURCES += asm/sha2-x86.S asm/scrypt-x86.S asm/aesb-x86.S
|
|
endif
|
|
if ARCH_x86_64
|
|
cpuminer_SOURCES += asm/sha2-x64.S asm/scrypt-x64.S asm/aesb-x64.S
|
|
endif
|
|
if ARCH_ARM
|
|
cpuminer_SOURCES += asm/sha2-arm.S asm/scrypt-arm.S
|
|
endif
|
|
else
|
|
disable_flags += -DNOASM
|
|
endif
|
|
|
|
if HAVE_WINDOWS
|
|
cpuminer_SOURCES += compat/winansi.c
|
|
endif
|
|
|
|
cpuminer_LDFLAGS = @LDFLAGS@
|
|
cpuminer_LDADD = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @WS2_LIBS@ -lssl -lcrypto -lgmp
|
|
cpuminer_CPPFLAGS = @LIBCURL_CPPFLAGS@ $(ALL_INCLUDES)
|
|
cpuminer_CFLAGS = -Wno-pointer-sign -Wno-pointer-to-int-cast $(disable_flags)
|
|
|
|
if HAVE_WINDOWS
|
|
cpuminer_CFLAGS += -Wl,--stack,10485760
|
|
endif
|
|
|
|
if HAVE_WINDOWS
|
|
# use to profile an object
|
|
# gprof_cflags = -pg -g3
|
|
# cpuminer_LDFLAGS += -pg
|
|
# cpuminer_CFLAGS += -fno-inline-functions -static
|
|
|
|
# copy/paste from generated Makefile
|
|
common_ccflags = $(DEFS) $(ALL_INCLUDES) $(cpuminer_CPPFLAGS) $(CPPFLAGS) $(cpuminer_CFLAGS) $(CFLAGS)
|
|
|
|
# special CFLAGS (if you find a simpler way to do that tell me ;)
|
|
cpuminer-neoscrypt.o: neoscrypt.c
|
|
@echo "CUSTOM ${@}: ${filter %.o,${^}} ${filter %.c,${^}}"
|
|
$(CC) $(common_ccflags) -g -O3 $(gprof_cflags) -MT $@ -MD -MP -c -o $@ $<
|
|
|
|
|
|
endif
|