You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
3.2 KiB

  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. # General remark: to use (only) system libraries, set all the *_INC and *_LIB variables to the empty string.
  6. # All the *_INC and *_LIB variables are command line flags, not paths. Thus, all *_INC variables' values must start with "-I", and all *_LIB variables' values must start with "-L".
  7. ######### General #########
  8. BUILD_ON:=$(shell uname)
  9. # This variable specifies the platform that the engine should be cross-compiled for.
  10. BUILD_FOR=$(BUILD_ON)
  11. # Installation path prefix for libraries and binaries, except for system.db
  12. PREFIX=$(HOME)
  13. # Installation path for system.db
  14. SYSTEM_DB=/usr/local/share/pEp/system.db
  15. # Filename of the pEpEngine library
  16. #TARGET This option is platform-specific
  17. # If not empty, create a debug build. This variable is ineffective in your PLATFORM_OVERRIDE.conf file.
  18. DEBUG=
  19. # If not empty, print compiler warnings. This variable is ineffective in your PLATFORM_OVERRIDE.conf file.
  20. WARN=placeholder
  21. ######### C #########
  22. #CC This option is platform-specific
  23. CPPFLAGS=
  24. #CFLAGS This option is platform-specific
  25. # Additional CFLAGS used for compiling ASN1C-generated code
  26. #CFLAGS_GENERATED This option is platform-specific
  27. ######### C++ #########
  28. #CXX This option is platform-specific
  29. #CXXFLAGS This option is platform-specific
  30. ######### C and C++ #########
  31. TARGET_ARCH=
  32. # The following two variables will be appended to. You can thus not set them to a fixed value here.
  33. #LDFLAGS= This option is platform-specific
  34. LDLIBS=
  35. ######### YML2 #########
  36. YML2_PATH=$(HOME)/yml2
  37. YML2_PROC=$(YML2_PATH)/yml2proc
  38. YML2_OPTS=--encoding=utf8
  39. ######### asn1c #########
  40. # asn1c binary
  41. ASN1C=asn1c
  42. # asn1c include search flag
  43. ASN1C_INC=
  44. #ASN1C_INC=-I$(HOME)/include
  45. ######### libetpan #########
  46. # libetpan library search flag
  47. ETPAN_LIB=-L$(PREFIX)/lib
  48. # libetpan include search flag
  49. ETPAN_INC=-I$(PREFIX)/include
  50. ######### sqlite3 #########
  51. # If empty (or undefined), compile sqlite3 from the sources shipped with the pEp distribution. Otherwise, use an sqlite3 implementation found in the OS's include/library paths.
  52. SQLITE3_FROM_OS=placeholder
  53. ######### OpenPGP #########
  54. # Path of GPG binary
  55. GPG_CMD=gpg
  56. ifneq ($(shell which gpg2),)
  57. GPG_CMD=gpg2
  58. endif
  59. # Selects OpenPGP implementation. must be either `GPG` or `NETPGP`
  60. OPENPGP=GPG
  61. # Path of libGPGME binary
  62. #LIBGPGME This option is platform-specific
  63. # libGPGME library search flag
  64. #GPGME_LIB= This option is platform-specific
  65. # libGPGME include search flag
  66. #GPGME_INC= This option is platform-specific
  67. # NETPGP library search flag
  68. NETPGP_LIB=
  69. #NETPGP_LIB=-L$(PREFIX)/lib
  70. # libGPGME include search flag
  71. NETPGP_INC=
  72. #NETPGP_INC=-I$(PREFIX)/include
  73. ######### Engine internals #########
  74. # C macros (not environment variables) that can be overridden:
  75. # DEFAULT_KEYSERVER - string with default keyserver
  76. # CRASHDUMP_DEFAULT_LINES - number of log lines to deliver for crashdumps
  77. # Example:
  78. # EXTRA_MACROS=-DDEFAULT_KEYSERVER=\"default-server.org\" -DCRASHDUMP_DEFAULT_LINES=23
  79. EXTRA_MACROS=
  80. ######### Misc #########
  81. # FIXME Maybe include these variables here. Check how they are used throughout the project before setting them here
  82. #LLDB_BIN