Browse Source

Build: change local.conf to build.conf

Release_3.2
heck 2 years ago
parent
commit
b28daa4a6f
  1. 2
      .gitignore
  2. 2
      Makefile.conf
  3. 6
      README.md
  4. 4
      build.conf.example
  5. 4
      scripts/centos8/build_libpEpAdapter.sh
  6. 4
      scripts/debian10/build_libpEpAdapter.sh

2
.gitignore

@ -8,7 +8,7 @@ test_adapter
.gnupg .gnupg
.pEp* .pEp*
lib lib
local.conf build.conf
build/ build/
# Default ignored files # Default ignored files
?idea/ ?idea/

2
Makefile.conf

@ -13,7 +13,7 @@ DEBUG=1
PREFIX?=$(HOME) PREFIX?=$(HOME)
# Overrides # Overrides
-include $(HERE)local.conf -include $(HERE)build.conf
# Constants # Constants
CXXFLAGS+=-std=c++11 -fPIC CXXFLAGS+=-std=c++11 -fPIC

6
README.md

@ -3,11 +3,11 @@
## Build Configuration ## Build Configuration
The build configuration file is called `local.conf`. The build configuration file is called `build.conf`.
Use the file `local.conf.example` as a template. Use the file `build.conf.example` as a template.
```bash ```bash
cp local.conf.example local.conf cp build.conf.example build.conf
``` ```
Then, tweak it to your needs. Then, tweak it to your needs.

4
local.conf.example → build.conf.example

@ -1,7 +1,7 @@
# This is an Example build config file (local.conf) # This is an Example build config file (build.conf)
# you might not need this file, but if the defaults dont work for you # you might not need this file, but if the defaults dont work for you
# You can override them here. # You can override them here.
# Tweak the values to your needs and rename it to local.conf # Tweak the values to your needs and rename it to build.conf
######### C++ Compiler ######### ######### C++ Compiler #########
# Should work with clang and g++ # Should work with clang and g++

4
scripts/centos8/build_libpEpAdapter.sh

@ -1,8 +1,8 @@
#!/usr/bin/env sh #!/usr/bin/env sh
set -exo set -exo
echo "ENGINE_LIB_PATH=${INSTPREFIX}/lib" >> local.conf echo "ENGINE_LIB_PATH=${INSTPREFIX}/lib" >> build.conf
echo "ENGINE_INC_PATH=${INSTPREFIX}/include" >> local.conf echo "ENGINE_INC_PATH=${INSTPREFIX}/include" >> build.conf
make make
make install PREFIX="${INSTPREFIX}" make install PREFIX="${INSTPREFIX}"

4
scripts/debian10/build_libpEpAdapter.sh

@ -1,8 +1,8 @@
#!/usr/bin/env sh #!/usr/bin/env sh
set -exo set -exo
echo "ENGINE_LIB_PATH=${INSTPREFIX}/lib" >> local.conf echo "ENGINE_LIB_PATH=${INSTPREFIX}/lib" >> build.conf
echo "ENGINE_INC_PATH=${INSTPREFIX}/include" >> local.conf echo "ENGINE_INC_PATH=${INSTPREFIX}/include" >> build.conf
make make
make install PREFIX="${INSTPREFIX}" make install PREFIX="${INSTPREFIX}"

Loading…
Cancel
Save