This commit is contained in:
lexborisov 2017-03-09 23:53:29 +03:00
parent 8669462c8c
commit 4a54eecead
2 changed files with 6 additions and 7 deletions

View File

@ -15,11 +15,7 @@ CC ?= gcc
#******************** #********************
# Flags # Flags
#*************** #***************
MODEST_OPTIMIZATION_LEVEL ?= -O2
MODEST_CFLAGS ?= -Wall -Werror MODEST_CFLAGS ?= -Wall -Werror
MODEST_CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99 -I$(SRCDIR)
MODEST_LFLAGS ?= MODEST_LFLAGS ?=
#******************** #********************

View File

@ -9,7 +9,8 @@ MODEST_LIBRARY_STATIC ?= $(LIB_DIR_BASE)/lib$(LIB_NAME)$(LIB_NAME_SUFFIX_STATIC)
MODEST_PORT_NAME ?= posix MODEST_PORT_NAME ?= posix
# flags # flags
MODEST_CFLAGS := -I$(INCLUDE_DIR) MODEST_OPTIMIZATION_LEVEL ?= -O2
MODEST_CFLAGS += -I$(INCLUDE_DIR)
OS ?= $(shell uname -s) OS ?= $(shell uname -s)
#******************************* #*******************************
@ -29,7 +30,8 @@ endif
# Darwin, Mac OS X # Darwin, Mac OS X
#******************* #*******************
ifeq ($(OS),Darwin) ifeq ($(OS),Darwin)
CFLAGS += -fPIC MODEST_CFLAGS += -fPIC
MODEST_CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99
LIB_NAME_SUFFIX := .dylib LIB_NAME_SUFFIX := .dylib
@ -53,7 +55,8 @@ endif
ifeq ($(MODEST_BUILD_OS),UNDEF) ifeq ($(MODEST_BUILD_OS),UNDEF)
MODEST_CFLAGS += -fPIC MODEST_CFLAGS += -fPIC
MODEST_CFLAGS += -D_POSIX_C_SOURCE=199309L MODEST_CFLAGS += -D_POSIX_C_SOURCE=199309L
MODEST_CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99
# build without threads # build without threads
ifeq ($(MODEST_BUILD_WITHOUT_THREADS),YES) ifeq ($(MODEST_BUILD_WITHOUT_THREADS),YES)
MODEST_CFLAGS += -DMODEST_BUILD_WITHOUT_THREADS MODEST_CFLAGS += -DMODEST_BUILD_WITHOUT_THREADS