-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
55 lines (49 loc) · 1.34 KB
/
makefile
File metadata and controls
55 lines (49 loc) · 1.34 KB
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
CC = gcc
AR = ar
CFLAGS = -O2 -g \
-D__USE_GNU -D__USE_XOPEN -D__USE_XOPEN2K -Iinclude -Isrc/secp256k1/include -Isrc/secp256k1 -I.\
-Wno-missing-prototypes -Wno-trigraphs -Werror=return-type \
-Wno-missing-braces \
-Wparentheses -Wswitch -Wno-unused-function -Wunused-label \
-Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body \
-Wno-unknown-pragmas -pedantic -Wshadow \
-Wno-conversion \
-Wint-conversion \
-Wpointer-sign -Wno-format-extra-args \
-Wdeprecated-declarations -Wno-sign-conversion
LDFLAGS = -lrt -lm -lpthread
TARGET = libmulticoin.la
TESTTARGET = mctest
OBJ = \
src/biguint.o \
src/rmd160.o \
src/base58.o \
src/sha3.o \
src/crypto.o \
src/vch.o \
src/buff.o \
src/rlp.o \
src/json.o \
src/coins.o \
src/key.o \
src/script.o \
src/tx.o \
src/sato.o \
src/lmc.o \
src/btc.o \
src/eth.o \
src/multicoin.o
TESTOBJ = $(OBJ) src/test.o src/bench_lmc.o src/bench_eth.o
TESTNET:= 0
CFLAGS += -DTESTNET=$(TESTNET)
all:$(TARGET)
$(TARGET):$(OBJ)
$(AR) -rs $@ $^
test:$(TESTOBJ)
$(CC) -o $(TESTTARGET) $(TESTOBJ) $(LDFLAGS)
%.o:%.c
$(CC) -c $(CFLAGS) -o $@ $<
clean:
-rm -f $(OBJ)
-rm -f $(TARGET)
-rm -f $(TESTTARGET)