diff options
author | lexborisov <lex.borisov@gmail.com> | 2017-03-16 23:15:55 +0300 |
---|---|---|
committer | lexborisov <lex.borisov@gmail.com> | 2017-03-16 23:15:55 +0300 |
commit | 66d5d951df13aa3efdefe8269a94426ff42a4279 (patch) | |
tree | c808800060c4e0d48b1d89f7a8368d999637124b /Makefile.cfg | |
parent | 5fd8812409fd17cfe8286c6215a07e2836d001ca (diff) |
Make clone for Linux and Mac OS X
Diffstat (limited to 'Makefile.cfg')
-rw-r--r-- | Makefile.cfg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.cfg b/Makefile.cfg index a599a74..cb8973e 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -70,6 +70,7 @@ MODEST_BUILD_CLEAN_AFTER := # DEFAULT #*************** SED ?= sed + MODEST_DIR_SEPARATOR ?= / MODEST_PORT_NAME ?= posix @@ -82,6 +83,8 @@ OS ?= $(shell uname -s) prefix ?= /usr/local exec_prefix ?= $(prefix) +MODEST_CLONE_SED_HEADER_COMMAND = find $(INCLUDE_DIR_API) -name "*.h" -exec sed -i.bak -e 's,\s*\#\s*include\s*"\([^"]*\)",\#include <\1>,g' {} \; + #******************** # Set -D #*************** @@ -133,6 +136,8 @@ endif # Darwin, Mac OS X #******************* ifeq ($(OS),Darwin) + MODEST_CLONE_SED_HEADER_COMMAND = find $(INCLUDE_DIR_API) -name "*.h" -exec sed -i '.bak' -E 's/^[ \t]*\#[ \t]*include[ \t]*"([^"]+)"/\#include <\1>/g' {} \; + MODEST_CFLAGS += -fPIC MODEST_CFLAGS += $(MODEST_OPTIMIZATION_LEVEL) -Wno-unused-variable -Wno-unused-function -std=c99 LIB_NAME_SUFFIX := .dylib |