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
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.so
damiano@1953
     8
damiano@1953
     9
######### C #########
damiano@1973
    10
CC=gcc -std=c99 -pthread
damiano@1958
    11
CFLAGS=-fPIC -fstrict-aliasing -fdiagnostics-color=always
damiano@1956
    12
ifdef WARN
damiano@1956
    13
    CFLAGS+= -Wall -pedantic -Wstrict-aliasing=3
damiano@1956
    14
else
damiano@1956
    15
    CFLAGS+= -w
damiano@1956
    16
endif
damiano@1956
    17
ifdef DEBUG
damiano@1956
    18
    CFLAGS+= -Og -ggdb -DDEBUG_ERRORSTACK
damiano@1956
    19
else
damiano@1956
    20
    CFLAGS+= -O3 -DNDEBUG
damiano@1956
    21
endif
damiano@2001
    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.
damiano@2001
    23
CFLAGS_GENERATED=-D_DEFAULT_SOURCE
damiano@1953
    24
damiano@1953
    25
######### C++ #########
damiano@1953
    26
CXX=g++ -std=gnu++11 -pthread
damiano@1958
    27
CXXFLAGS=-fdiagnostics-color=always -I../src -I../asn.1 $(ETPAN_INC)
damiano@1956
    28
ifdef WARN
damiano@1956
    29
    CXXFLAGS+=
damiano@1956
    30
else
damiano@1956
    31
    CXXFLAGS+= -w
damiano@1956
    32
endif
damiano@1956
    33
ifdef DEBUG
damiano@1956
    34
    CXXFLAGS+= -Og -ggdb
damiano@1956
    35
else
damiano@1956
    36
    CXXFLAGS+= -O3 -DNDEBUG
damiano@1956
    37
endif
damiano@1953
    38
damiano@1953
    39
######### C and C++ #########
damiano@1990
    40
LDFLAGS=
damiano@1953
    41
damiano@1953
    42
######### YML2 #########
damiano@1953
    43
damiano@1953
    44
######### asn1c #########
damiano@1953
    45
damiano@1953
    46
######### libetpan #########
damiano@1953
    47
damiano@1953
    48
######### OpenPGP #########
damiano@1958
    49
LIBGPGME=libgpgme.so.11
damiano@1973
    50
GPGME_LIB=
damiano@1973
    51
GPGME_INC=
damiano@1953
    52
damiano@1953
    53
######### Engine internals #########
damiano@1953
    54
damiano@1953
    55
######### Misc #########