You are not logged in Log in Join
You are here: Home » Members » hewei » Zope RPMs for RedHat » Miscellaneous RPMs » SQLite » Library patch to include two more APIs » View Document

Log in
Name

Password

 

Library patch to include two more APIs

--- Makefile.in.orig 2004-02-29 08:07:56.000000000 +0800 +++ Makefile.in 2004-03-27 07:16:32.000000000 +0800 @@ -85,7 +85,7 @@ # Object files for the SQLite library. # LIBOBJ = attach.lo auth.lo btree.lo build.lo copy.lo date.lo \ - delete.lo expr.lo func.lo hash.lo insert.lo \ + delete.lo encode.lo expr.lo func.lo hash.lo insert.lo \ main.lo opcodes.lo os.lo pager.lo parse.lo pragma.lo \ printf.lo random.lo select.lo table.lo tokenize.lo \ update.lo util.lo vacuum.lo vdbe.lo vdbeaux.lo \ @@ -108,6 +108,7 @@ $(TOP)/src/copy.c \ $(TOP)/src/date.c \ $(TOP)/src/delete.c \ + $(TOP)/src/encode.c \ $(TOP)/src/expr.c \ $(TOP)/src/func.c \ $(TOP)/src/hash.c \ @@ -175,6 +176,9 @@ # all: sqlite.h libsqlite.la sqlite@TARGET_EXEEXT@

+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 # @@ -302,6 +306,9 @@ delete.lo: $(TOP)/src/delete.c $(HDR) $(LTCOMPILE) -c $(TOP)/src/delete.c

+encode.lo: $(TOP)/src/encode.c + $(LTCOMPILE) -c $(TOP)/src/encode.c + expr.lo: $(TOP)/src/expr.c $(HDR) $(LTCOMPILE) -c $(TOP)/src/expr.c

@@ -458,14 +465,14 @@ mv $(DOC) doc

install: sqlite libsqlite.la sqlite.h - $(INSTALL) -d $(DESTDIR)/$(exec_prefix)/lib - $(LTINSTALL) libsqlite.la $(DESTDIR)/$(exec_prefix)/lib - $(INSTALL) -d $(DESTDIR)/$(exec_prefix)/bin - $(LTINSTALL) sqlite $(DESTDIR)/$(exec_prefix)/bin - $(INSTALL) -d $(DESTDIR)/$(prefix)/include - $(INSTALL) -m 0644 sqlite.h $(DESTDIR)/$(prefix)/include - $(INSTALL) -d $(DESTDIR)/$(exec_prefix)/lib/pkgconfig; - $(INSTALL) -m 0644 sqlite.pc $(DESTDIR)/$(exec_prefix)/lib/pkgconfig; + $(INSTALL) -d $(DESTDIR)$(exec_prefix)/lib + $(LTINSTALL) libsqlite.la $(DESTDIR)$(exec_prefix)/lib + $(INSTALL) -d $(DESTDIR)$(exec_prefix)/bin + $(LTINSTALL) sqlite $(DESTDIR)$(exec_prefix)/bin + $(INSTALL) -d $(DESTDIR)$(prefix)/include + $(INSTALL) -m 0644 sqlite.h $(DESTDIR)$(prefix)/include + $(INSTALL) -d $(DESTDIR)$(exec_prefix)/lib/pkgconfig; + $(INSTALL) -m 0644 sqlite.pc $(DESTDIR)$(exec_prefix)/lib/pkgconfig;

clean: rm -f .lo .la .o sqlite@TARGET_EXEEXT@ libsqlite.la sqlite.h opcodes. @@ -478,23 +485,24 @@ rm -f sqlite.dll sqlite.lib

# -# Windows section; all those funky .dll stuff ;-) +# Windows section; all this funky .dll stuff ;-) # dll: sqlite.dll

REAL_LIBOBJ = $(LIBOBJ:%.lo=.libs/%.o)

-sqlite.dll: $(LIBOBJ) sqlite.def - dllwrap --dllname sqlite.dll --def sqlite.def $(REAL_LIBOBJ) +sqlite.dll: $(LIBOBJ) $(TOP)/sqlite.def + dllwrap --dllname sqlite.dll --def $(TOP)/sqlite.def $(REAL_LIBOBJ) strip sqlite.dll

#target for dll import libraries implib: sqlite.lib

-#make Borland C++ import library for the dll +#make Borland C++ and/or Microsoft VC import library for the dll +# ignore any errors (usually due to missing programs) sqlite.lib: sqlite.dll - -implib -a sqlite.lib sqlite.dll sqlite.def - -lib /machine:i386 /def:sqlite.def + -implib -a sqlite.lib sqlite.dll + -lib /machine:i386 /def:$(TOP)/sqlite.def

distclean: clean rm -f config.log config.status libtool Makefile config.h