-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 743 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 743 Bytes
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
CXXFLAGS += -std=c++11 -w -ltasn1 -g
LDFLAGS += -lsqlite3 -lpthread
BIN=./bin
SRC=./src
BUILD=./build
LIB=./lib
.PHONY: all clean hash-library debug
all: server client
server: $(BIN)/server.o
$(CXX) -o bin/server.o src/server.cpp $(CXXFLAGS) $(LDFLAGS)
client: $(BIN)/client.o client-commands
$(CXX) -o $(BIN)/client.o $(SRC)/client.cpp $(BUILD)/client-commands.o build/sha256.o $(CXXFLAGS)
client-commands: $(BUILD)/client-commands.o hash-library
$(CXX) -o $(BUILD)/client-commands.o -c $(SRC)/client-commands.cpp $(CXXFLAGS)
hash-library: $(BUILD)/sha256.o
$(CXX) -o $(BUILD)/sha256.o -c lib/hash-library/sha256.cpp $(CXXFLAGS)
debug:
$(CXX) -o $(BIN)/server.o $(SRC)/server.cpp $(CXXFLAGS) -g
clean:
$(RM) $(BIN)/* $(BUILD)/*