On Thu, Jan 24, 2008 at 12:52:30AM -0800, Yann Daluzeau wrote:
> I've to insall SQLite on my Fox, but I've not idea how to do that.
Hello,
I attach you (hopefully, the list software won't mangle it) the Makefile I've
used last summer - it's not perfect, but should be enough to let you started.
HTH,
Ant9000
AXIS_USABLE_LIBS = UCLIBC GLIBC
include $(AXIS_TOP_DIR)/tools/build/Rules.axis
ifeq ($(AXIS_BUILDTYPE),cris-axis-linux-gnuuclibc)
HOST=cris-axis-linux-gnuuclibc
AXIS_TARGET=$(AXIS_TOP_DIR)/target/$(HOST)
CC=gcc_cris -mlinux -mno-mul-bug-workaround -muclibc=$(AXIS_TARGET)
else
HOST=cris-axis-linux-gnu
AXIS_TARGET=$(AXIS_TOP_DIR)/target/$(HOST)
CC=gcc-cris -mlinux -mno-mul-bug-workaround
endif
LN= ln
RM= rm -f
AR= ar-cris
INSTALL= install_elinux -p
LD= ld-cris -mcrislinux
OBJCOPY= objcopy-cris
RANLIB= ranlib-cris
STRIP= strip-cris
OPT=-Os
CFLAGS=-Wall -Wshadow -g
LDFLAGS=-fPIC -L$(AXIS_TARGET)/lib -Wl,-rpath-link,$(AXIS_TARGET)/lib
PROGS = sqlite3
DEST = $(prefix)/usr/bin
all: $(PROGS)
$(PROGS): prepare
( \
cd build && \
../sqlite/configure \
--prefix=/usr \
--host=$(HOST) \
--build=`uname -m`-pc-linux-gnu \
--disable-tcl && \
make && \
$(STRIP) .libs/sqlite3 .libs/libsqlite3.so.0 \
) 2>&1 | tee make.log
prepare:
[ -f sqlite-3.4.0.tar.gz ] || wget
http://www.sqlite.org/sqlite-3.4.0.tar.gz
[ -d sqlite-3.4.0 ] || tar zxvf sqlite-3.4.0.tar.gz
[ -L sqlite ] || ln -s sqlite-3.4.0 sqlite
[ -d build ] || mkdir build
install: $(PROGS)
cp build/.libs/sqlite3 $(DEST)
cp build/.libs/libsqlite3.so.0 $(DEST)/../../lib/
cp build/sqlite3.h $(DEST)/../../include/
clean:
rm -rf build