岁月联盟 · 中国技术网 本站主页 | 安全认证 | 用户服务 | 技术论坛
新闻快报 | 新手学堂 | 黑客特区 | 程序语言 | 数 据 库 | 防 火 墙 | 路由交换 | 系统集成 | 服 务 器 | 存储备份 | 考试认证
Windows | Linux | Java | 协议分析 | 问题解答 | 进程大全 | 网页设计 | 多 媒 体 | 图库资料 | 软件下载 | 站内下载
  您现在的位置: 岁月联盟 >> 数据库 >> POSTGRE >> 数据库正文
ucLinux下sqlite数据库移植全攻略
作者:未知 文章来源:本站整理 点击数: 更新时间:2007-12-18 18:30:11
e

  EXE =

  #### C Compile and options for use in building executables that

  # will run on the target platform. This is usually the same

  # as BCC, unless you are cross-compiling.

  #

  TCC = $(CROSS)gcc

  FLTFLAGS += -s 12000

  #TCC = gcc -g -O0 -Wall

  #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage

  #TCC = /opt/mingw/bin/i386-mingw32-gcc -O6

  #TCC = /opt/ansic/bin/c89 -O +z -Wl,-a,archive

  #### Tools used to build a static library.

  #

  AR = $(CROSS)ar cr

  #AR = /opt/mingw/bin/i386-mingw32-ar cr

  RANLIB = $(CROSS)ranlib

  #RANLIB = /opt/mingw/bin/i386-mingw32-ranlib

  #### Extra compiler options needed for programs that use the TCL library.

  #

  #TCL_FLAGS =

  #TCL_FLAGS = -DSTATIC_BUILD=1

  #TCL_FLAGS = -I/home/drh/tcltk/8.4linux

  #TCL_FLAGS = -I/home/drh/tcltk/8.4win -DSTATIC_BUILD=1

  #TCL_FLAGS = -I/home/drh/tcltk/8.3hpux

  #### Linker options needed to link against the TCL library.

  #

  #LIBTCL = -ltcl -lm -ldl

  #LIBTCL = /home/drh/tcltk/8.4linux/libtcl8.4g.a -lm -ldl

  #LIBTCL = /home/drh/tcltk/8.4win/libtcl84s.a -lmsvcrt

  #LIBTCL = /home/drh/tcltk/8.3hpux/libtcl8.3.a -ldld -lm -lc

  #### Compiler options needed for programs that use the readline() library.

 

上一页  [1] [2] [3] [4] [5] 下一页  

  #

  READLINE_FLAGS =

  #READLINE_FLAGS = -DHAVE_READLINE=1 -I/usr/include/readline

  #### Linker options needed by programs using readline() must link against.

  #

  #LIBREADLINE =

  #LIBREADLINE = -static -lreadline -ltermcap

  #### Should the database engine assume text is coded as UTF-8 or iso8859?

  #

  # ENCODING = UTF8

  ENCODING = ISO8859

  # You should not have to change anything below this line

  ###############################################################################

  include $(TOP)/main.mk

  ===========Makefile内容结束===========

  注:

  1、 在uclinux下的sqlite的Makefile将不去用到TCL相关的库。

  2、 在uclinux下的sqlite的Makefile将不去用到readline()。

  在sqlite/README中有关于Makefile的一段描述:

  The configure script uses autoconf 2.50 and libtool. If the configure script does not work out for you, there is a generic makefile named "Makefile.linux-gcc" in the top directory of the source tree that you can copy and edit to suite your needs. Comments on the generic makefile show what changes are needed.

  你可以用sqlite/Makefile.linux-gcc作为蓝本来修改适合你自己的Makefile。

  你如果有兴趣的话,可以把上面的Makefile的内容和sqlite/Makefile.linux-gcc内容diff对比一下,看看uclinux下的sqlite编译有哪些不同的地方。

  三、修改sqlite/src/os.c

  如果你的sqlite包中包括os.c文件那么就对其进行修改,没有os.c文件可能是你的sqlite版本比较新,那么无须修改。

  将所有你找到的:

  if( s!=0 )

  用:

  if( s!=0 && errno != ENOSYS )

  替换。

  四、修改sqlite/src/shell.c

  1、struct previous_mode_data 结构定义项:

  将 int colWidth[100];

  用 int colWidth[20];

  替换。

  2、struct callback_data 结构定义项

  将:

  int

上一页  [1] [2] [3] [4] [5] 下一页


  • 上一个数据库:
  • 下一个数据库:
  •  
    热门文章
    推荐文章
    关于我们 | 发展历程 | 网站地图 | 广告服务 | 招贤纳士 | 战略合作 | 友情链接 | 著作声明 | 联系我们
    Copyright © 2002-2007 SYUE All rights reserved.
    E_mail:WebSyue@163.Com 皖ICP备05004589号
    未经授权禁止转载、摘编、复制或建立镜像.如有违反,追究法律责任.
    魔域私服 惊天动地私服 天龙八部私服 天龙八部私服 热血江湖私服 天龙八部私服 bet365 bet365 传世私服 传奇世界私服