-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (19 loc) · 695 Bytes
/
Makefile
File metadata and controls
28 lines (19 loc) · 695 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
# tool macros
CXX := g++
CXXFLAGS := -Ofast -std=c++11 -lcryptopp
TARGET := build/s3pir
INCLUDE := src/include
# src files & obj files
SRC := src/client.cpp src/server.cpp src/main.cpp src/utils.cpp
DEPS := src/include/client.h src/include/server.h src/include/utils.h
all: $(TARGET) $(TARGET)_simlargeserver
debug: $(TARGET)_debug
clean:
rm build/*
.PHONY: all clean debug
$(TARGET): $(SRC) $(DEPS)
$(CXX) -o $(TARGET) -I $(INCLUDE) $(SRC) $(CXXFLAGS)
$(TARGET)_debug: $(SRC) $(DEPS)
$(CXX) -DDEBUG -o $(TARGET)_debug -I $(INCLUDE) $(SRC) $(CXXFLAGS)
$(TARGET)_simlargeserver: $(SRC) $(DEPS)
$(CXX) -DSimLargeServer -o $(TARGET)_simlargeserver -I $(INCLUDE) $(SRC) $(CXXFLAGS)