mirror of
https://github.com/lexborisov/Modest
synced 2024-11-22 05:41:32 +03:00
Makefile
This commit is contained in:
parent
8669462c8c
commit
4a54eecead
4
Makefile
4
Makefile
@ -15,11 +15,7 @@ CC ?= gcc
|
||||
#********************
|
||||
# Flags
|
||||
#***************
|
||||
MODEST_OPTIMIZATION_LEVEL ?= -O2
|
||||
|
||||
MODEST_CFLAGS ?= -Wall -Werror
|
||||
MODEST_CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99 -I$(SRCDIR)
|
||||
|
||||
MODEST_LFLAGS ?=
|
||||
|
||||
#********************
|
||||
|
@ -9,7 +9,8 @@ MODEST_LIBRARY_STATIC ?= $(LIB_DIR_BASE)/lib$(LIB_NAME)$(LIB_NAME_SUFFIX_STATIC)
|
||||
MODEST_PORT_NAME ?= posix
|
||||
|
||||
# flags
|
||||
MODEST_CFLAGS := -I$(INCLUDE_DIR)
|
||||
MODEST_OPTIMIZATION_LEVEL ?= -O2
|
||||
MODEST_CFLAGS += -I$(INCLUDE_DIR)
|
||||
OS ?= $(shell uname -s)
|
||||
|
||||
#*******************************
|
||||
@ -29,7 +30,8 @@ endif
|
||||
# Darwin, Mac OS X
|
||||
#*******************
|
||||
ifeq ($(OS),Darwin)
|
||||
CFLAGS += -fPIC
|
||||
MODEST_CFLAGS += -fPIC
|
||||
MODEST_CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99
|
||||
|
||||
LIB_NAME_SUFFIX := .dylib
|
||||
|
||||
@ -53,7 +55,8 @@ endif
|
||||
ifeq ($(MODEST_BUILD_OS),UNDEF)
|
||||
MODEST_CFLAGS += -fPIC
|
||||
MODEST_CFLAGS += -D_POSIX_C_SOURCE=199309L
|
||||
|
||||
MODEST_CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable --std=c99
|
||||
|
||||
# build without threads
|
||||
ifeq ($(MODEST_BUILD_WITHOUT_THREADS),YES)
|
||||
MODEST_CFLAGS += -DMODEST_BUILD_WITHOUT_THREADS
|
||||
|
Loading…
Reference in New Issue
Block a user