-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakerules.dep
45 lines (32 loc) · 957 Bytes
/
Makerules.dep
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
//RELEASE_VERSION = release
RELEASE_VERSION = debug
CC = g++
.SUFFIXES: .cpp .h
CFLAGS += -std=c++11
CFLAGS += -Wall
CFLAGS += -Wextra
CFLAGS += -Wreturn-local-addr
//CFLAGS += -Wfloat-equal
CFLAGS += -Wno-unused-parameter
CFLAGS += -Wno-ignored-qualifiers
CFLAGS += -Wno-sign-compare
CFLAGS += -Wno-unused-variable
CFLAGS += -Wno-unused-but-set-variable
CFLAGS += -Wno-deprecated-declarations
//CFLAGS += -Wno-type-limits
CFLAGS += -Werror=return-type
//CFLAGS += -Werror=extra
CFLAGS += -DOMN_PLATFORM_UNIX
ifeq ($(RELEASE_VERSION),debug)
//CFLAGS += -fno-omit-frame-pointer
//CFLAGS += -fsanitize=address
//CFLAGS += -fsanitize=thread
//CFLAGS += -fsanitize=leak
//CFLAGS += -fsanitize=undefined
//CFLAGS += -Og
CFLAGS += -g
CFLAGS += -DUSE_TESTBOT
//CFLAGS += -DAOS_MEMORY_MEMORYPOOL
endif
CREATEDIR = $(shell if [ -d $(OBJDIR) ]; then echo ""; else mkdir $(OBJDIR); fi)
OBJECTS = $(patsubst %.cpp,$(OBJDIR)/%.o,$(wildcard *.cpp))