logo       

Re: Compile SQLite with MinGW ?: msg#00194

db.sqlite.general

Subject: Re: Compile SQLite with MinGW ?

Hi Boguslaw,

I've compiled SQLite static library for Windows with MinGW and Dev-C++. All
you need to do is to exclude tclsqlite.c and shell.c. This will exclude TCL
binding.

Best Regards,
Yeoh
--
http://www.yeohhs.com
--
Here's my makefile for Dev-C++. You can easily modify it for MinGW. Also,
you'll need to change the LIBS and INCS to your own paths.

# Project: Static Lib
# Makefile created by Dev-C++ 4.9.6.8

CC = gcc.exe
WINDRES = windres.exe
RES =
OBJ = where.o build.o delete.o expr.o func.o hash.o insert.o main.o
opcodes.o os.o pager.o parse.o printf.o random.o select.o table.o tokenize.o
trigger.o update.o util.o vdbe.o btree.o $(RES)
LIBS = -L"D:/DEVCPP4960/lib"
INCS = -I"D:/DEVCPP4960/include"
BIN = libsqlite.a
CFLAGS = $(INCS) -s -O3

.PHONY: all all-before all-after clean clean-custom

all: all-before libsqlite.a all-after


clean: clean-custom
rm -f $(OBJ) $(BIN)

$(BIN): $(OBJ)
ar r $(BIN) $(OBJ)
ranlib $(BIN)

where.o: where.c
$(CC) -c where.c -o where.o $(CFLAGS)

build.o: build.c
$(CC) -c build.c -o build.o $(CFLAGS)

delete.o: delete.c
$(CC) -c delete.c -o delete.o $(CFLAGS)

expr.o: expr.c
$(CC) -c expr.c -o expr.o $(CFLAGS)

func.o: func.c
$(CC) -c func.c -o func.o $(CFLAGS)

hash.o: hash.c
$(CC) -c hash.c -o hash.o $(CFLAGS)

insert.o: insert.c
$(CC) -c insert.c -o insert.o $(CFLAGS)

main.o: main.c
$(CC) -c main.c -o main.o $(CFLAGS)

opcodes.o: opcodes.c
$(CC) -c opcodes.c -o opcodes.o $(CFLAGS)

os.o: os.c
$(CC) -c os.c -o os.o $(CFLAGS)

pager.o: pager.c
$(CC) -c pager.c -o pager.o $(CFLAGS)

parse.o: parse.c
$(CC) -c parse.c -o parse.o $(CFLAGS)

printf.o: printf.c
$(CC) -c printf.c -o printf.o $(CFLAGS)

random.o: random.c
$(CC) -c random.c -o random.o $(CFLAGS)

select.o: select.c
$(CC) -c select.c -o select.o $(CFLAGS)

table.o: table.c
$(CC) -c table.c -o table.o $(CFLAGS)

tokenize.o: tokenize.c
$(CC) -c tokenize.c -o tokenize.o $(CFLAGS)

trigger.o: trigger.c
$(CC) -c trigger.c -o trigger.o $(CFLAGS)

update.o: update.c
$(CC) -c update.c -o update.o $(CFLAGS)

util.o: util.c
$(CC) -c util.c -o util.o $(CFLAGS)

vdbe.o: vdbe.c
$(CC) -c vdbe.c -o vdbe.o $(CFLAGS)

btree.o: btree.c
$(CC) -c btree.c -o btree.o $(CFLAGS)


----- Original Message -----
From: Bogusław Brandys
To: sqlite-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx
Sent: Friday, November 29, 2002 6:34 PM
Subject: [sqlite] Compile SQLite with MinGW ?
Hello,
How can I compile SQLite library for Windows with MinGW ?
How can I compile without TCL binding?
<snipped>





------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/EbFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
sqlite-unsubscribe-VgYJa0VH1e9BDgjK7y7TUQ@xxxxxxxxxxxxxxxx



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise