Makefile.conf
changeset 1989 d3e5bc4a9854
parent 1988 ea7bceda4dc8
child 1993 efaeadf3e6f0
     1.1 --- a/Makefile.conf	Tue Aug 22 15:34:17 2017 +0200
     1.2 +++ b/Makefile.conf	Tue Aug 22 15:57:25 2017 +0200
     1.3 @@ -1,21 +1,30 @@
     1.4 -# Copyright 2017, pEp Foundation
     1.5 -# This file is part of pEpEngine
     1.6 -# This file may be used under the terms of the GNU General Public License version 3
     1.7 -# see LICENSE.txt
     1.8 +# this file is in the Public Domain
     1.9  
    1.10 -# This file assembles all the make variables that a maintainer or dev may want to taylor to his or her needs on a given platform.
    1.11 +BUILD_ON=$(shell uname)
    1.12 +BUILD_FOR=$(BUILD_ON)
    1.13 +OPTIMIZE=-g -Wall -O0 -fPIC -DDEBUG_ERRORSTACK
    1.14 +#OPTIMIZE=-O3 -Wall -DNDEBUG -std=c99
    1.15 +LD=$(CC)
    1.16 +#CC=gcc-mp-4.9 -std=c99 -fstrict-aliasing -Wstrict-aliasing=3
    1.17 +#LD=gcc-mp-4.9
    1.18 +SYSTEM_DB=/usr/local/share/pEp/system.db
    1.19 +PREFIX=$(HOME)
    1.20 +YML2PROC=$(HOME)/yml2/yml2proc
    1.21 +YML_OPTS=--encoding=utf8
    1.22 +YML_PATH=$(HOME)/yml2
    1.23 +ASN1C=asn1c
    1.24 +ASN1C_INCLUDE=/opt/local/share/asn1c
    1.25 +#ETPAN_IN=$(HOME)
    1.26 +#LIBGPGME=/opt/local/lib/libgpgme.11.dylib
    1.27  
    1.28 -# To use custom build configuration variables, put them in a new file with the path `build-config/<name>.conf`. Execute `export PLATFORM_OVERRIDE=<name>` before running make. If this environment variable is not set, make will load a default configuration for your platform.
    1.29 +# C makros (not environment variables) to overwrite:
    1.30 +#
    1.31 +# DEFAULT_KEYSERVER - string with default keyserver
    1.32 +# CRASHDUMP_DEFAULT_LINES - number of log lines to deliver for crashdumps
    1.33  
    1.34 -BUILD_CONFIG:=$(dir $(lastword $(MAKEFILE_LIST)))build-config
    1.35 +#EXTRAMACROS=-DDEFAULT_KEYSERVER=\"default-server.org\" -DCRASHDUMP_DEFAULT_LINES=23
    1.36  
    1.37 -include $(BUILD_CONFIG)/common.conf
    1.38 -# cross-compiling is currently not supported, but maybe you can hack something with `PLATFORM_OVERRIDE`
    1.39 -ifeq ($(BUILD_ON),$(BUILD_FOR))
    1.40 -    include $(BUILD_CONFIG)/$(BUILD_ON).conf
    1.41 -else
    1.42 -    $(error I don't know how to build for $(BUILD_FOR) on $(BUILD_ON))
    1.43 -endif
    1.44 -ifdef PLATFORM_OVERRIDE
    1.45 -    include $(BUILD_CONFIG)/$(PLATFORM_OVERRIDE).conf
    1.46 -endif
    1.47 +# second instance for testing
    1.48 +
    1.49 +#EXTRAMACROS=-DLOCAL_DB_FILENAME=\".pEp_management2.db\"
    1.50 +#TARGET=libpEpEngine2.dylib