-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathMakefile
28 lines (20 loc) · 1010 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
WARNINGS = -Werror -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter
# gcc flags used for both debug and opt builds
BASE_CXX_FLAGS := -MD $(CXXFLAGS) $(WARNINGS) -std=c++11
# Debug flags
CXXFLAGS = -g $(BASE_CXX_FLAGS)
# Optimization flags
#CXXFLAGS = -g -O3 -DNDEBUG $(BASE_CXX_FLAGS)
# Link with the C++ standard library
LDFLAGS=-lstdc++
BINARIES = btree_test randomgenerator_test tpccclient_test tpcctables_test tpccgenerator_test tpcc
all: $(BINARIES)
btree_test: btree_test.o stupidunit.o
randomgenerator_test: randomgenerator_test.o randomgenerator.o stupidunit.o
tpccclient_test: tpccclient_test.o tpccclient.o randomgenerator.o stupidunit.o
tpcctables_test: tpcctables_test.o tpcctables.o tpccdb.o randomgenerator.o stupidunit.o
tpccgenerator_test: tpccgenerator_test.o tpccgenerator.o tpcctables.o tpccdb.o randomgenerator.o stupidunit.o
tpcc: tpcc.o tpccclient.o tpccgenerator.o tpcctables.o tpccdb.o clock.o randomgenerator.o stupidunit.o
clean :
$(RM) *.o *.d $(BINARIES)
-include *.d