Files
nolambocoin_miner_neu/Makefile.am
w12 06c2327c99
Some checks are pending
Build CPU miner / build (push) Waiting to run
angepasst
2025-01-07 16:49:38 +01:00

53 lines
1.3 KiB
Makefile

AUTOMAKE_OPTIONS = subdir-objects
# Bedingte Optionen für Jansson
if WANT_JANSSON
JANSSON_INCLUDES = @JANSSON_CFLAGS@
else
JANSSON_INCLUDES =
endif
EXTRA_DIST = example-cfg.json
SUBDIRS = compat
bin_PROGRAMS = nolambocoin-miner
dist_man_MANS = nolambocoin-miner.1
nolambocoin_miner_SOURCES = \
cpu-miner.c util.c sha2.c \
yespower-1.0.1/sha256.c yespower-1.0.1/yespower-opt.c \
YespowerSugar.c YespowerIso.c YespowerNull.c \
YespowerUrx.c YespowerLitb.c YespowerIots.c \
YespowerItc.c YespowerYtn.c \
yespower-1.0.1-power2b/sha256-p2b.c yespower-1.0.1-power2b/yespower-opt-p2b.c \
yespower-1.0.1-power2b/blake2b.c YespowerMbc.c \
YespowerARM.c
# Entferne Header-Dateien aus SOURCES und definiere sie separat
include_HEADERS = \
elist.h miner.h compat.h version.h
AM_CPPFLAGS = $(JANSSON_INCLUDES) -I$(top_srcdir)/compat/jansson @PTHREAD_CFLAGS@
# Allgemeine Compiler-Flags basierend auf den Conditionals setzen
if TARGET_RASPBERRY
AM_CPPFLAGS += -DTARGET_RASPBERRY
endif
if TARGET_NOARM
AM_CPPFLAGS += -DTARGET_NOARM
endif
if TARGET_DEFAULT
AM_CPPFLAGS += -DTARGET_DEFAULT
endif
nolambocoin_miner_LDFLAGS = @PTHREAD_LIBS@
nolambocoin_miner_LDADD = @CURL_LIBS@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @WS2_LIBS@
if TARGET_WINDOWS
nolambocoin_miner_LDADD += @WS2_LIBS@
endif