Commit e0ce6649 authored by Yoni Fogel's avatar Yoni Fogel

Makefile updates


git-svn-id: file:///svn/tokudb@1972 c7de825b-a66e-492c-adef-691d508d4ae1
parent 84e7f1bb
...@@ -3,8 +3,13 @@ ...@@ -3,8 +3,13 @@
LIBNAME=liblocktree LIBNAME=liblocktree
OPTFLAGS = #-O2 OPTFLAGS = -O0
# GCOV_FLAGS = -fprofile-arcs -ftest-coverage ifeq ($(GCOV),GCOV)
GCOV_FLAGS = -fprofile-arcs -ftest-coverage
else
GCOV_FLAGS =
endif
CFLAGS = -W -Wall -Werror -g3 -ggdb3 -fPIC $(OPTFLAGS) $(GCOV_FLAGS) CFLAGS = -W -Wall -Werror -g3 -ggdb3 -fPIC $(OPTFLAGS) $(GCOV_FLAGS)
CPPFLAGS = -I. -I.. -I../range_tree -I../../include -I../../newbrt -L../range_tree CPPFLAGS = -I. -I.. -I../range_tree -I../../include -I../../newbrt -L../range_tree
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
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# For very verbose output do # For very verbose output do
# make VERBOSE=2 # make VERBOSE=2
OPTFLAGS = -O0
ifeq ($(OSX),OSX) ifeq ($(OSX),OSX)
#Note: OSX 10.4 needs DYLD_LIBRARY_PATH. OSX 10.5 claims to support -rpath. #Note: OSX 10.4 needs DYLD_LIBRARY_PATH. OSX 10.5 claims to support -rpath.
LIBEXT=dylib LIBEXT=dylib
...@@ -23,7 +24,11 @@ else ...@@ -23,7 +24,11 @@ else
endif endif
LIBNAME=librt.$(LIBEXT) LIBNAME=librt.$(LIBEXT)
# GCOV_FLAGS = -fprofile-arcs -ftest-coverage ifeq ($(GCOV),GCOV)
GCOV_FLAGS = -fprofile-arcs -ftest-coverage
else
GCOV_FLAGS =
endif
CFLAGS = -Wall -Werror $(OPTFLAGS) -g3 -ggdb3 $(GCOV_FLAGS) CFLAGS = -Wall -Werror $(OPTFLAGS) -g3 -ggdb3 $(GCOV_FLAGS)
CPPFLAGS += -L../ -L../../range_tree CPPFLAGS += -L../ -L../../range_tree
CPPFLAGS += -I. -I../ -I../../range_tree -I../../../newbrt -lpthread CPPFLAGS += -I. -I../ -I../../range_tree -I../../../newbrt -lpthread
......
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