From 72a2f1f30abca04d3b65c150668118296f88fc11 Mon Sep 17 00:00:00 2001 From: gnublin Date: Wed, 16 Nov 2016 19:24:52 +0100 Subject: [PATCH] gnublin --- tools/make/c_configure.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/make/c_configure.sh b/tools/make/c_configure.sh index 98d6191..f2e5bcd 100755 --- a/tools/make/c_configure.sh +++ b/tools/make/c_configure.sh @@ -33,11 +33,11 @@ function install_cpp_make { else echo "CXXFLAGS += -std=c++0x" >> make.pre fi - echo "CXXFLAGS += -I$src/util" >> make.pre popd } function append_dependency { +# adds another drectory, where a c++ compile is performed # parameter: # $1: main directory # $2: dependency directory @@ -51,6 +51,7 @@ function append_dependency { } function append_library { +# same as append_dependency. In addition a include statement + a link to the library is added to "main directory" # parameter: # $1: main directory # $2: dependency directory @@ -59,6 +60,7 @@ function append_library { src=$(pwd) echo "DEPS += $3" >> $1/make.pre echo "LDLIBS += $3" >> $1/make.pre + echo "CXXFLAGS += -I$src/$2" >> $1/make.pre echo "$3:" >> $1/make.post echo " cd $src/$2 && make TARGET=$3" >> $1/make.post echo " ln -sf $src/$2/$3 ." >> $1/make.post -- 2.20.1