build-config/Darwin.conf
author Krista Bennett <krista@pep-project.org>
Fri, 01 Jun 2018 10:30:19 +0200
branchENGINE-237
changeset 2726 497fe9a22367
parent 1990 644e2b84b860
child 2041 abf2021e960a
permissions -rw-r--r--
close branch
damiano@1960
     1
# Copyright 2017, pEp Foundation
damiano@1953
     2
# This file is part of pEpEngine
damiano@1953
     3
# This file may be used under the terms of the GNU General Public License version 3
damiano@1953
     4
# see LICENSE.txt
damiano@1953
     5
damiano@1953
     6
######### General #########
damiano@1953
     7
TARGET=libpEpEngine.dylib
damiano@1953
     8
damiano@1953
     9
######### C #########
damiano@1974
    10
# clang issues a warning when "-pthread" is used for linking. So, include it in CFLAGS, and not in CC
damiano@1973
    11
CC=clang -std=c99
damiano@1973
    12
CFLAGS=-pthread -fPIC -fstrict-aliasing -fcolor-diagnostics
damiano@1956
    13
ifdef WARN
damiano@1985
    14
    # FIXME Remove 'no-extended-offsetof' after ENGINE-236 is closed.
damiano@1985
    15
    CFLAGS+= -Wall -pedantic -Wno-extended-offsetof
damiano@1956
    16
else
damiano@1956
    17
    CFLAGS+= -w
damiano@1956
    18
endif
damiano@1956
    19
ifdef DEBUG
damiano@1956
    20
    CFLAGS+= -O0 -g -DDEBUG_ERRORSTACK
damiano@1956
    21
else
damiano@1956
    22
    CFLAGS+= -O3 -DNDEBUG
damiano@1956
    23
endif
damiano@1973
    24
CFLAGS_GENERATED=
damiano@1953
    25
damiano@1953
    26
######### C++ #########
damiano@1974
    27
# clang issues a warning when "-pthread" is used for linking. So, include it in CXXFLAGS, and not in CXX
damiano@1974
    28
CXX=clang -std=c++11
damiano@1974
    29
CXXFLAGS=-pthread -fcolor-diagnostics -I../src -I../asn.1 $(ETPAN_INC)
damiano@1956
    30
ifdef WARN
damiano@1956
    31
    CXXFLAGS+=
damiano@1956
    32
else
damiano@1956
    33
    CXXFLAGS+= -w
damiano@1956
    34
endif
damiano@1956
    35
ifdef DEBUG
damiano@1956
    36
    CXXFLAGS+= -O0 -g
damiano@1956
    37
else
damiano@1956
    38
    CXXFLAGS+= -O3 -DNDEBUG
damiano@1956
    39
endif
damiano@1953
    40
damiano@1953
    41
######### C and C++ #########
damiano@1990
    42
# "-bind_at_load" helps find symbol resolution errors faster
damiano@1990
    43
LDFLAGS=-bind_at_load
damiano@1953
    44
damiano@1953
    45
######### YML2 #########
damiano@1953
    46
damiano@1953
    47
######### asn1c #########
damiano@1953
    48
damiano@1953
    49
######### libetpan #########
damiano@1953
    50
damiano@1953
    51
######### OpenPGP #########
damiano@1958
    52
LIBGPGME=libgpgme.dylib
damiano@1973
    53
GPGME_LIB=-L/opt/local/lib
damiano@1973
    54
GPGME_INC=-I/opt/local/include
damiano@1953
    55
damiano@1953
    56
######### Engine internals #########
damiano@1953
    57
damiano@1953
    58
######### Misc #########