mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
makefile improvements
git-svn-id: file:///svn/toku/tokudb@19554 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
060e15681e
commit
2657367d80
2 changed files with 7 additions and 1 deletions
|
@ -3,7 +3,10 @@
|
|||
.DEFAULT_GOAL= build
|
||||
TOKUROOT=../
|
||||
INCLUDEDIRS=-I. -I../include
|
||||
ifneq ($(COMBINE),0)
|
||||
COMBINE=1
|
||||
endif
|
||||
|
||||
#TODO: Replace DEPEND_COMPILE with auto-dependancy generation.
|
||||
DEPEND_COMPILE += \
|
||||
$(wildcard *.h) \
|
||||
|
|
|
@ -98,11 +98,14 @@ else
|
|||
WERROR = -Werror
|
||||
endif
|
||||
|
||||
# -Wno-deprecated is needed on gcc 4.4.2 to make the #ident complaints go away.
|
||||
# -Wno-deprecated is needed on gcc 4.4.{1,2} to make the #ident complaints go away.
|
||||
# -Wno-strict-aliasing is needed on gcc 4.4.2 to make certain gratuitous warnings go away.
|
||||
ifeq ($(GCCVERSION),4.4.2)
|
||||
GCC_VERSION_SPECIFIC = -Wno-deprecated
|
||||
endif
|
||||
ifeq ($(GCCVERSION),4.4.1)
|
||||
GCC_VERSION_SPECIFIC = -Wno-deprecated
|
||||
endif
|
||||
WALL = $(GCC_VERSION_SPECIFIC) -Wall -Wextra -Wcast-align -Wbad-function-cast -Wno-missing-noreturn -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
|
||||
|
||||
FORMAT = -Wmissing-format-attribute #-Wformat=2 #Stronger printf warnings once logger.c cleaned up
|
||||
|
|
Loading…
Add table
Reference in a new issue