X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=tools%2Fmake%2Fc_configure.sh;h=011d048245afafd4a9a307369e007452ce401331;hb=c98bffa28b232b7e57ada05268ce7fe5316f15e9;hp=c7b610ad560f220953f0cfcdc17aaeee703bfb3b;hpb=3f3c6abff0b443de6634f3fd7dea9c8bf5399f19;p=projects.git diff --git a/tools/make/c_configure.sh b/tools/make/c_configure.sh index c7b610a..011d048 100755 --- a/tools/make/c_configure.sh +++ b/tools/make/c_configure.sh @@ -61,6 +61,16 @@ function add_include { echo "CXXFLAGS += -I$src/$2" >> $1/make.pre } +function add_library { +# adds a extern library +# parameter: +# $1: main directory +# $2: library name (without l or lib ) + + src=$(pwd) + echo "EXTLIB += -l$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: