-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (35 loc) · 1.04 KB
/
Makefile
File metadata and controls
49 lines (35 loc) · 1.04 KB
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
39
40
41
42
43
44
45
46
47
48
49
ifeq ($(CLANG), 1)
CC=clang
STDCPP=-lstdc++
else
CC=g++
STDCPP=
endif
INC = $(BOOST_ROOT)/
INC_PARAMS=$(foreach d, $(INC), -I$d)
LIB_DIRS = $(BOOST_ROOT)/stage/lib/
SOURCES = FHErrorTracker.cpp
LIBS = -lm
# Removing warnings on unused typedefs to quiet down boost
COMMON = -std=c++11 -Wall -Wno-unused-local-typedefs $(STDCPP) -L$(LIB_DIRS) $(LIBS) $(INC_PARAMS) -pthread -Wl,--no-as-needed
all:
make release
debug:
$(CC) -g -DDEBUG $(COMMON) $(SOURCES) main.cpp -o OrderBookProcessor
release:
g++ -O3 -DNDEBUG $(COMMON) $(SOURCES) main.cpp -o OrderBookProcessor
test:
$(CC) -g -DDEBUG $(COMMON) $(SOURCES) Tester.cpp -o UtilityTester
perftest:
g++ -O3 -g -DDEBUG $(COMMON) $(SOURCES) Tester.cpp -o UtilityTester
profile:
g++ -O3 -DNDEBUG -DPROFILE $(COMMON) $(SOURCES) main.cpp -o OrderBookProcessor
lib:
g++ -O3 -DNDEBUG $(COMMON) $(SOURCES) -shared -o libOrderBook.so
grind:
$(CC) -g -O3 -DNDEBUG -DPROFILE $(COMMON) $(SOURCES) main.cpp -o OrderBookProcessor
clean:
rm -f OrderBookProcessor
rm -f UtilityTester
rm -f *.out
rm -f *.so