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