-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
32 lines (22 loc) · 835 Bytes
/
makefile
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
# HowlblockChain
# *****************************************************
# compile variables
CC = g++
CFLAGS = -Wall -ggdb3 -std=c++11 -Ilib
BIN=bin/
OBJ=obj/
SOURCE=src/
# ****************************************************
main: $(OBJ)blockChain.o $(OBJ)main.o
$(CC) $(CFLAGS) -o $(BIN)main $(OBJ)main.o $(OBJ)blockChain.o $(OBJ)block.o -L./lib/ -lcrypto
$(OBJ)main.o: src/main.cpp lib/blockChain.h
$(CC) $(CFLAGS) -c src/main.cpp -o $(OBJ)main.o
# ****************************************************
$(OBJ)block.o: src/block.cpp lib/block.h
$(CC) $(CFLAGS) -c src/block.cpp -o $(OBJ)block.o
$(OBJ)blockChain.o: src/blockChain.cpp lib/blockChain.h $(OBJ)block.o
$(CC) $(CFLAGS) -c src/blockChain.cpp -o $(OBJ)blockChain.o
# ****************************************************
clean:
rm $(OBJ)*.o
rm $(BIN)main