Makefile.conf
author Volker Birk <vb@pep.foundation>
Wed, 24 Jan 2018 11:11:20 +0100
changeset 2440 3c45fce3ef40
parent 2211 588c4a473ef1
child 2221 07ce59b5c058
child 2458 2dfe65bd3613
permissions -rw-r--r--
allowing creation of zero length strings
     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 
     7 ######### General #########
     8 # To use (only) system libraries, set all the *_INC and *_LIB variables to the empty string.
     9 # All the *_INC and *_LIB variables are command line flags, not paths.
    10 # Thus, all *_INC variables' values must start with "-I", and all *_LIB variables' values must start with "-L".
    11 
    12 #BUILD_ON:=$(shell uname)
    13 
    14 # This variable specifies the platform that the engine should be cross-compiled for.
    15 #BUILD_FOR=$(BUILD_ON)
    16 
    17 # Installation path prefix for libraries and binaries, except for system.db
    18 #PREFIX=$(HOME)
    19 
    20 # Installation path for system.db
    21 #SYSTEM_DB=/usr/local/share/pEp/system.db
    22 
    23 # Filename of the pEpEngine library
    24 #TARGET=libpEpEngine.so
    25 
    26 
    27 ######### C and C++ #########
    28 #TARGET_ARCH=
    29 
    30 # The following two variables will be appended to.
    31 # You can thus not set them to a fixed value here.
    32 #LDFLAGS=
    33 
    34 #LDLIBS=
    35 
    36 
    37 ######### C #########
    38 #CC=
    39 
    40 #CFLAGS=-fPIC -fstrict-aliasing -fdiagnostics-color=always
    41 
    42 #CPPFLAGS=
    43 
    44 #CFLAGS+= -w -O3 -DNDEBUG
    45 
    46 # Additional CFLAGS used for compiling ASN1C-generated code
    47 #CFLAGS_GENERATED=-D_DEFAULT_SOURCE
    48 
    49 
    50 ######### C++ #########
    51 #CXX=g++ -std=gnu++11 -pthread
    52 
    53 #CXXFLAGS=-fdiagnostics-color=always -I../src -I../asn.1 $(ETPAN_INC) -w -O3 -DNDEBUG
    54 
    55 
    56 ######### YML2 #########
    57 #YML2_PATH=$(HOME)/yml2
    58 
    59 #YML2_PROC=$(YML2_PATH)/yml2proc
    60 
    61 #YML2_OPTS=--encoding=utf8
    62 
    63 
    64 ######### asn1c #########
    65 # asn1c binary
    66 #ASN1C=asn1c
    67 
    68 # asn1c include search flag
    69 #ASN1C_INC=-I$(HOME)/include
    70 
    71 
    72 ######### libetpan #########
    73 # libetpan library search flag
    74 #ETPAN_LIB=-L$(PREFIX)/lib
    75 
    76 # libetpan include search flag
    77 #ETPAN_INC=-I$(PREFIX)/include
    78 
    79 
    80 ######### sqlite3 #########
    81 # If empty (or undefined), compile sqlite3 from the sources shipped with the pEp distribution.
    82 # Otherwise, use an sqlite3 implementation found in the OS's include/library paths.
    83 #SQLITE3_FROM_OS=placeholder
    84 
    85 
    86 ######### OpenPGP #########
    87 # Path of GPG binary
    88 # gpgconf is not available for old version of GPG, for example GPG 2.0.30. Override this variable, if you compile the engine for such an old version.
    89 #GPG_CMD:=$(shell gpgconf --list-components | awk -F: '/^gpg:/ { print $$3; exit 0; }')
    90 
    91 # Selects OpenPGP implementation. must be either `GPG` or `NETPGP`
    92 #OPENPGP=GPG
    93 
    94 # Path of libGPGME binary
    95 #LIBGPGME=libgpgme.so.11
    96 
    97 # libGPGME library search flag
    98 #GPGME_LIB=
    99 
   100 # libGPGME include search flag
   101 #GPGME_INC=
   102 
   103 # NETPGP library search flag
   104 #NETPGP_LIB=-L$(PREFIX)/lib
   105 
   106 # libGPGME include search flag
   107 #NETPGP_INC=-I$(PREFIX)/include
   108 
   109 
   110 ######### Engine internals #########
   111 # C macros (not environment variables) that can be overridden:
   112 # DEFAULT_KEYSERVER - string with default keyserver
   113 # CRASHDUMP_DEFAULT_LINES - number of log lines to deliver for crashdumps
   114 # Example:
   115 #    EXTRA_MACROS=-DDEFAULT_KEYSERVER=\"default-server.org\" -DCRASHDUMP_DEFAULT_LINES=23
   116 #EXTRA_MACROS=