Commit 35b35f73 authored by Yoni Fogel's avatar Yoni Fogel

Addresses #284

Updated Makefile


git-svn-id: file:///svn/tokudb@2017 c7de825b-a66e-492c-adef-691d508d4ae1
parent f5515a4f
...@@ -4,13 +4,30 @@ ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment