Browse Source

Add Makefile.conf / local.conf.example (like we have it in pEpEngine, libpEpAdapter, pEpJNIAdapter)

PYADPT-81
heck 5 years ago
parent
commit
57cec46a75
  1. 10
      Makefile
  2. 15
      Makefile.conf
  3. 11
      local.conf.example

10
Makefile

@ -1,12 +1,4 @@
PREFIX = /home/heck/local-default/
DEBUG = 1
BUILD_DIR = ./build
BUILD_EXT_OPTS = --prefix=$(PREFIX)
ifeq ($(DEBUG),1)
BUILD_EXT_OPTS+=--debug
endif
include Makefile.conf
.PHONY: all build clean devenv envtest

15
Makefile.conf

@ -0,0 +1,15 @@
HERE:=$(dir $(lastword $(MAKEFILE_LIST)))
# Defaults
DEBUG=1
PREFIX?=$(HOME)
BUILD_DIR = ./build
######### Overrides #########
-include $(HERE)local.conf
ifeq ($(DEBUG),1)
BUILD_EXT_OPTS+=--debug
endif
BUILD_EXT_OPTS += --prefix=$(PREFIX)

11
local.conf.example

@ -0,0 +1,11 @@
# This is an Example build config file (local.conf)
# you might not need this file, but if the defaults dont work for you
# You can override them here.
# Tweak the values to your needs and rename it to local.conf
######### C++ Compiler #########
# DEBUG=1
# DEBUG=0
############# DIRS #############
# PREFIX=$(HOME)/local
Loading…
Cancel
Save