From: gnublin Date: Wed, 16 Nov 2016 18:24:52 +0000 (+0100) Subject: gnublin X-Git-Tag: sysd2sysv_0.1-1~15 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=72a2f1f30abca04d3b65c150668118296f88fc11;p=projects.git gnublin --- 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