⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 嵌入式数据库SQLITE,含移植到ARM_LINUX的说明
💻
📖 第 1 页 / 共 2 页
字号:
#!/usr/make## Makefile for SQLITE## This makefile is suppose to be configured automatically using the# autoconf.  But if that does not work for you, you can configure# the makefile manually.  Just set the parameters below to values that# work well for your system.## If the configure script does not work out-of-the-box, you might# be able to get it to work by giving it some hints.  See the comment# at the beginning of configure.in for additional information.## The toplevel directory of the source tree.  This is the directory# that contains this "Makefile.in" and the "configure.in" script.#TOP = ..# C Compiler and options for use in building executables that# will run on the platform that is doing the build.## Modified by zhoujp at 2006-08-23#BCC = arm-linux-gcc -g -O2BCC = gcc -g -O2# End# C Compile and options for use in building executables that # will run on the target platform.  (BCC and TCC are usually the# same unless your are cross-compiling.)#TCC = arm-linux-gcc -g -O2 -DOS_UNIX=1 -DHAVE_USLEEP=1 -DHAVE_FDATASYNC=1 -I. -I${TOP}/src# Define -DNDEBUG to compile without debugging (i.e., for production usage)# Omitting the define will cause extra debugging code to be inserted and# includes extra comments when "EXPLAIN stmt" is used.#TCC += -DNDEBUG # Compiler options needed for programs that use the TCL library.#TCC += # The library that programs using TCL must link against.#LIBTCL =  # Compiler options needed for programs that use the readline() library.#READLINE_FLAGS = -DHAVE_READLINE=0 # The library that programs using readline() must link against.#LIBREADLINE = # Should the database engine be compiled threadsafe#TCC += -DTHREADSAFE=0# The pthreads library if needed#LIBPTHREAD=# Do threads override each others locks by default (1), or do we test (-1)#TCC += -DSQLITE_THREAD_OVERRIDE_LOCK=-1# The fdatasync libraryTLIBS = # Flags controlling use of the in memory btree implementation## TEMP_STORE is 0 to force temporary tables to be in a file, 1 to# default to file, 2 to default to memory, and 3 to force temporary# tables to always be in memory.#TEMP_STORE = -DTEMP_STORE=1# Version numbers and release number for the SQLite being compiled.#VERSION = 3.3VERSION_NUMBER = 3003007RELEASE = 3.3.7# Filename extensions#BEXE = TEXE = # The following variable is "1" if the configure script was able to locate# the tclConfig.sh file.  It is an empty string otherwise.  When this# variable is "1", the TCL extension library (libtclsqlite3.so) is built# and installed.#HAVE_TCL = # The suffix used on shared libraries.  Ex:  ".dll", ".so", ".dylib"#SHLIB_SUFFIX = @TCL_SHLIB_SUFFIX@# The directory into which to store package information for# Some standard variables and programs#prefix = /usr/localexec_prefix = ${prefix}libdir = ${exec_prefix}/libINSTALL = /usr/bin/install -cLIBTOOL = ./libtoolALLOWRELEASE = # libtool compile/link/installLTCOMPILE = $(LIBTOOL) --mode=compile $(TCC)LTLINK = $(LIBTOOL) --mode=link $(TCC)LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)# nawk compatible awk.NAWK = gawk# You should not have to change anything below this line###############################################################################OPTS = OPTS += -DSQLITE_OMIT_CURSOR          # Cursors do not work at this timeTCC += -DSQLITE_OMIT_CURSOR# Object files for the SQLite library.#LIBOBJ = alter.lo analyze.lo attach.lo auth.lo btree.lo build.lo \         callback.lo complete.lo date.lo \         delete.lo expr.lo func.lo hash.lo insert.lo loadext.lo \         main.lo opcodes.lo os.lo os_unix.lo os_win.lo os_os2.lo \         pager.lo parse.lo pragma.lo prepare.lo printf.lo random.lo \         select.lo table.lo tokenize.lo trigger.lo update.lo \         util.lo vacuum.lo \         vdbe.lo vdbeapi.lo vdbeaux.lo vdbefifo.lo vdbemem.lo \         where.lo utf.lo legacy.lo vtab.lo# All of the source code files.#SRC = \  $(TOP)/src/alter.c \  $(TOP)/src/analyze.c \  $(TOP)/src/attach.c \  $(TOP)/src/auth.c \  $(TOP)/src/btree.c \  $(TOP)/src/btree.h \  $(TOP)/src/build.c \  $(TOP)/src/callback.c \  $(TOP)/src/complete.c \  $(TOP)/src/date.c \  $(TOP)/src/delete.c \  $(TOP)/src/expr.c \  $(TOP)/src/func.c \  $(TOP)/src/hash.c \  $(TOP)/src/hash.h \  $(TOP)/src/insert.c \  $(TOP)/src/legacy.c \  $(TOP)/src/loadext.c \  $(TOP)/src/main.c \  $(TOP)/src/os.c \  $(TOP)/src/os_unix.c \  $(TOP)/src/os_win.c \  $(TOP)/src/os_os2.c \  $(TOP)/src/pager.c \  $(TOP)/src/pager.h \  $(TOP)/src/parse.y \  $(TOP)/src/pragma.c \  $(TOP)/src/prepare.c \  $(TOP)/src/printf.c \  $(TOP)/src/random.c \  $(TOP)/src/select.c \  $(TOP)/src/shell.c \  $(TOP)/src/sqlite.h.in \  $(TOP)/src/sqliteInt.h \  $(TOP)/src/table.c \  $(TOP)/src/tclsqlite.c \  $(TOP)/src/tokenize.c \  $(TOP)/src/trigger.c \  $(TOP)/src/utf.c \  $(TOP)/src/update.c \  $(TOP)/src/util.c \  $(TOP)/src/vacuum.c \  $(TOP)/src/vdbe.c \  $(TOP)/src/vdbe.h \  $(TOP)/src/vdbeapi.c \  $(TOP)/src/vdbeaux.c \  $(TOP)/src/vdbefifo.c \  $(TOP)/src/vdbemem.c \  $(TOP)/src/vdbeInt.h \  $(TOP)/src/vtab.c \  $(TOP)/src/where.c# Source code to the test files.#TESTSRC = \  $(TOP)/src/btree.c \  $(TOP)/src/date.c \  $(TOP)/src/func.c \  $(TOP)/src/os.c \  $(TOP)/src/os_unix.c \  $(TOP)/src/os_win.c \  $(TOP)/src/os_os2.c \  $(TOP)/src/pager.c \  $(TOP)/src/pragma.c \  $(TOP)/src/printf.c \  $(TOP)/src/test1.c \  $(TOP)/src/test2.c \  $(TOP)/src/test3.c \  $(TOP)/src/test4.c \  $(TOP)/src/test5.c \  $(TOP)/src/test6.c \  $(TOP)/src/test7.c \  $(TOP)/src/test8.c \  $(TOP)/src/test_async.c \  $(TOP)/src/test_md5.c \  $(TOP)/src/test_schema.c \  $(TOP)/src/test_server.c \  $(TOP)/src/test_tclvar.c \  $(TOP)/src/utf.c \  $(TOP)/src/util.c \  $(TOP)/src/vdbe.c \  $(TOP)/src/where.c# Header files used by all library source files.#HDR = \   sqlite3.h  \   $(TOP)/src/btree.h \   $(TOP)/src/hash.h \   opcodes.h \   $(TOP)/src/os.h \   $(TOP)/src/os_common.h \   $(TOP)/src/sqlite3ext.h \   $(TOP)/src/sqliteInt.h  \   $(TOP)/src/vdbe.h \   parse.h# Header files used by the VDBE submodule#VDBEHDR = \   $(HDR) \   $(TOP)/src/vdbeInt.h# This is the default Makefile target.  The objects listed here# are what get build when you type just "make" with no arguments.#all:	sqlite3.h libsqlite3.la sqlite3$(TEXE) $(HAVE_TCL:1=libtclsqlite3.la)Makefile: $(TOP)/Makefile.in	./config.status# Generate the file "last_change" which contains the date of change# of the most recently modified source code file#last_change:	$(SRC)	cat $(SRC) | grep '$$Id: ' | sort -k 5 | tail -1 \          | $(NAWK) '{print $$5,$$6}' >last_changelibsqlite3.la:	$(LIBOBJ)	$(LTLINK) -o libsqlite3.la $(LIBOBJ) $(LIBPTHREAD) \		${ALLOWRELEASE} -rpath $(libdir) -version-info "8:6:8"libtclsqlite3.la:	tclsqlite.lo libsqlite3.la	$(LTLINK) -o libtclsqlite3.la tclsqlite.lo \		$(LIBOBJ)  $(LIBPTHREAD) \                -rpath $(libdir)/sqlite \		-version-info "8:6:8"# Modified by zhoujp at 2006-08-23sqlite3$(TEXE):	$(TOP)/src/shell.c .libs/libsqlite3.a sqlite3.h	$(LTLINK) $(READLINE_FLAGS) $(LIBPTHREAD) \		-o $@ $(TOP)/src/shell.c .libs/libsqlite3.a \		$(LIBREADLINE) $(TLIBS)# End# This target creates a directory named "tsrc" and fills it with# copies of all of the C source code and header files needed to# build on the target system.  Some of the C source code and header# files are automatically generated.  This target takes care of# all that automatic generation.#target_source:	$(SRC) parse.c opcodes.c keywordhash.h $(VDBEHDR) 	rm -rf tsrc	mkdir -p tsrc	cp $(SRC) $(VDBEHDR) tsrc	rm tsrc/sqlite.h.in tsrc/parse.y	cp parse.c opcodes.c keywordhash.h tsrc	cp $(TOP)/sqlite3.def tsrc# Rules to build the LEMON compiler generator#lemon$(BEXE):	$(TOP)/tool/lemon.c $(TOP)/tool/lempar.c	$(BCC) -o lemon $(TOP)/tool/lemon.c	cp $(TOP)/tool/lempar.c .# Rules to build individual files#alter.lo:	$(TOP)/src/alter.c $(HDR)	$(LTCOMPILE) -c $(TOP)/src/alter.canalyze.lo:	$(TOP)/src/analyze.c $(HDR)	$(LTCOMPILE) -c $(TOP)/src/analyze.cattach.lo:	$(TOP)/src/attach.c $(HDR)	$(LTCOMPILE) -c $(TOP)/src/attach.cauth.lo:	$(TOP)/src/auth.c $(HDR)	$(LTCOMPILE) -c $(TOP)/src/auth.cbtree.lo:	$(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h	$(LTCOMPILE) -c $(TOP)/src/btree.cbuild.lo:	$(TOP)/src/build.c $(HDR)	$(LTCOMPILE) -c $(TOP)/src/build.ccallback.lo:	$(TOP)/src/callback.c $(HDR)	$(LTCOMPILE) -c $(TOP)/src/callback.ccomplete.lo:	$(TOP)/src/complete.c $(HDR)	$(LTCOMPILE) -c $(TOP)/src/complete.cdate.lo:	$(TOP)/src/date.c $(HDR)	$(LTCOMPILE) -c $(TOP)/src/date.cdelete.lo:	$(TOP)/src/delete.c $(HDR)	$(LTCOMPILE) -c $(TOP)/src/delete.cexpr.lo:	$(TOP)/src/expr.c $(HDR)	$(LTCOMPILE) -c $(TOP)/src/expr.cfunc.lo:	$(TOP)/src/func.c $(HDR)	$(LTCOMPILE) -c $(TOP)/src/func.chash.lo:	$(TOP)/src/hash.c $(HDR)	$(LTCOMPILE) -c $(TOP)/src/hash.cinsert.lo:	$(TOP)/src/insert.c $(HDR)	$(LTCOMPILE) -c $(TOP)/src/insert.clegacy.lo:	$(TOP)/src/legacy.c $(HDR)	$(LTCOMPILE) -c $(TOP)/src/legacy.cloadext.lo:	$(TOP)/src/loadext.c $(HDR)	$(LTCOMPILE) -c $(TOP)/src/loadext.cmain.lo:	$(TOP)/src/main.c $(HDR)	$(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/main.c

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -