X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=tools%2Fmake%2Fc_configure.sh;h=c7b610ad560f220953f0cfcdc17aaeee703bfb3b;hb=8f9ac18ce143b85eb5a200913e9544e7e0ef2f4b;hp=f2e5bcd1105b1c3336ff5180dbae87a95f1e0237;hpb=afd81146024d4bc81b67509735a5e43aca714328;p=projects.git 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: