Skip to content

Commit 63b00e2

Browse files
committed
Added SQLite driver - initial revision
1 parent d316c44 commit 63b00e2

File tree

5 files changed

+1698
-72
lines changed

5 files changed

+1698
-72
lines changed

Makefile renamed to Makefile_sqlt

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,17 @@
11
# program/library target and files
2-
TARGET = sybase_example
3-
SRCS = sybase_example.cpp
2+
TARGET = sqlite_example
3+
SRCS = sqlite_example.cpp
44

5-
# explicit path to sybase library
6-
LIBPATH = -L/opt/sybase15/OCS-15_0/lib
7-
INCLUDES = -I/opt/sybase15/OCS-15_0/include
5+
# explicit path to sqlite
6+
LIBPATH = -L/usr/lib
7+
INCLUDES = -I/usr/include
88

99
# compiler path and flags
1010
CC = /opt/gcc/bin/g++
1111
CFLAGS = -std=c++1y -Wall -Wno-unused -Wno-sequence-point -Wno-parentheses -c -ggdb3 -m64 -pthread -DSYB_LP64 -D_REENTRANT
1212

13-
# sybase libraries to include in the build
14-
CTLIB = -lsybct64 # client library
15-
CSLIB = -lsybcs64 # cs library
16-
TCLIB = -lsybtcl64 # transport control layer
17-
COMLIB = -lsybcomn64 # internal shared utility library
18-
INTLLIB = -lsybintl64 # internationalization support library
19-
UNICLIB = -lsybunic64 # unicode library
20-
BLKLIB = -lsybblk64 # bulk copy routines
2113
SYSLIBS = -Wl,-Bdynamic -ldl -lpthread -lnsl -lm
22-
LIBS = -Bstatic $(LIBPATH) $(CTLIB) $(CSLIB) $(TCLIB) $(COMLIB) $(INTLLIB) $(UNICLIB) $(SYSLIBS)
14+
LIBS = -Bstatic -lsqlite3 $(LIBPATH) $(SYSLIBS)
2315

2416
# make env setup
2517
OBJDIR = obj

0 commit comments

Comments
 (0)