-
Notifications
You must be signed in to change notification settings - Fork 11
/
makefile
29 lines (20 loc) · 856 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
#
.SUFFIXES:
#
.SUFFIXES: .cpp .o .c .h
RELEASEFLAGS = -std=c++11 -O3 -Wall -mavx -msse4.2 -Wextra -fexceptions -fPIC
DEBUGFLAGS = -std=c++11 -g3 -Wall -mavx -msse4.2 -Wextra -fexceptions -fPIC
SANITIZEFLAGS = -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined
all: runningmaxmin unit
debug: runningmaxmin.h runningmaxmin.cpp
$(CXX) $(DEBUGFLAGS) -o runningmaxmin runningmaxmin.cpp
runningmaxmin : runningmaxmin.h runningmaxmin.cpp
$(CXX) $(RELEASEFLAGS) -o runningmaxmin runningmaxmin.cpp
unit : runningmaxmin.h unit.cpp
$(CXX) $(RELEASEFLAGS) -o unit unit.cpp
sanerunningmaxmin : runningmaxmin.h runningmaxmin.cpp
$(CXX) $(DEBUGFLAGS) $(SANITIZEFLAGS) -o sanerunningmaxmin runningmaxmin.cpp
saneunit : runningmaxmin.h unit.cpp
$(CXX) $(DEBUGFLAGS) $(SANITIZEFLAGS) -o saneunit unit.cpp
clean:
rm -f *.o runningmaxmin unit