-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
35 lines (23 loc) · 720 Bytes
/
Copy pathmakefile
File metadata and controls
35 lines (23 loc) · 720 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
29
30
31
32
33
34
35
# Compiler specifications
CXX = g++
# For developer
# CXXFLAGS = -g -Wall -std=c++17
# For release
CXXFLAGS = -std=c++17 -O2
# Directory containing include files
INCLUDE = include
# Directory containing build files
BUILD = build
# Directory containing source files
SRC = src
demo: demo.o
$(CXX) $(BUILD)/demo.o $(BUILD)/aes.o $(BUILD)/utils.o -o demo
demo.o: $(SRC)/demo.cpp aes.o utils.o
$(CXX) -c $(CXXFLAGS) -I $(INCLUDE) $(SRC)/demo.cpp -o $(BUILD)/demo.o
aes.o: $(SRC)/aes.cpp utils.o
$(CXX) -c $(CXXFLAGS) -I $(INCLUDE) $(SRC)/aes.cpp -o $(BUILD)/aes.o
utils.o: $(SRC)/utils.cpp
$(CXX) -c $(CXXFLAGS) -I $(INCLUDE) $(SRC)/utils.cpp -o $(BUILD)/utils.o
.PHONY: clean
clean:
$(RM) demo $(BUILD)/*