echo " $file \\" >> make.pre
done
echo >> make.pre
+ if [ "$DEB_HOST_ARCH" != "$DEB_BUILD_ARCH" ]
+ then
+ #cross compiling
+ echo "PREFIX = $DEB_HOST_GNU_TYPE-" >> make.pre
+ echo "SYSROOT = --sysroot=$HOME/cross" >> make.pre
+ fi
+
if [ "$ARCH" = "armel" ]
then
echo "CXX = arm-linux-gnueabi-g++" >> make.pre
# Generic cpp makefile for mBuild build process
# default parameters
-CC = g++
+CC = $(PREFIX)g++
+CXX = $(PREFIX)g++
include make.pre
ar r $(TARGET) *.o
%.so: $(SOURCE:%.cpp=%.o) $(LDLIBS)
- $(CXX) -shared -o $(TARGET) *.o $(LDFLAGS) $(LDLIBS) $(EXTLIB)
+ echo $(PATH)
+ $(CXX) -shared $(SYSROOT) -o $(TARGET) *.o $(LDFLAGS) $(LDLIBS) $(EXTLIB)
-include make.post
# build prepare
if [ -x debian/$paket.prepare ]
then
+ . debian/setenv.sh
debian/$paket.prepare
fi
if [ -e debian/$paket.build ]