mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +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
|
||||
LIBNAME=librangetree
|
||||
|
||||
OPTFLAGS = #-O2
|
||||
#GCOV_FLAGS = -O0 -fprofile-arcs -ftest-coverage
|
||||
CFLAGS = -W -Wall -Werror -g3 -ggdb3 -fPIC $(OPTFLAGS) $(GCOV_FLAGS)
|
||||
ifneq ($(OPT),)
|
||||
OPTFLAGS = -O4
|
||||
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 += -D_GNU_SOURCE -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
|
||||
|
||||
ifeq ($(OSX),OSX)
|
||||
|
||||
|
||||
ifneq ($(OSX),)
|
||||
LIBEXT=dylib
|
||||
SHARED=-dynamiclib
|
||||
CFLAGS+=-fno-common
|
||||
|
|
Loading…
Add table
Reference in a new issue