You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pEpEngine/build-config/Darwin.conf

59 lines
1.4 KiB
Plaintext

# Copyright 2017, pEp Foundation
# This file is part of pEpEngine
# This file may be used under the terms of the GNU General Public License version 3
# see LICENSE.txt
######### General #########
TARGET=libpEpEngine.dylib
######### C #########
# clang issues a warning when "-pthread" is used for linking. So, include it in CFLAGS, and not in CC
CC=clang -std=c99
CFLAGS=-pthread -fPIC -fstrict-aliasing -fcolor-diagnostics
ifdef WARN
# FIXME Remove 'no-extended-offsetof' after ENGINE-236 is closed.
CFLAGS+= -Wall -pedantic -Wno-extended-offsetof
else
CFLAGS+= -w
endif
ifdef DEBUG
CFLAGS+= -O0 -g -DDEBUG_ERRORSTACK
else
CFLAGS+= -O3 -DNDEBUG
endif
CFLAGS_GENERATED=
######### C++ #########
# clang issues a warning when "-pthread" is used for linking. So, include it in CXXFLAGS, and not in CXX
CXX=clang -std=c++11
CXXFLAGS=-pthread -fcolor-diagnostics -I../src -I../asn.1 $(ETPAN_INC)
ifdef WARN
CXXFLAGS+=
else
CXXFLAGS+= -w
endif
ifdef DEBUG
CXXFLAGS+= -O0 -g
else
CXXFLAGS+= -O3 -DNDEBUG
endif
######### C and C++ #########
# "-bind_at_load" helps find symbol resolution errors faster
LDFLAGS=-bind_at_load
######### YML2 #########
######### asn1c #########
######### libetpan #########
######### OpenPGP #########
LIBGPGME=libgpgme.dylib
GPGME_LIB=-L/opt/local/lib
GPGME_INC=-I/opt/local/include
######### Engine internals #########
######### Misc #########