-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 818 Bytes
/
Copy pathMakefile
File metadata and controls
38 lines (29 loc) · 818 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
36
37
38
CXX := g++
COMMON_FLAGS := -std=c++17 -O3 -g -Wall -Wextra -pedantic -march=native
INCLUDES := -Iinclude
SRC := \
src/main.cpp \
src/utf8.cpp \
src/input.cpp \
src/grades.cpp \
src/fileio.cpp \
src/sorting.cpp \
src/table.cpp \
src/menu.cpp \
src/fileGenerator.cpp \
src/splitting.cpp \
src/benchmark.cpp
TARGETS := vector list deque
all: $(TARGETS)
vector: CXXFLAGS := $(COMMON_FLAGS) -DSTUDENT_CONTAINER_VECTOR
vector: $(SRC)
$(CXX) $(CXXFLAGS) $(INCLUDES) $(SRC) -o $@
list: CXXFLAGS := $(COMMON_FLAGS) -DSTUDENT_CONTAINER_LIST
list: $(SRC)
$(CXX) $(CXXFLAGS) $(INCLUDES) $(SRC) -o $@
deque: CXXFLAGS := $(COMMON_FLAGS) -DSTUDENT_CONTAINER_DEQUE
deque: $(SRC)
$(CXX) $(CXXFLAGS) $(INCLUDES) $(SRC) -o $@
clean:
rm -f $(TARGETS) benchmark_*.csv kietiakai.txt vargsiukai.txt
.PHONY: all clean