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