mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 12:01:42 +01:00
Addresses #284
Updated Makefile git-svn-id: file:///svn/tokudb@2017 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
84e4c0db01
commit
5bc95c44c9
1 changed files with 21 additions and 4 deletions
|
@ -4,13 +4,30 @@
|
||||||
LIBNAMELINEAR=librangetreelinear
|
LIBNAMELINEAR=librangetreelinear
|
||||||
LIBNAME=librangetree
|
LIBNAME=librangetree
|
||||||
|
|
||||||
OPTFLAGS = #-O2
|
ifneq ($(OPT),)
|
||||||
#GCOV_FLAGS = -O0 -fprofile-arcs -ftest-coverage
|
OPTFLAGS = -O4
|
||||||
CFLAGS = -W -Wall -Werror -g3 -ggdb3 -fPIC $(OPTFLAGS) $(GCOV_FLAGS)
|
else
|
||||||
|
OPTFLAGS = -O0 -g3 -ggdb3
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ($(GCOV),)
|
||||||
|
GCOV_FLAGS = -fprofile-arcs -ftest-coverage
|
||||||
|
else
|
||||||
|
GCOV_FLAGS =
|
||||||
|
endif
|
||||||
|
|
||||||
|
CFLAGS = -W -Wall -Werror -fPIC $(OPTFLAGS) $(GCOV_FLAGS)
|
||||||
|
CFLAGS += -Wbad-function-cast -Wcast-align -Wconversion -Waggregate-return
|
||||||
|
CFLAGS += -Wmissing-noreturn -Wmissing-format-attribute
|
||||||
|
ifneq ($(W),)
|
||||||
|
CFLAGS+= -Wunreachable-code
|
||||||
|
endif
|
||||||
CPPFLAGS = -I../../include -I../../newbrt
|
CPPFLAGS = -I../../include -I../../newbrt
|
||||||
CPPFLAGS += -D_GNU_SOURCE -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
|
CPPFLAGS += -D_GNU_SOURCE -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
|
||||||
|
|
||||||
ifeq ($(OSX),OSX)
|
|
||||||
|
|
||||||
|
ifneq ($(OSX),)
|
||||||
LIBEXT=dylib
|
LIBEXT=dylib
|
||||||
SHARED=-dynamiclib
|
SHARED=-dynamiclib
|
||||||
CFLAGS+=-fno-common
|
CFLAGS+=-fno-common
|
||||||
|
|
Loading…
Add table
Reference in a new issue