projects
/
projects.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8f88293
)
epic
author
Michael Wagner
<mail@wagnertech.de>
Tue, 16 Jan 2018 17:22:34 +0000
(18:22 +0100)
committer
Michael Wagner
<mail@wagnertech.de>
Tue, 16 Jan 2018 17:22:34 +0000
(18:22 +0100)
tools/make/c_configure.sh
patch
|
blob
|
history
diff --git
a/tools/make/c_configure.sh
b/tools/make/c_configure.sh
index
f2e5bcd
..
c7b610a
100755
(executable)
--- 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
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
if [ -f make.post ]; then rm make.post; fi
- ln -s $cwd/
M
ake/cpp.make makefile
+ ln -s $cwd/
projects/tools/m
ake/cpp.make makefile
echo "SOURCE = \\" > make.pre
for file in $(ls *.cpp)
do
echo "SOURCE = \\" > make.pre
for file in $(ls *.cpp)
do
@@
-50,6
+51,16
@@
function append_dependency {
echo "" >> $1/make.post
}
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:
function append_library {
# same as append_dependency. In addition a include statement + a link to the library is added to "main directory"
# parameter: