build-config/common.conf
author Damiano Boppart <damiano@pep-security.net>
Thu, 17 Aug 2017 13:18:19 +0000
branchENGINE-228
changeset 1968 e30b1515b7b9
parent 1963 35d308e437cf
child 1973 7203d0b03b44
permissions -rw-r--r--
Add some more in-line documentation for various Makefiles
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@1968
     6
# General remark: to use (only) system libraries, set all the *_INC and *_LIB variables to the empty string.
damiano@1968
     7
damiano@1953
     8
######### General #########
damiano@1953
     9
BUILD_ON:=$(shell uname)
damiano@1953
    10
BUILD_FOR=$(BUILD_ON)
damiano@1953
    11
# Installation path prefix for libraries and binaries, except for system.db
damiano@1953
    12
PREFIX=$(HOME)
damiano@1953
    13
# Installation path for system.db
damiano@1953
    14
SYSTEM_DB=/usr/local/share/pEp/system.db
damiano@1953
    15
# Filename of the pEpEngine library
damiano@1953
    16
#TARGET This option is platform-specific
damiano@1961
    17
# If not empty, create a debug build
damiano@1961
    18
DEBUG=placeholder
damiano@1961
    19
# If not empty, print compiler warnings
damiano@1961
    20
WARN=placeholder
damiano@1953
    21
damiano@1953
    22
######### C #########
damiano@1953
    23
#CC This option is platform-specific
damiano@1953
    24
CPPFLAGS=
damiano@1956
    25
#CFLAGS This option is platform-specific
damiano@1953
    26
damiano@1953
    27
######### C++ #########
damiano@1953
    28
#CXX This option is platform-specific
damiano@1956
    29
#CXXFLAGS This option is platform-specific
damiano@1953
    30
damiano@1953
    31
######### C and C++ #########
damiano@1963
    32
TARGET_ARCH=
damiano@1968
    33
# The following two variables will be appended to. You can thus not set them to a fixed value here.
damiano@1958
    34
LDFLAGS=
damiano@1958
    35
LDLIBS=
damiano@1953
    36
damiano@1953
    37
######### YML2 #########
damiano@1953
    38
YML2_PATH=$(HOME)/yml2
damiano@1953
    39
YML2_PROC=$(YML2_PATH)/yml2proc
damiano@1953
    40
YML2_OPTS=--encoding=utf8
damiano@1953
    41
damiano@1953
    42
######### asn1c #########
damiano@1958
    43
# asn1c binary
damiano@1953
    44
ASN1C=asn1c
damiano@1958
    45
# asn1c include search flag
damiano@1958
    46
ASN1C_INC=
damiano@1958
    47
#ASN1C_INC= -I$(HOME)/include
damiano@1953
    48
damiano@1953
    49
######### libetpan #########
damiano@1958
    50
# libetpan library search flag
damiano@1958
    51
ETPAN_LIB=-L$(PREFIX)/lib
damiano@1958
    52
# libetpan include search flag
damiano@1958
    53
ETPAN_INC=-I$(PREFIX)/include
damiano@1953
    54
damiano@1953
    55
######### OpenPGP #########
damiano@1953
    56
# Path of GPG binary
damiano@1953
    57
GPG_CMD=gpg
damiano@1953
    58
ifneq ($(shell which gpg2),)
damiano@1953
    59
    GPG_CMD = gpg2
damiano@1953
    60
endif
damiano@1958
    61
# Selects OpenPGP implementation. must be either `GPG` or `NETPGP`
damiano@1958
    62
OPENPGP=GPG
damiano@1958
    63
# Path of libGPGME binary
damiano@1958
    64
#LIBGPGME This option is platform-specific
damiano@1958
    65
# libGPGME library search flag
damiano@1958
    66
GPGME_LIB=
damiano@1958
    67
#GPGME_LIB=-L$(PREFIX)/lib
damiano@1958
    68
# libGPGME include search flag
damiano@1958
    69
GPGME_INC=
damiano@1958
    70
#GPGME_INC=-I$(PREFIX)/include
damiano@1958
    71
# NETPGP library search flag
damiano@1958
    72
NETPGP_LIB=
damiano@1958
    73
#NETPGP_LIB=-L$(PREFIX)/lib
damiano@1958
    74
# libGPGME include search flag
damiano@1958
    75
NETPGP_INC=
damiano@1958
    76
#NETPGP_INC=-I$(PREFIX)/include
damiano@1953
    77
damiano@1953
    78
######### Engine internals #########
damiano@1953
    79
# C macros (not environment variables) that can be overridden:
damiano@1953
    80
# DEFAULT_KEYSERVER - string with default keyserver
damiano@1953
    81
# CRASHDUMP_DEFAULT_LINES - number of log lines to deliver for crashdumps
damiano@1953
    82
# Example:
damiano@1968
    83
#    EXTRA_MACROS=-DDEFAULT_KEYSERVER=\"default-server.org\" -DCRASHDUMP_DEFAULT_LINES=23
damiano@1958
    84
EXTRA_MACROS=
damiano@1953
    85
damiano@1953
    86
######### Misc #########
damiano@1968
    87
# FIXME Maybe include these variables here. Check how they are used throughout the project before setting them here
damiano@1953
    88
#LLDB_BIN