ucLinux下sqlite数据库移植全攻略

http://tech.ddvip.com   2007年03月04日    社区交流

本文详细介绍ucLinux下sqlite数据库移植全攻略

  rm -f lemon lempar.c parse.* sqlite*.tar.gz

  rm -f $(PUBLISH)

  rm -f *.da *.bb *.bbg gmon.out

  rm -rf tsrc

  替换为:

  clean:

  rm -f *.o sqlite libsqlite.a sqlite.h opcodes.* sqlite.gdb

  rm -f $(PUBLISH)

  rm -f *.da *.bb *.bbg gmon.out

  rm -rf tsrc

  distclean: clean

  rm -f lemon lempar.c parse.* sqlite*.tar.gz

  rm -f config.h

  即增加make distclean项。

  二、在sqlite下增加Makefile文件

  在sqlite目录下应该没有Makefile文件,而只是有一个sqlite/Makefile.linux-gcc文件。我们要移植sqlite到uclinux,那么就要自己写一个合适的Makefile。

  内容如下:

  ===========Makefile内容开始===========

  #!/usr/make

  #

  # Makefile for SQLITE

  #

  # This is a template makefile for SQLite. Most people prefer to

  # use the autoconf generated "configure" script to generate the

  # makefile automatically. But that does not work for everybody

  # and in every situation. If you are having problems with the

  # "configure" script, you might want to try this makefile as an

  # alternative. Create a copy of this file, edit the parameters

  # below and type "make".

  #

  #### The toplevel directory of the source tree. This is the directory

  # that contains this "Makefile.in" and the "configure.in" script.

  #

  TOP = .

来源:Yesky    责编:豆豆技术应用

正在加载评论...