mirror of
https://github.com/lexborisov/Modest
synced 2024-11-22 05:41:32 +03:00
54 lines
1.2 KiB
INI
54 lines
1.2 KiB
INI
BINARY_BUILD_OS := UNDEF
|
|
|
|
# library config
|
|
BINARY_PATH_RELATIVE ?= .
|
|
include $(BINARY_PATH_RELATIVE)/Makefile.cfg
|
|
|
|
# uses
|
|
BINARY_LIBRARIES += $(BINARY_PATH_RELATIVE)/$(call MODEST_LIBRARY_STATIC)
|
|
|
|
# flags
|
|
BINARY_OPTIMIZATION_LEVEL ?= -O2
|
|
BINARY_CFLAGS += -I$(BINARY_PATH_RELATIVE)/$(INCLUDE_DIR_API)
|
|
BINARY_LDFLAGS +=
|
|
BINARY_BUILD_OS ?= UNDEF
|
|
|
|
#*******************************
|
|
# Windows_NT
|
|
#*******************
|
|
ifeq ($(OS),Windows_NT)
|
|
BINARY_CFLAGS += -Wno-unused-variable -Wno-unused-function -std=c99
|
|
|
|
BINARY_BUILD_OS := $(OS)
|
|
endif
|
|
# end of Windows_NT
|
|
|
|
#*******************************
|
|
# Darwin, Mac OS X
|
|
#*******************
|
|
ifeq ($(OS),Darwin)
|
|
BINARY_CFLAGS += -fPIC
|
|
BINARY_CFLAGS += $(BINARY_OPTIMIZATION_LEVEL) -Wno-unused-variable -Wno-unused-function -std=c99
|
|
|
|
BINARY_BUILD_OS := $(OS)
|
|
endif
|
|
# end of Darwin, Mac OS X
|
|
|
|
#*******************************
|
|
# POSIX
|
|
#*******************
|
|
ifeq ($(BINARY_BUILD_OS),UNDEF)
|
|
BINARY_CFLAGS += -fPIC
|
|
BINARY_CFLAGS += -D_POSIX_C_SOURCE=199309L
|
|
BINARY_CFLAGS += $(BINARY_OPTIMIZATION_LEVEL) -Wno-unused-variable -Wno-unused-function -std=c99
|
|
BINARY_LIBRARIES += -lm
|
|
|
|
# build without threads
|
|
ifneq ($(MODEST_BUILD_WITHOUT_THREADS),YES)
|
|
BINARY_LIBRARIES += -pthread
|
|
endif
|
|
|
|
BINARY_BUILD_OS := $(OS)
|
|
endif
|
|
# end of POSIX
|