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
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".
12 #BUILD_ON:=$(shell uname)
14 # This variable specifies the platform that the engine should be cross-compiled for.
15 #BUILD_FOR=$(BUILD_ON)
17 # Installation path prefix for libraries and binaries, except for system.db
20 # Installation path for system.db
21 #SYSTEM_DB=/usr/local/share/pEp/system.db
23 # Filename of the pEpEngine library
24 #TARGET=libpEpEngine.so
27 ######### C and C++ #########
30 # The following two variables will be appended to.
31 # You can thus not set them to a fixed value here.
40 #CFLAGS=-fPIC -fstrict-aliasing -fdiagnostics-color=always
44 #CFLAGS+= -w -O3 -DNDEBUG
46 # Additional CFLAGS used for compiling ASN1C-generated code
47 #CFLAGS_GENERATED=-D_DEFAULT_SOURCE
50 ######### C++ #########
51 #CXX=g++ -std=gnu++11 -pthread
53 #CXXFLAGS=-fdiagnostics-color=always -I../src -I../asn.1 $(ETPAN_INC) -w -O3 -DNDEBUG
56 ######### YML2 #########
57 #YML2_PATH=$(HOME)/yml2
59 #YML2_PROC=$(YML2_PATH)/yml2proc
61 #YML2_OPTS=--encoding=utf8
64 ######### asn1c #########
68 # asn1c include search flag
69 #ASN1C_INC=-I$(HOME)/include
72 ######### libetpan #########
73 # libetpan library search flag
74 #ETPAN_LIB=-L$(PREFIX)/lib
76 # libetpan include search flag
77 #ETPAN_INC=-I$(PREFIX)/include
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
86 ######### OpenPGP #########
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; }')
91 # Selects OpenPGP implementation. must be either `GPG` or `NETPGP`
94 # Path of libGPGME binary
95 #LIBGPGME=libgpgme.so.11
97 # libGPGME library search flag
100 # libGPGME include search flag
103 # NETPGP library search flag
104 #NETPGP_LIB=-L$(PREFIX)/lib
106 # libGPGME include search flag
107 #NETPGP_INC=-I$(PREFIX)/include
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
115 # EXTRA_MACROS=-DDEFAULT_KEYSERVER=\"default-server.org\" -DCRASHDUMP_DEFAULT_LINES=23