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