Browse Source

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

PYADPT-81
heck 1 year ago
parent
commit
57cec46a75
3 changed files with 27 additions and 9 deletions
  1. +1
    -9
      Makefile
  2. +15
    -0
      Makefile.conf
  3. +11
    -0
      local.conf.example

+ 1
- 9
Makefile View File

@ -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
- 0
Makefile.conf View File

@ -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
- 0
local.conf.example View File

@ -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