forked from cjdelisle/PacketCrypt
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
117 lines (106 loc) · 3.77 KB
/
Makefile.am
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# what flags you want to pass to the C compiler & linker
CFLAGS = \
--pedantic \
-Wall \
-Wextra \
-Wno-pointer-sign \
-Wno-unused-parameter \
-std=c11 \
-g \
-O3 -march=native -Werror
#-fsanitize=address -lasan
CXXFLAGS = \
--pedantic \
-Wall \
-Wextra \
-Wno-unused-parameter \
-std=c++11 \
-g \
-O0 -march=native -Werror
bin_PROGRAMS =
lib_LIBRARIES =
lib_LIBRARIES += libpacketcrypt.a
libpacketcrypt_a_SOURCES = Makefile\
include/PacketCrypt.h \
src/Validate.c include/Validate.h \
src/AnnMiner.c include/AnnMiner.h \
src/BlockMiner.c include/BlockMiner.h \
src/AnnMerkle.c src/AnnMerkle.h \
src/Announce.c src/Announce.h \
src/Buf.h \
src/Conf.h \
src/CryptoCycle.c src/CryptoCycle.h \
src/DecodeInsn.h \
src/Difficulty.c src/Difficulty.h \
src/Hash.c src/Hash.h \
src/OpCodes.h \
src/OpTemplate.h \
src/PacketCryptProof.c src/PacketCryptProof.h \
src/PcCompress.c src/PcCompress.h \
src/RandGen.c src/RandGen.h \
src/RandHash_interpreted.c \
src/RandHashOps.c \
src/optest.c \
src/RandHash.h \
src/Time.c src/Time.h \
src/Util.h \
src/Vec.h \
src/Work.c src/Work.h
libpacketcrypt_a_CFLAGS = ${CRYPTO_CFLAGS} ${sodium_CFLAGS} ${PTHREAD_CFLAGS} -Iinclude
bin_PROGRAMS += bin/pcblk
bin_pcblk_SOURCES = src/pcblk.c \
include/BlockMiner.h \
include/PacketCrypt.h \
src/FileUtil.c src/FileUtil.h
bin_pcblk_CFLAGS = -Iinclude ${sodium_CFLAGS}
bin_pcblk_LDADD = libpacketcrypt.a ${sodium_LIBS} ${PTHREAD_CFLAGS} ${CRYPTO_LIBS} -lm
bin_PROGRAMS += bin/pcann
bin_pcann_SOURCES = src/pcann.c \
include/AnnMiner.h \
include/PacketCrypt.h
bin_pcann_CFLAGS = -Iinclude ${sodium_CFLAGS}
bin_pcann_LDADD = libpacketcrypt.a ${sodium_LIBS} ${PTHREAD_CFLAGS} ${CRYPTO_LIBS}
if ENABLE_DIFFTEST
bin_PROGRAMS += bin/difftest
bin_difftest_SOURCES = src/difftest/main.cpp \
src/difftest/bignum.h \
src/Difficulty.c \
src/Difficulty.h
bin_difftest_CFLAGS = ${CRYPTO_CFLAGS}
bin_difftest_LDADD = ${CRYPTO_LIBS}
endif
bin_PROGRAMS += bin/optest
bin_optest_SOURCES = Makefile \
src/optest.c \
src/Hash.c src/Hash.h \
src/RandGen.c src/RandGen.h \
src/RandHash_interpreted.c
bin_optest_CFLAGS = -Iinclude ${sodium_CFLAGS} -DOPTEST=1
bin_optest_LDADD = ${sodium_LIBS}
bin_PROGRAMS += bin/checkanns
bin_checkanns_SOURCES = Makefile \
src/checkanns.c \
include/packetcrypt/PacketCrypt.h \
include/packetcrypt/Validate.h \
src/Buf.h \
src/Hash.h \
src/Time.h \
src/FilePath.h \
src/WorkQueue.c src/WorkQueue.h \
src/FileUtil.c src/FileUtil.h
bin_checkanns_CFLAGS = -Iinclude ${sodium_CFLAGS}
bin_checkanns_LDADD = libpacketcrypt.a ${sodium_LIBS} ${PTHREAD_CFLAGS} ${CRYPTO_LIBS}
bin_PROGRAMS += bin/checkshares
bin_checkshares_SOURCES = Makefile \
src/checkshares.c \
include/packetcrypt/PacketCrypt.h \
include/packetcrypt/BlockMiner.h \
include/packetcrypt/Validate.h \
src/Buf.h \
src/FilePath.h \
src/PoolProto.h \
src/Hash.h \
src/WorkQueue.c src/WorkQueue.h \
src/FileUtil.c src/FileUtil.h
bin_checkshares_CFLAGS = -Iinclude ${sodium_CFLAGS}
bin_checkshares_LDADD = libpacketcrypt.a ${sodium_LIBS} ${PTHREAD_CFLAGS} ${CRYPTO_LIBS}