From e69939f0a052418478333c063c44a2e4bb76bff6 Mon Sep 17 00:00:00 2001 From: Michael Wagner Date: Tue, 16 Jan 2018 18:22:34 +0100 Subject: [PATCH] epic --- tools/make/c_configure.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tools/make/c_configure.sh b/tools/make/c_configure.sh index f2e5bcd..c7b610a 100755 --- a/tools/make/c_configure.sh +++ b/tools/make/c_configure.sh @@ -16,8 +16,9 @@ function install_cpp_make { src=$(pwd); pushd $1 if [ -f makefile ]; then rm makefile; fi + if [ -L makefile ]; then rm makefile; fi if [ -f make.post ]; then rm make.post; fi - ln -s $cwd/Make/cpp.make makefile + ln -s $cwd/projects/tools/make/cpp.make makefile echo "SOURCE = \\" > make.pre for file in $(ls *.cpp) do @@ -50,6 +51,16 @@ function append_dependency { echo "" >> $1/make.post } +function add_include { +# adds a include directory +# parameter: +# $1: main directory +# $2: include dir + + src=$(pwd) + echo "CXXFLAGS += -I$src/$2" >> $1/make.pre +} + function append_library { # same as append_dependency. In addition a include statement + a link to the library is added to "main directory" # parameter: -- 2.20.1