Documentation Source Text

Check-in [17ee5a34e9]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Update the makefiles so that the TCL extensions used to build the FTS3 tables for the search function are built using STUBS.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 17ee5a34e9d461df9fb77822a4edd44b10b122da
User & Date: drh 2010-01-08 00:31:15
Context
2010-01-08
15:17
Add the search input text box to the menu bar. The search box is only added if the SEARCH file is present in the build directory when "make all" is run. Updates to the search results display page. check-in: 7f31aaf373 user: drh tags: trunk
00:31
Update the makefiles so that the TCL extensions used to build the FTS3 tables for the search function are built using STUBS. check-in: 17ee5a34e9 user: drh tags: trunk
2010-01-07
18:09
Add the "searchdb" target to the Makefile. For building the doc/search.db database used by the search cgi script. check-in: e8a8c227d5 user: dan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Makefile.

24
25
26
27
28
29
30





31
32
33
34
35
36
37
38
39
#
CC = gcc -g -Wall

#### Extra C-compiler flags needed to compile TCLSH
#
TCLINC =
TCLFLAGS = -ldl -lm -lpthread -ltcl -lz






#### Which "awk" program provides nawk compatibilty
#
# NAWK = nawk
NAWK = awk

# You should not have to change anything below this line
###############################################################################
include $(DOC)/main.mk







>
>
>
>
>









24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
CC = gcc -g -Wall

#### Extra C-compiler flags needed to compile TCLSH
#
TCLINC =
TCLFLAGS = -ldl -lm -lpthread -ltcl -lz

#### Extra C-compiler flags needed to compile a TCL extension that
#    is stubs enabled.
#
TCLSTUBFLAGS = -ldl -lm -lpthread -ltclstub -lz

#### Which "awk" program provides nawk compatibilty
#
# NAWK = nawk
NAWK = awk

# You should not have to change anything below this line
###############################################################################
include $(DOC)/main.mk

Changes to main.mk.

8
9
10
11
12
13
14


15
16
17
18
19
20
21
...
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#
# TCLSQLITE3C      Name of the amalgamation source file
#
# TH3              The toplevel directory for TH3.  May be an empty string.
#
# TCLFLAGS         Extra C-compiler options needed to link against TCL
#


# NAWK             Nawk compatible awk program.  Older (obsolete?) solaris
#                  systems need this to avoid using the original AT&T AWK.
#
# CC               A C-compiler and arguments for building utility programs
#
# Once the macros above are defined, the rest of this make script will
# build the SQLite library and testing tools.
................................................................................
	rm -rf doc/matrix/images
	cp -r doc/images doc/matrix
	./tclsh $(DOC)/matrix.tcl

# Build the fts3 database used by the search script
#
parsehtml.so: $(DOC)/search/parsehtml.c
	gcc -shared $(TCLINC) $(TCLFLAGS) $(DOC)/search/parsehtml.c -o parsehtml.so -I. -I$(SRC)/ext/fts3

searchdb: parsehtml.so tclsh
	./tclsh $(DOC)/search/buildsearchdb.tcl

always:	

clean:	
	rm -rf tclsh doc sqlite3.h docinfo.db







>
>







 







|








8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
...
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#
# TCLSQLITE3C      Name of the amalgamation source file
#
# TH3              The toplevel directory for TH3.  May be an empty string.
#
# TCLFLAGS         Extra C-compiler options needed to link against TCL
#
# TCLSTUBFLAGS     Extra C-compiler options needed to link a TCL extension
#
# NAWK             Nawk compatible awk program.  Older (obsolete?) solaris
#                  systems need this to avoid using the original AT&T AWK.
#
# CC               A C-compiler and arguments for building utility programs
#
# Once the macros above are defined, the rest of this make script will
# build the SQLite library and testing tools.
................................................................................
	rm -rf doc/matrix/images
	cp -r doc/images doc/matrix
	./tclsh $(DOC)/matrix.tcl

# Build the fts3 database used by the search script
#
parsehtml.so: $(DOC)/search/parsehtml.c
	gcc -g -shared -DUSE_TCL_STUBS $(TCLINC) -I. -I$(SRC)/ext/fts3 $(DOC)/search/parsehtml.c $(TCLSTUBFLAGS) -o parsehtml.so

searchdb: parsehtml.so tclsh
	./tclsh $(DOC)/search/buildsearchdb.tcl

always:	

clean:	
	rm -rf tclsh doc sqlite3.h docinfo.db