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:
ar r $(TARGET) *.o
%.so: $(SOURCE:%.cpp=%.o) $(LDLIBS)
- $(CXX) -shared -o $(TARGET) *.o $(LDLIBS)
+ $(CXX) -shared -o $(TARGET) *.o $(LDLIBS) $(EXTLIB)
-include make.post
# copy package control
if [ ! -f debian/control ]
then
- control=$(find etc -name $paket.control)
+ control=$(find etc -name $paket.control) || true
if [ -z "$control" ]
then
echo "warning: control file not found"