build-config/Linux.conf
author Krista Bennett <krista@pep-project.org>
Fri, 01 Jun 2018 10:30:19 +0200
branchENGINE-237
changeset 2726 497fe9a22367
parent 2001 111c1f727b07
child 2030 4df2470d9eb2
permissions -rw-r--r--
close branch
     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.so
     8 
     9 ######### C #########
    10 CC=gcc -std=c99 -pthread
    11 CFLAGS=-fPIC -fstrict-aliasing -fdiagnostics-color=always
    12 ifdef WARN
    13     CFLAGS+= -Wall -pedantic -Wstrict-aliasing=3
    14 else
    15     CFLAGS+= -w
    16 endif
    17 ifdef DEBUG
    18     CFLAGS+= -Og -ggdb -DDEBUG_ERRORSTACK
    19 else
    20     CFLAGS+= -O3 -DNDEBUG
    21 endif
    22 # The '_DEFAULT_SOURCE' feature test macro is required to suppress the warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" otherwise printed during the compilation of every asn1c-generated C file. It's a glibc specific warning, only present in few versions around ~2.19. See https://lwn.net/Articles/590381/ for a discussion.
    23 CFLAGS_GENERATED=-D_DEFAULT_SOURCE
    24 
    25 ######### C++ #########
    26 CXX=g++ -std=gnu++11 -pthread
    27 CXXFLAGS=-fdiagnostics-color=always -I../src -I../asn.1 $(ETPAN_INC)
    28 ifdef WARN
    29     CXXFLAGS+=
    30 else
    31     CXXFLAGS+= -w
    32 endif
    33 ifdef DEBUG
    34     CXXFLAGS+= -Og -ggdb
    35 else
    36     CXXFLAGS+= -O3 -DNDEBUG
    37 endif
    38 
    39 ######### C and C++ #########
    40 LDFLAGS=
    41 
    42 ######### YML2 #########
    43 
    44 ######### asn1c #########
    45 
    46 ######### libetpan #########
    47 
    48 ######### OpenPGP #########
    49 LIBGPGME=libgpgme.so.11
    50 GPGME_LIB=
    51 GPGME_INC=
    52 
    53 ######### Engine internals #########
    54 
    55 ######### Misc #########